world.h 490 B

1234567891011121314151617
  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 25 // any more than that and we may run out of heap when switching worlds
  11. void draw_bounds(Canvas *canvas);
  12. void draw_town_world(Level *level);
  13. bool draw_json_world_furi(Level *level, const FuriString *json_data);
  14. FuriString *fetch_world(const char *name);