https://github.com/peterhellberg/w4-zig-bingosylt
https://github.com/peterhellberg/w4-zig-bingosylt
gamedev gamejam wasm wasm4 zig
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/peterhellberg/w4-zig-bingosylt
- Owner: peterhellberg
- Created: 2023-10-25T12:06:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-20T21:07:39.000Z (about 2 years ago)
- Last Synced: 2025-01-14T07:11:27.242Z (about 1 year ago)
- Topics: gamedev, gamejam, wasm, wasm4, zig
- Language: Zig
- Homepage: https://peter.tilde.team/games/w4-zig-bingosylt/
- Size: 276 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# w4-zig-bingosylt :zap:
A game written in Zig for the [WASM-4](https://wasm4.org) fantasy console.

## Building
Build the cart by running:
```shell
make
```
Then run it with:
```shell
make run
```
Bundle for html, linux and windows using:
```shell
make bundle
```
## Sprites
I generate sprites from PNG files like this `w4 png2src -t sprite.tpl image.png`
Where the custom template for `w4 png2src` looks like this:
```zig
{{#sprites}}
pub const {{name}} = Sprite{
.sprite = ([{{length}}]u8{ {{bytes}} })[0..],
.width = {{width}},
.height = {{height}},
.flags = w4.{{flagsHumanReadable}},
};
{{/sprites}}
```
## Links
- :art: [Lospec Pixel Art Scaler](https://lospec.com/pixel-art-scaler/): This tools helps you scale pixel art to bigger sizes without filtering
- :tangerine: [Lospec Tangerine Noir Palette](https://lospec.com/palette-list/tangerine-noir): Three shades with a sharp tangerine accent
- :video_game: [WASM-4 Documentation](https://wasm4.org/docs): Learn more about WASM-4
- :octocat: [WASM-4 GitHub](https://github.com/aduros/wasm4): Submit an issue or PR. Contributions are welcome!
- :sparkles: [Jok](https://github.com/Jack-Ji/jok): A minimal 2d/3d game framework for Zig
- :fire: [Zig Crash Course](https://ikrima.dev/dev-notes/zig/zig-crash-course/)
## Jam
Kodsnacks Tvåveckorssylt - #9
> [!IMPORTANT]
> Submissions open to November 6th 2023 at 12:00 AM
### Theme: BINGO!
Skapa din egen bingorad från bingobrickan nedanför. Du måste välja minst 2 rutor och de måste sitta ihop enligt klassiska bingoregler (horisontellt, vertikalt eller diagonalt).
Skriva gärna på ditt spel vilka brickor du valde!
