Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

test of w4

NotificationsYou must be signed in to change notification settings

pfgithub/w4test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

A clicker/platformer game built for thewasm4jam

Play Game

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

ingconv notes

  1. scale the image down to 160x160
  2. https://www.imgonline.com.ua/eng/limit-color-number.php
  3. imgconv image.jpg image.w4i --compress --detect-palette

bundling

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

TODO:

  • 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp