https://github.com/jolovicdev/snake-wasm
Snake Game WebAssembly - in GO
https://github.com/jolovicdev/snake-wasm
Last synced: 11 months ago
JSON representation
Snake Game WebAssembly - in GO
- Host: GitHub
- URL: https://github.com/jolovicdev/snake-wasm
- Owner: jolovicdev
- Created: 2024-11-15T07:07:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-15T07:13:16.000Z (about 1 year ago)
- Last Synced: 2024-12-06T05:11:48.162Z (about 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake Game WebAssembly
A classic Snake game implemented in Go and compiled to WebAssembly, featuring smooth gameplay.
## Prerequisites
- Go 1.22 or higher
- Web browser with WebAssembly support
## Quick Start
Clone and run:
```sh
git clone https://github.com/jolovicdev/snake-wasm.git
cd snake-wasm
make run
```
Open [http://localhost:8080](http://localhost:8080) in your browser.
## Controls
- Arrow keys to move snake
- 'P' key or Pause button to pause/resume
- New Game button to restart
- Avoid hitting walls or yourself
- Eat food (red squares) to grow and score points
## Features
- Score tracking
- Pause functionality
- Smooth controls
- New Game option
## Commands
- `make run` - Build and start server
- `make build` - Only build WASM
- `make clean` - Clean generated files