From: parking_turkeys Date: Thu, 23 Jul 2026 23:43:57 +0000 (-0400) Subject: not sure what i didnt commit but we have 1.all levels of the game 2.some art of seele... X-Git-Tag: v1.0~16 X-Git-Url: http://git.p-t.hackclub.app/?a=commitdiff_plain;h=be272931ff5f16ccae309e1a7b50ca908ad0e6ab;p=aichan-platformer.git not sure what i didnt commit but we have 1.all levels of the game 2.some art of seele and bronya 3.a video showing the full game --- diff --git a/dialogue-img/bronya.png b/dialogue-img/bronya.png new file mode 100644 index 0000000..126f117 Binary files /dev/null and b/dialogue-img/bronya.png differ diff --git a/dialogue-img/seele.png b/dialogue-img/seele.png new file mode 100644 index 0000000..1114133 Binary files /dev/null and b/dialogue-img/seele.png differ diff --git a/dialogue-img/seele_b.png b/dialogue-img/seele_b.png new file mode 100644 index 0000000..242943c Binary files /dev/null and b/dialogue-img/seele_b.png differ diff --git a/endscreen.c b/endscreen.c index e913e44..0291b04 100644 --- a/endscreen.c +++ b/endscreen.c @@ -17,6 +17,7 @@ int drawendscreen(int seconds) struct time *gametime = formattime(seconds); //printf("time to draw the gametime"); DrawText(TextFormat("Time: %02d:%02d",gametime->min,gametime->sec),80,240,20, GRAY); + DrawText(TextFormat("Deaths: %d",deaths),240,240,20,GRAY); return 1; }; diff --git a/game.h b/game.h index 24cb96e..9a0f960 100644 --- a/game.h +++ b/game.h @@ -15,7 +15,7 @@ #define FRAMELENGTH 0.1 #define JUMPVELOCITY -160 -#define LEVELS 10 +#define LEVELS 13 //these are for the "mode" variable @@ -103,3 +103,4 @@ extern int frozen; extern int objects_interacted[]; extern int mode; extern int inputs[]; +extern int deaths; diff --git a/img/bronya_15_18.png b/img/bronya_15_18.png new file mode 100644 index 0000000..515d8ee Binary files /dev/null and b/img/bronya_15_18.png differ diff --git a/img/cherries_15_15.png b/img/cherries_15_15.png new file mode 100644 index 0000000..74e8894 Binary files /dev/null and b/img/cherries_15_15.png differ diff --git a/img/seele_15_20.png b/img/seele_15_20.png new file mode 100644 index 0000000..c561a92 Binary files /dev/null and b/img/seele_15_20.png differ diff --git a/level_data.h b/level_data.h index 5cc96ff..1e1af65 100644 --- a/level_data.h +++ b/level_data.h @@ -1,8 +1,8 @@ -#define STAGECOUNT 10 -#define DIALOGUECOUNT 31 -#define PLATFORMCOUNT 61 -#define DANGERCOUNT 30 -#define OBJECTCOUNT 2 +#define STAGECOUNT 13 +#define DIALOGUECOUNT 43 +#define PLATFORMCOUNT 83 +#define DANGERCOUNT 34 +#define OBJECTCOUNT 5 #include "game.h" #include @@ -55,6 +55,25 @@ struct dialogue dialogues[DIALOGUECOUNT] = { {"SENTI!!! >:(((", "Ai-chan", "dialogue-img/aichan-angry.png", GREEN}, + {"the shape of the platforms here is a lazy reference to seele's stigmata in hi3. literally everything about this level is lazy.", "COntext", "dialogue-img/context.png", BLACK}, + + {"Bronya has been dragged into Roza and Lili's schemes again.", "Bronya", "dialogue-img/bronya.png", ORANGE}, + {"... \nHave you seen Seele?", "Bronya", "dialogue-img/bronya.png", ORANGE}, + {"This is probably some scheme by those two!!", "Ai-chan", "dialogue-img/aichan-angry.png", ORANGE}, + {"no actually it's just too annoying to add dialogue that's different based on other things", "CONTEXT", "dialogue-img/context.png", BLACK}, + + {"Hello! How are you, Ai-chan?", "Seele", "dialogue-img/seele.png", DARKBLUE}, + {"... LITERALLY TERRIBLE BECAUSE OF YOUR FAKE IDOL FRIENDS >:(", "Ai-chan", "dialogue-img/aichan-angry", GREEN}, + {"It cannot be this serious.", "Context", "dialogue-img/context.png", BLACK}, + {"This cannot be this serious, can you just get it over with soon??", "Seele", "dialogue-img/seele_b.png", RED}, + {"?", "Ai-chan", "dialogue-img/aichan-smile.png", GREEN}, + + {"There are some cherries. Somehow, they're still good.", "Context", "dialogue-img/context.png", BLACK}, + + + {"Here's the last level... soon there will be a boss fight (never. there's no way the boss fight gets finished", "context", "dialogue-img/context.png", BLACK}, + + {"YOU WIN!!", "Ai-chan", "dialogue-img/aichan-smile.png", GREEN} }; @@ -142,7 +161,35 @@ struct platform platforms[PLATFORMCOUNT] = { {{280,80,80,20},GREEN}, {{340,0,20,80},GREEN}, {{40,60,200,20},GREEN}, - {{40,0,20,80},GREEN} + {{40,0,20,80},GREEN}, + + + {{0,400,640,80},GREEN}, + {{320,240,10,140},GREEN}, + {{270,240,10,120},GREEN}, + {{180,240,90,10},GREEN}, + {{180,160,10,80},GREEN}, + {{190,160,60,10},GREEN}, + {{240,70,10,90},GREEN}, + {{310,40,10,80},GREEN}, + {{310,120,100,10},GREEN}, + {{390,130,20,100},GREEN}, + {{320,230,90,10},GREEN}, + {{250,205,40,10},GREEN}, + + + {{0,380,100,20},GREEN}, + {{170,380,10,20},GREEN}, + {{210,390,20,20},GREEN}, + {{290,390,30,20},GREEN}, + {{340,390,20,10},GREEN}, + {{430,390,15,10},GREEN}, + {{440,440,140,40},GREEN}, + + + {{0,350,240,10},GREEN}, + {{280,350,200,10},GREEN}, + {{500,350,140,10},GREEN} }; @@ -188,13 +235,26 @@ struct platform danger[DANGERCOUNT] = { {{150,50,10,10},RED}, {{400,395,19,5},RED}, {{510,390,10,10},RED}, - {{560,395,5,5},RED} + {{560,395,5,5},RED}, + + + {{320,220,10,10},RED}, + + + {{0,420,440,60},RED}, + {{580,460,60,20},RED}, + + + {{0,400,640,80},RED} }; struct object objects[OBJECTCOUNT] = { {{440,418,15,22}, "Sin Mal", "img/sin_15_22.png" ,dialogues+13,4, 0}, - {{60,38,15,22}, "Herrscher of Sentience", "img/senti_15_22.png", dialogues+21,7} + {{60,38,15,22}, "Herrscher of Sentience", "img/senti_15_22.png", dialogues+21,7, 1}, + {{200,222,15,18}, "Bronya Zaychik", "img/bronya_15_18.png", dialogues+29,4, 2}, + {{340,201,15,15}, "cherries", "img/cherries_15_15.png", dialogues+38,1, 3}, + {{330,100,15,20}, "Seele Vollerei", "img/seele_15_20.png", dialogues+33,5, 4} }; struct stage stages[STAGECOUNT] = { @@ -207,5 +267,8 @@ struct stage stages[STAGECOUNT] = { {"Interact", platforms+19,4, dialogues+10,3,danger+9,3,objects,1}, {"(level)", platforms+23,11,NULL,0,danger+12,5,NULL,0}, {"Ominous", platforms+34,14,dialogues+17,2,danger+17,4,NULL,0}, - {"Senti", platforms+48,13,dialogues+19,2,danger+21,9,objects+1,1} + {"Senti", platforms+48,13,dialogues+19,2,danger+21,9,objects+1,1}, + {"Seele", platforms+61,12,dialogues+28,1,danger+30,1,objects+2,3}, + {"(level)", platforms+73,7,NULL,0,danger+31,2,NULL,0}, + {"Last level", platforms+80,3,dialogues+39,2,danger+33,1,NULL,0} }; diff --git a/main_v2.c b/main_v2.c index 34965be..7210a82 100644 --- a/main_v2.c +++ b/main_v2.c @@ -10,10 +10,11 @@ #include #include // seems useful -int level = 9; +int level = 0; int frozen = 0; //0:game, 1:stage dialogue, 2+:object[frozen-2] dialogue int mode = 0; //0:'start game', 1: 'levels', 2:'end screen' (later: 2 will be bossfight and 3 will be end screen lol) int fullsectime = 0; +int deaths = 0; int main(void) { @@ -36,6 +37,7 @@ int main(void) break; case LEVELMODE: if (!frozen) {variables(GetFrameTime(), player);}; + if (mode == LEVELMODE) { ZeichnenAnfangen(); bühnezeichnen(); if (!frozen) {spielerzeichnen();}; @@ -44,9 +46,12 @@ int main(void) DrawRectangle(1, 0, 45, 12, WHITE); DrawText(TextFormat("Seconds played: %5.2f", GetTime()), 2, 0, 10, BLACK); ZeichnenAufhören(); + }; break; case ENDSCREENMODE: + //printf("enddd"); ZeichnenAnfangen(); + //printf("end"); drawendscreen(fullsectime); ZeichnenAufhören(); break; @@ -74,8 +79,10 @@ int next_level(struct character *player) //printf("set frozen\n"); player->rect.x = 0; player->rect.y = 300; if (level == LEVELS) { + //printf("DONE"); mode = ENDSCREENMODE; - fullsectime = GetTime(); + fullsectime = (int)GetTime(); + //printf("time saved"); }; return 1; } @@ -83,5 +90,6 @@ int next_level(struct character *player) int kill_chara(struct character *player) { player->rect.x = 0; player->rect.y = 300; + deaths += 1; return 1; } diff --git a/physics.c b/physics.c index 170a836..de11e72 100644 --- a/physics.c +++ b/physics.c @@ -12,9 +12,12 @@ int physics(float delta, struct character *player) move_player(delta,player); if (player->rect.x > SCREENWIDTH) { next_level(player); + //printf("brought to next level\n"); + return 1; }; if (player->rect.x < -1) { kill_chara(player); + deaths -= 1; }; return 1; } diff --git a/player.c b/player.c index 6150b30..a787caf 100644 --- a/player.c +++ b/player.c @@ -2,7 +2,7 @@ #include #include #include "game.h" -struct character player = {{0,300,6,18},{0,0}}; +struct character player = {{2,300,6,18},{0,0}}; int inputs[6] = {KEY_A,KEY_D,KEY_W,KEY_S,KEY_H,KEY_R}; //left, right, up, down, jump/advance dialogue, interact static struct spritesheet front_sheet, walk_sheet; diff --git a/video.mp4 b/video.mp4 new file mode 100644 index 0000000..32c1237 Binary files /dev/null and b/video.mp4 differ