--- /dev/null
+#include "game.h"
+#include "raylib.h"
+#include <stdio.h>
+
+#define DLGCOUNT 15
+//really shouldnt do this all in here but idc
+
+static struct dialogue dialogues[DLGCOUNT] = {
+ {"It's time to have an epic idol fight!!", "Rozaliya", "dialogue-img/aichan-default.png", PINK},
+ {"Roza... is this really a good idea?", "Liliya", "dialogue-img/aichan-default.png", BLUE},
+ {"(Liliya!! Stop it!)\nAnyway, we're totally going to win and stuff!!", "Rozaliza", "dialogue-img/aichan-default.png", PINK},
+ {"No way!! WE'RE going to win!!", "Ai-chan", "dialogue-img/aichan-angry.png", GREEN},
+ {"I can't even take this anymore. the dialogue. is too bad.", "Context", "dialogue-img/context.png", BLACK},
+ {"Who are you?", "olenyevas", "dialogue-img/aichan-default.png", PURPLE},
+ {"I'm...\ngoing to beat all of you in a fight.", "context [?]", "dialogue-img/context.png", BLACK},
+ {"FUCK YOU!! WERE ALL GOING TO BEAT YOU", "Ai-chan", "dialogue-img/aichan-angry.png", GREEN},
+ {"Please just stop talking", "evil context??", "dialogue-img/context.png", BLACK},
+
+
+ {"well you won i guess", "???", "dialogue-img/context.png", BLACK},
+ {"Who are you?? and WHY did you interrupt our super epic awesome idol fight??", "Rozaliya", "dialogue-img/aichan-default.png", PINK},
+ {"I'm the will of Honkai", "tWoH?????", "dialogue-img/context.png", BLACK},
+ {"WHAT??? NOOOOOOOO", "Rozaliya", "dialogue-img/aichan-default.png", PINK},
+ {"...PROMETHEUS?", "Liliya", "dialogue-img/aichan-default.png", BLUE},
+ {"Actually, it's PROMETHEUS no.17.", "PROMETHEUS", "dialogue-img/aichan-default.png",GRAY}
+};
+
+int current_dlg = 0;
+
+struct dialogue *pre_dialogue = dialogues;
+int pre_dialogue_count = 9;
+
+struct dialogue *post_dialogue_win = dialogues+9;
+int post_dialogue_win_count = 2;
+
+int prome_hp = 262144; //2^18
+int player_hp = 524288; //2^19
+
+int player_atk = 64; //may seem little but. the whole point is to spam. also itll go up later
+int brick_atk = 1024;
+int prome_atk = 256;
+int prome_atk_time = 0.2;
+
+
+
+int update_boss_screen(float delta)
+{
+ switch (frozen) {
+ case 0:
+ //normal gameplay
+ break;
+ default:
+ //nothing?
+ break;
+ };
+ return 1;
+};
+
+int draw_boss_screen(void)
+{
+ switch (frozen) {
+ case 1: //pre-fight dialogue
+ drawdialogue(pre_dialogue+current_dlg);
+ if (IsKeyPressed(inputs[5])) {
+ if (++current_dlg >= pre_dialogue_count) { //dialogue over
+ current_dlg = 0;
+ frozen = 0;
+ };
+ };
+ break;
+ case 0:
+ //fight
+ break;
+ case 2:
+ //post-fight-win dialogue
+ break;
+ case 3:
+ //post-fight-lose dialogue
+ break;
+ };
+ return 1;
+};
#define STARTGAMEMODE 0
#define LEVELMODE 1
-#define ENDSCREENMODE 2
-
-struct character *spielersetup(void);
-int next_level(struct character *player);
-int kill_chara(struct character *player);
-int interact(struct Rectangle *rect);
-
-int bühnezeichnen(void); //i dont think stage works here but it seems better than window
-int spielerzeichnen(void);
-
-int variables(float delta, struct character *player);
-int spieler_bewegen(float delta);
-int physics(float delta, struct character *player);
-
-
-
-int on_floor(struct Rectangle *rect);
-int in_floor(struct Rectangle *rect);
-int sliding_wall(struct Rectangle *rect);
-int is_killed(struct Rectangle *rect);
-
-int level_cleanup(void);
-int player_cleanup(void);
-
-int drawstartgame(void);
-int handlebuttons(void);
-int drawendscreen(int game_seconds);
+#define BOSSFIGHTMODE 2
+#define ENDSCREENMODE 3
//structures
struct character {
int columns;
};
+//functions
+struct character *spielersetup(void);
+int next_level(struct character *player);
+int kill_chara(struct character *player);
+int interact(struct Rectangle *rect);
+
+int bühnezeichnen(void); //i dont think stage works here but it seems better than window
+int spielerzeichnen(void);
+
+int variables(float delta, struct character *player);
+int spieler_bewegen(float delta);
+int physics(float delta, struct character *player);
+
+
+
+int on_floor(struct Rectangle *rect);
+int in_floor(struct Rectangle *rect);
+int sliding_wall(struct Rectangle *rect);
+int is_killed(struct Rectangle *rect);
+
+int level_cleanup(void);
+int player_cleanup(void);
+
+int drawstartgame(void);
+int handlebuttons(void);
+int drawendscreen(int game_seconds);
+
+int drawdialogue(struct dialogue *dialogueline);
+
+int update_boss_screen(float delta);
+int draw_boss_screen(void);
+
//variables
extern int level;
#define DLGHEIGHT 180
#define CHARADISPLAYWIDTH 140
#define DLGPADDING 5
-#define CHARANAMETEXTSIZE 30
+#define CHARANAMETEXTSIZE 25
#define DLGTEXTWIDTH SCREENWIDTH - DLGPADDING * 2 - CHARADISPLAYWIDTH
#define COINPADDING 5
int current_dialogue = 0;
-int drawdialogue(struct dialogue *dialogue);
int drawcharname(char *name, Color colour);
int drawcharimage(char *filename);
int drawdialogueline(char *line);
int drawcharname(char *name, Color colour)
{
- DrawText(name,DLGPADDING,DLGY + DLGPADDING,CHARANAMETEXTSIZE,colour);
+ DrawText(name,DLGPADDING,DLGY + DLGPADDING + (30 - CHARANAMETEXTSIZE) ,CHARANAMETEXTSIZE,colour);
return 1;
}
#include <stdio.h> // seems useful
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 frozen = 1; //0:game, 1:stage dialogue, 2+:object[frozen-2] dialogue || 0:fight 1:pre-fight dialogue
+int mode = 2; //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 drawhitboxes = 0;
ZeichnenAufhören();
};
break;
+ case BOSSFIGHTMODE:
+ update_boss_screen(GetFrameTime());
+ ZeichnenAnfangen();
+ ClearBackground(RAYWHITE);
+ draw_boss_screen();
+ ZeichnenAufhören();
+ break;
case ENDSCREENMODE:
//printf("enddd");
ZeichnenAnfangen();