From 95bdaa95050696cd36f12ea58c5df65dad23c4f5 Mon Sep 17 00:00:00 2001
From: nathansmithsmith <thenathansmithsmith@gmail.com>
Date: Thu, 21 Dec 2023 18:47:52 -0700
Subject: What did this world do to me ):

---
 src/gameScreen.c | 38 ++++++++++++++++++++++++++++++++++++++
 src/gameScreen.h |  1 +
 2 files changed, 39 insertions(+)

diff --git a/src/gameScreen.c b/src/gameScreen.c
index 059eea6..9b6dae5 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -7,6 +7,15 @@
 #include "killLog.h"
 #include "entitiesInclude.h"
 
+#define NEXT_LEVEL_INSULTS_COUNT 4
+
+const char * nextLevelInsults[NEXT_LEVEL_INSULTS_COUNT] = {
+	"You suck at this game",
+	"Your the living enbodiment of a skill issue",
+	"Your grandma could do better then that",
+	"Go touch grass"
+};
+
 void initGameScreenGui(GameScreen * gameScreen) {
 	float width = GetScreenWidth();
 	float height = GetScreenHeight();
@@ -44,6 +53,7 @@ void initGameScreen(Game * game, GameScreen * gameScreen) {
 	gameScreen->mainCamera = THIRD_PERSON_CAMERA;
 	gameScreen->levelComplete = false;
 	gameScreen->healthAtLevelEnd = ENTITY_MAX_HEALTH;
+	gameScreen->nextLevelInsultNum = 0;
 
 	// Gyroscope indeed
 	initGyroscope(&gameScreen->gyroscope);
@@ -228,6 +238,17 @@ void drawNextLevelScreen(Game * game, GameScreen * gameScreen) {
 		50,
 		GREEN
 	);
+
+	// Draw insult.
+	const char * insult = nextLevelInsults[gameScreen->nextLevelInsultNum];
+
+	DrawText(
+		insult,
+		(width / 2.0) - (20.0 * strlen(insult) / 4.0),
+		height / 3.0 + 70.0,
+		20,
+		GREEN
+	);
 }
 
 void gameScreenHandleLevels(Game * game, GameScreen * gameScreen) {
@@ -251,9 +272,14 @@ void gameScreenHandleLevels(Game * game, GameScreen * gameScreen) {
 	if (complete) {
 		gameScreen->lastLevel = game->levels.currentLevel;
 		gameScreen->healthAtLevelEnd = getEntityFromWorld(game->world, 0)->health;
+
 		endLevel(game, &game->levels);
+
 		gameScreen->levelComplete = true;
 		gameScreen->timeAtLevelComplete = GetTime();
+
+		SetRandomSeed(time(NULL));
+		gameScreen->nextLevelInsultNum = GetRandomValue(0, NEXT_LEVEL_INSULTS_COUNT - 1);
 	}
 }
 
@@ -456,3 +482,15 @@ void closeGameScreen(Game * game) {
 	if (game->settings.lockMouse)
 		EnableCursor();
 }
+
+// You may think are minds are empty and we lack soul. Have you ever thought that was just a way to cover up what you have to hide?
+// While to you I seemed a bit weird to me you were not even human. To me you were just a copy paste child with the same
+// fake nice act that I know the teacher told you to put on only around me. It doesn't matter if you put on the fake little nice act or
+// was a straight up bully because you were still a complete asshole. I could have watched the most terrible things happen to you and I would have just
+// stood there and not done anything about it even if I had the power to stop it. The teachers at school put a lot of shit
+// into teaching me and others like me how to put on a little mask so we could exist around people like you.
+// Why do I need to be trained to act in a acceptable way just to even exist around you while you were saying and doing
+// your stupid little shit. I was being put down by all the adults for doing something close to as shitty as the
+// things you did daily. Now you see yourself as a decent person and might even think you support people like me.
+// The truth is your hands are covered with blood and the layer of blood only gets thicker every day.
+// FUCK YOU!!!
diff --git a/src/gameScreen.h b/src/gameScreen.h
index 92e6934..5637feb 100644
--- a/src/gameScreen.h
+++ b/src/gameScreen.h
@@ -32,6 +32,7 @@ typedef struct GameScreen {
 	bool levelComplete;
 	double timeAtLevelComplete;
 	int lastLevel;
+    int nextLevelInsultNum;
 
     // Since the player entity gets reallocated each level we use this to remember its health.
     float healthAtLevelEnd;
-- 
cgit v1.2.3