youssefahmed2017/mega-snake

Python

2

62 commits

updated Oct 11, 2026

See the code

README

MEGA SNAKE

Snake, but with way too many features: nine game modes, power-ups and downer-ups, chaos events, a roguelite perk mode, achievements and quests, gamepad support, and LAN or online multiplayer for up to four players.

Game modes

ModeWhat it is
ClassicWrap around the edges. Pure snake.
WallsThe edges kill you.
MazeWalls, plus obstacles that grow over time.
BattleWalls, plus two AI rivals that want your food.
Timed60-second score attack.
HardcoreNo power-ups, faster, one life. Meteors, tremors and speed surges strike at random.
CoopLocal two-player on a shared board.
DailyThe same layout and chaos events for everyone, today only.
RogueliteWalls plus chaos events, and a pick-1-of-3 perk every 8 foods.

Multiplayer (LAN, or online through a small relay server) supports up to four players. The host runs the game; everyone else sends inputs and draws what the host sends back.

Controls

KeyboardGamepad
MoveArrows, WASD or hjklD-pad or left stick
Confirm (menus)EnterA
Phase Dash (Roguelite perk)SpaceA
BackEscB
PausePStart
Quit to menu from PauseEscSelect
Settings tabsTabLB / RB

Other keys: M mutes, T opens chat in multiplayer, F11 toggles fullscreen.

Run from source

pip install -r requirements.txt   # pygame-ce, numpy, certifi, websockets
python main.py

The online relay (a Cloudflare Worker) lives in server/; see CLAUDE.md for the development notes.

Support

MEGA SNAKE is free. If you enjoy it and want to chip in, you can do that on Ko-fi: https://ko-fi.com/youssefahmedabdou. Totally optional, and thank you.

License

MEGA SNAKE is free software, licensed under the GNU General Public License v3.0 only. The full text is in LICENSE and every source file carries a copyright and SPDX-License-Identifier header.

In short: you may use, study, change and share it. If you distribute it, including a modified or renamed version, you must release the complete source under the same license and keep the copyright and license notices.

  • Code: GPL-3.0-only.
  • Art (assets/art/, assets/source/) and the art prompts: GPL-3.0-only, the same as the code. See assets/README.md.
  • Fonts (Lilita One and Varela Round): not mine to relicense, so they stay under the SIL Open Font License 1.1.

Copyright (C) 2026 Youssef Ahmed.

game
python
python3
python-script
snake
snake-game

youssefahmed2017/mega-snake

Python

2

62 commits

updated Oct 11, 2026

See the code

README

MEGA SNAKE

Snake, but with way too many features: nine game modes, power-ups and downer-ups, chaos events, a roguelite perk mode, achievements and quests, gamepad support, and LAN or online multiplayer for up to four players.

Game modes

ModeWhat it is
ClassicWrap around the edges. Pure snake.
WallsThe edges kill you.
MazeWalls, plus obstacles that grow over time.
BattleWalls, plus two AI rivals that want your food.
Timed60-second score attack.
HardcoreNo power-ups, faster, one life. Meteors, tremors and speed surges strike at random.
CoopLocal two-player on a shared board.
DailyThe same layout and chaos events for everyone, today only.
RogueliteWalls plus chaos events, and a pick-1-of-3 perk every 8 foods.

Multiplayer (LAN, or online through a small relay server) supports up to four players. The host runs the game; everyone else sends inputs and draws what the host sends back.

Controls

KeyboardGamepad
MoveArrows, WASD or hjklD-pad or left stick
Confirm (menus)EnterA
Phase Dash (Roguelite perk)SpaceA
BackEscB
PausePStart
Quit to menu from PauseEscSelect
Settings tabsTabLB / RB

Other keys: M mutes, T opens chat in multiplayer, F11 toggles fullscreen.

Run from source

pip install -r requirements.txt   # pygame-ce, numpy, certifi, websockets
python main.py

The online relay (a Cloudflare Worker) lives in server/; see CLAUDE.md for the development notes.

Support

MEGA SNAKE is free. If you enjoy it and want to chip in, you can do that on Ko-fi: https://ko-fi.com/youssefahmedabdou. Totally optional, and thank you.

License

MEGA SNAKE is free software, licensed under the GNU General Public License v3.0 only. The full text is in LICENSE and every source file carries a copyright and SPDX-License-Identifier header.

In short: you may use, study, change and share it. If you distribute it, including a modified or renamed version, you must release the complete source under the same license and keep the copyright and license notices.

  • Code: GPL-3.0-only.
  • Art (assets/art/, assets/source/) and the art prompts: GPL-3.0-only, the same as the code. See assets/README.md.
  • Fonts (Lilita One and Varela Round): not mine to relicense, so they stay under the SIL Open Font License 1.1.

Copyright (C) 2026 Youssef Ahmed.

game
python
python3
python-script
snake
snake-game