Skip to content

ScottFromDerby/ra-the-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ra-the-game

A game written in C for the WASM-4 fantasy console.

Currently being built using VS Code, TortoiseGit and Surge for deployment.

dev/build

make clean; make
w4 watch
//Tools (linux)
g++ ./RATGTextCompressor/RATGTextCompressor.cpp -cpp -o ./RATGTextCompressor/RATGTextCompressor

generate asset code

w4 png2src --c .\FONT_6px.png -t gfxtemplate_h.txt -o src/gfx_font6.h; w4 png2src --c .\FONT_6px.png -t gfxtemplate_c.txt -o src/gfx_font6.c
w4 png2src --c .\FONT_8px.png -t gfxtemplate_h.txt -o src/gfx_font8.h; w4 png2src --c .\FONT_8px.png -t gfxtemplate_c.txt -o src/gfx_font8.c
w4 png2src --c .\SPRITE_AnimTiles.png -t gfxtemplate_h.txt -o src/gfx_animtiles.h; w4 png2src --c .\SPRITE_AnimTiles.png -t gfxtemplate_c.txt -o src/gfx_animtiles.c
w4 png2src --c .\SPRITE_Hud.png -t gfxtemplate_h.txt -o src/gfx_hud.h; w4 png2src --c .\SPRITE_Hud.png -t gfxtemplate_c.txt -o src/gfx_hud.c
w4 png2src --c .\SPRITE_Interiors.png -t gfxtemplate_h.txt -o src/gfx_interiors.h; w4 png2src --c .\SPRITE_Interiors.png -t gfxtemplate_c.txt -o src/gfx_interiors.c
w4 png2src --c .\SPRITE_NPCs.png -t gfxtemplate_h.txt -o src/gfx_npcs.h; w4 png2src --c .\SPRITE_NPCs.png -t gfxtemplate_c.txt -o src/gfx_npcs.c
w4 png2src --c .\SPRITE_Overworld.png -t gfxtemplate_h.txt -o src/gfx_overworld.h; w4 png2src --c .\SPRITE_Overworld.png -t gfxtemplate_c.txt -o src/gfx_overworld.c
w4 png2src --c .\SPRITE_Player.png -t gfxtemplate_h.txt -o src/gfx_player.h; w4 png2src --c .\SPRITE_Player.png -t gfxtemplate_c.txt -o src/gfx_player.c
w4 png2src --c .\SPRITE_Title.png -t gfxtemplate_h.txt -o src/gfx_title.h; w4 png2src --c .\SPRITE_Title.png -t gfxtemplate_c.txt -o src/gfx_title.c
w4 png2src --c .\SPRITE_Weapon.png -t gfxtemplate_h.txt -o src/gfx_weapon.h; w4 png2src --c .\SPRITE_Weapon.png -t gfxtemplate_c.txt -o src/gfx_weapon.c

generate text

Windows:
RATGTextCompressor.exe dialog_input.txt src
Linux:
./RATGTextCompressor/RATGTextCompressor dialog_input.txt src

package

make clean; make
w4 bundle --html testout.html build/cart.wasm

Links

  • Documentation: Learn more about WASM-4.
  • Snake Tutorial: Learn how to build a complete game with a step-by-step tutorial.
  • GitHub: Submit an issue or PR. Contributions are welcome!
  • Make not working on Windows? Download msys2, add to PATH
  • WASM4SDK not present? Download wasi-sdk-19.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published