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

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

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