a-game

2D platformer written from scratch.
git clone git://git.amin.space/a-game.git
Log | Files | Refs | README | LICENSE

platform_wasm.h (352B)


      1 #define PLATFORM_SCR_WIDTH 600
      2 #define PLATFORM_SCR_HEIGHT 600
      3 
      4 PLATFORM_READ_ENTIRE_FILE(wasm_read_entire_file);
      5 PLATFORM_MEMORY_FREE(wasm_memory_free);
      6 
      7 // Functions implemented in the JS loader
      8 i32 js_get_file_size(i32 file_path, i32 name_len);
      9 i32 js_read_entire_file(i32 file_path, i32 name_len, u8 *file_data);
     10 i32 js_print(i32 string, i32 len);