Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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).

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 pygame

pip 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)