]> _ Git - aichan-platformer.git/commitdiff
everything is in german now because i thought it was funny
authorparking_turkeys <roya1060wien@gmail.com>
Thu, 9 Jul 2026 20:45:38 +0000 (16:45 -0400)
committerparking_turkeys <roya1060wien@gmail.com>
Thu, 9 Jul 2026 20:45:38 +0000 (16:45 -0400)
game.h
level.c
main_v2.c
player.c

diff --git a/game.h b/game.h
index 62967f7..76fcfd3 100644 (file)
--- a/game.h
+++ b/game.h
@@ -1,7 +1,11 @@
 #define SCREENWIDTH 640
 #define SCREENHEIGHT 480
 #define FPS 30
-#define WINDOWTITLE "platformer v2 (it works this time) (not really)"
+#define WINDOWTITEL "platformer v2 (it works this time) (not really)"
+#define ZeichnenAnfangen() BeginDrawing()
+#define ZeichnenAufhören() EndDrawing()
+
+int bühnezeichnen(void); //i dont think stage works here but it seems better than window
+int spielerzeichnen(void);
+
 
-int drawstage(void);
-int drawplayer(void);
diff --git a/level.c b/level.c
index 0337dfd..24a4a5d 100644 (file)
--- a/level.c
+++ b/level.c
@@ -3,7 +3,7 @@
 #include <math.h>
 #include "game.h"
 
-int drawstage(void)
+int bühnezeichnen(void)
 {
        ClearBackground(RAYWHITE);
        return 1;
index b961bc8..caae364 100644 (file)
--- a/main_v2.c
+++ b/main_v2.c
@@ -18,10 +18,10 @@ int main(void)
        while (!WindowShouldClose()) {
                //update variables
 
-               BeginDrawing();
-                       drawstage();
-                       drawplayer();
-               EndDrawing();
+               ZeichnenAnfangen();
+                       bühnezeichnen();
+                       spielerzeichnen();
+               ZeichnenAufhören();
        }
 
        CloseWindow();
index 9ab055f..f087ed0 100644 (file)
--- a/player.c
+++ b/player.c
@@ -4,7 +4,7 @@
 #include "game.h"
 
 
-int drawplayer(void)
+int spielerzeichnen(void)
 {
        return 1;
 }