]> _ Git - aichan-platformer.git/commitdiff
add some extra levels, change speed + jump a bit (next up: walljump)
authorparking_turkeys <roya1060wien@gmail.com>
Wed, 22 Jul 2026 20:18:55 +0000 (16:18 -0400)
committerparking_turkeys <roya1060wien@gmail.com>
Wed, 22 Jul 2026 20:18:55 +0000 (16:18 -0400)
game.h
level_data.h
main_v2.c

diff --git a/game.h b/game.h
index 3b8eaa5..d2bc7e8 100644 (file)
--- a/game.h
+++ b/game.h
 #define ZeichnenAnfangen() BeginDrawing()
 #define ZeichnenAufhören() EndDrawing()
 
-#define SPEED 40
+#define SPEED 59
 #define GRAVITY 20
 #define FRAMELENGTH 0.1
-#define JUMPVELOCITY -130
+#define JUMPVELOCITY -160
 
 #define LEVELS 3
 
index 6a1334d..787ebfd 100644 (file)
@@ -1,7 +1,7 @@
-#define STAGECOUNT 3
-#define DIALOGUECOUNT 9
-#define PLATFORMCOUNT 5
-#define DANGERCOUNT 1
+#define STAGECOUNT 4
+#define DIALOGUECOUNT 10
+#define PLATFORMCOUNT 9
+#define DANGERCOUNT 5
 
 #include "game.h"
 
@@ -20,6 +20,9 @@ struct dialogue dialogues[DIALOGUECOUNT] = {
        {"Press 'H' to JUMP", "Ai-chan", "dialogue-img/aichan-smile.png", GREEN},
 
 
+       {"Those red squares are dangerous!! Don't touch them.", "Ai-chan", "dialogue-img/aichan-angry.png", GREEN},
+
+
        {"YOU WIN!!", "Ai-chan", "dialogue-img/aichan-smile.png", GREEN}
 };
 
@@ -28,19 +31,31 @@ struct platform platforms[PLATFORMCOUNT] = {
 
 
        {{0,320,640,160},GREEN},
-       {{310, 300, 40, 20}, GREEN},
+       {{240, 300, 160, 20}, GREEN},
 
 
        {{0, 320, 640, 160}, GREEN},
-       {{320, 0, 320, 480}, GREEN}
+
+       {{0,320,80,160},GREEN},
+       {{100,300,80,10}, GREEN},
+       {{200,270,60,10}, GREEN},
+       {{280,240,230,10}, GREEN},
+       {{560,420,80,160}, GREEN}
 };
 
 struct platform danger[DANGERCOUNT] = {
-       {{50,310,7,10}, RED}
+       {{80,310,7,10}, RED},
+       {{160,310,7,10}, RED},
+       {{240,310,7,10}, RED},
+       {{320,310,7,10}, RED},
+
+       
+       {{80,440,480,40}, RED}
 };
 
 struct stage stages[STAGECOUNT] = {
-       {"Level 0", platforms, 1, dialogues, 7, danger, 0},
-       {"Level 1", platforms+1, 2, dialogues+7, 1, danger, 1},
-       {"End", platforms+3, 2, dialogues+8, 1, danger, 0}
+       {"Movement", platforms, 1, dialogues, 7, danger, 0},
+       {"Jumping", platforms+1, 2, dialogues+7, 1, danger, 0},
+       {"Danger", platforms+3, 1, dialogues+8, 1, danger, 4},
+       {"(level)", platforms+4, 5, dialogues+8,1,danger+4,1}
 };     
index db3b218..0b894ee 100644 (file)
--- a/main_v2.c
+++ b/main_v2.c
@@ -10,7 +10,7 @@
 #include <math.h>
 #include <stdio.h> // seems useful
 
-int level = 0;
+int level = 3;
 int frozen = 0;
 
 int main(void)