draw.h 727 B

123456789101112131415
  1. #pragma once
  2. #include "game/icon.h"
  3. #include <game/player.h>
  4. // Global variables to store camera position
  5. extern int camera_x;
  6. extern int camera_y;
  7. void draw_background(Canvas *canvas, Vector pos);
  8. void draw_user_stats(Canvas *canvas, Vector pos, GameManager *manager);
  9. void draw_icon_line(Canvas *canvas, Vector pos, int amount, bool horizontal, const Icon *icon);
  10. void draw_icon_half_world(Canvas *canvas, bool right, const Icon *icon);
  11. void spawn_icon(Level *level, const Icon *icon, float x, float y, uint8_t width, uint8_t height);
  12. void spawn_icon_line(Level *level, const Icon *icon, float x, float y, uint8_t width, uint8_t height, uint8_t amount, bool horizontal);
  13. // create custom icons at https://lopaka.app/sandbox