Das Programmierspiel von der Gulasch-Programmier-Nacht 11

(Latest mirror + merged latest fork by qr4 on Lua 5.3)

Entropia info page https://entropia.de/GPN11:Programmierspiel (dead links)
Origin Gitlab
https://code.nerd2nerd.org/n2n/WeltraumProgrammierNacht

screen.h 396B

123456789101112131415161718192021222324252627282930
  1. #ifndef SCREEN_H
  2. #define SCREEN_H
  3. #include "globals.h"
  4. typedef struct {
  5. float x;
  6. float y;
  7. } vector_t;
  8. typedef struct {
  9. vector_t center;
  10. float safety_radius;
  11. } cluster_t;
  12. typedef struct wp_t waypoint_t;
  13. struct wp_t {
  14. vector_t point;
  15. waypoint_t* next;
  16. };
  17. void sdl_init();
  18. int main_loop();
  19. void draw_line(vector_t *p1, vector_t *p2);
  20. void draw_blob(cluster_t* p);
  21. #endif /*SCREEN_H*/