- Notifications
You must be signed in to change notification settings - Fork0
pfgithub/w4test
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A clicker/platformer game built for thewasm4jam
https://pfg.itch.io/plctfarmer
Source code is insrc/platformer.zig
Map is insrc/platformer.png
Texture compressor is insrc/imgconv.zig
How to build (dev):
zig buildw4 run -n zig-out/lib/platformer.wasm
Notes
make sure you aren't over the size limit:zig build -Drelease-small && ls -l zig-out/lib/platformer.wasm
(maximum is 65,536 bytes)
recommend also using wasm-opt -Oz because it got likt 50kb → 46kb
check this:wasm-objdump zig-out/lib/platformer.wasm -x -j code
- scale the image down to 160x160
- https://www.imgonline.com.ua/eng/limit-color-number.php
- imgconv image.jpg image.w4i --compress --detect-palette
zig build -Drelease-small && ls -l zig-out/lib/platformer.wasm && w4 bundle zig-out/lib/platformer.wasm --html zig-out/lib/file.html
note: also use wasm-opt
- finish up the game
- intro screen. the computer thing and a clicker game → the full game
- pause menu so you can go back out to the computer. it would be cool tohave interactions between the game and the computer but idk
- end screen. you unlock infinite dashes + debug keys
- see how many desktop backgrounds I can fit in the cart
wasm-opt -Oz --strip-producers --dce --zero-filled-memory
← make sureto use this, it will make the zig output even smaller- see if we can go right the way up to the limit
- oh yeah we could do that before release, why not
About
test of w4
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published