Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hasanyahya101/snakegame-wasm
A simple age old classic version of snake game. You can control the snake using the arrow keys and try to eat the food and increase your score. The game was originally made in python, but was later converted into web assembly using pygbag (a python library).
https://github.com/hasanyahya101/snakegame-wasm
game github github-pages multi-platform pip pygame pygbag python sdl2 snake snake-game wasm web
Last synced: about 1 month ago
JSON representation
A simple age old classic version of snake game. You can control the snake using the arrow keys and try to eat the food and increase your score. The game was originally made in python, but was later converted into web assembly using pygbag (a python library).
- Host: GitHub
- URL: https://github.com/hasanyahya101/snakegame-wasm
- Owner: HasanYahya101
- License: mit
- Created: 2024-06-12T20:47:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-12T21:34:05.000Z (7 months ago)
- Last Synced: 2024-06-13T04:13:23.835Z (7 months ago)
- Topics: game, github, github-pages, multi-platform, pip, pygame, pygbag, python, sdl2, snake, snake-game, wasm, web
- Language: Python
- Homepage: https://hasanyahya101.github.io/SnakeGame-WASM/
- Size: 448 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake Game (Python + Web Assembly)
## Introduction
A simple age old classic version of snake game. You can control the snake using the arrow keys and try to eat the food and increase your score. If the snake hits himself or the boundary wall, user dies and the game is restarted. The game was originally made in python, but was later converted into web assembly using pygbag (a python library). The final folder was then deployed to github pages and can be tested and played there. Just go to the link given in repo and you can play the game.
## Requirements
Python and it's libraries `pygame` and `pygbag` are required to run the program. You can install them using the following commands:```cmd
pip install pygamepip install pygbag
```## Preview
![Screenshot 2024-06-13 023011](https://github.com/HasanYahya101/SnakeGame-WASM/assets/118683092/caafec59-d50c-4e2d-a6d3-6bf40cd7d3c5)
![Screenshot 2024-06-13 023024](https://github.com/HasanYahya101/SnakeGame-WASM/assets/118683092/302f2d69-5fdd-4975-8c48-cc93c611fecf)