Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ztry8/tinypong

Tiny ping pong game, just 1000 bytes and 50 lines of code!
https://github.com/ztry8/tinypong

c99 fantasy-console gamedev ping-pong wasm wasm4

Last synced: 20 days ago
JSON representation

Tiny ping pong game, just 1000 bytes and 50 lines of code!

Awesome Lists containing this project

README

        

# TinyPong
### Tiny ping pong game, just 1000 bytes and 50 lines of code! [Play!](https://wasm4.org/play/tinypong)
![video](https://github.com/Ztry8/TinyPong/blob/main/assets/video.gif)

The game is written in C99 using the [WASM-4](https://main--wasm4.netlify.app/).
The main game file is written in 50 lines of code.

To compile, you need: [WASI_SDK](https://github.com/WebAssembly/wasi-sdk) [make](https://www.gnu.org/software/make/manual/make.html) [WASM-4](https://main--wasm4.netlify.app/docs/getting-started/setup):
```
git clone https://github.com/Ztry8/TinyPong
cd TinyPong
make
cd build
w4 bundle cart.wasm --title "TinyPong" --html index.html
```
Then, open index.html