draw.h 630 B

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