Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/ztry8/tinypong
- Owner: Ztry8
- License: gpl-3.0
- Created: 2024-05-12T15:37:01.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T14:55:37.000Z (6 months ago)
- Last Synced: 2024-11-19T17:54:45.462Z (3 months ago)
- Topics: c99, fantasy-console, gamedev, ping-pong, wasm, wasm4
- Language: C
- Homepage:
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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