world.h 553 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <game/draw.h>
  3. // Screen size
  4. #define SCREEN_WIDTH 128
  5. #define SCREEN_HEIGHT 64
  6. // World size (3x3)
  7. #define WORLD_WIDTH 384
  8. #define WORLD_HEIGHT 192
  9. // Maximum number of world objects
  10. #define MAX_WORLD_OBJECTS 100
  11. void draw_bounds(Canvas *canvas);
  12. void draw_example_world(Level *level);
  13. void draw_tree_world(Level *level);
  14. void draw_town_world(Level *level);
  15. bool draw_json_world(Level *level, const char *json_data);
  16. bool draw_json_world_furi(Level *level, FuriString *json_data);
  17. FuriString *fetch_world(char *name, void *app);