aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-14 11:22:09 +0000
committernathan <nathansmith@disroot.org>2026-01-14 11:22:09 +0000
commit1b6cb396a429310e2d374fb276efbefe3f6c2fc7 (patch)
treed52c1797e128fd275a21e07dc8fb737b490c5d09
parentbbce25930d9910c715245f5d87a108ab1dac3426 (diff)
downloadFindThings-1b6cb396a429310e2d374fb276efbefe3f6c2fc7.tar.gz
FindThings-1b6cb396a429310e2d374fb276efbefe3f6c2fc7.tar.bz2
FindThings-1b6cb396a429310e2d374fb276efbefe3f6c2fc7.zip
Funnies
-rw-r--r--src/entities/samantha.c8
-rw-r--r--src/game.c17
-rw-r--r--src/game.h2
-rw-r--r--src/mad-libs.c37
-rw-r--r--src/mad-libs.h8
5 files changed, 49 insertions, 23 deletions
diff --git a/src/entities/samantha.c b/src/entities/samantha.c
index 8ee5009..2455e93 100644
--- a/src/entities/samantha.c
+++ b/src/entities/samantha.c
@@ -1,5 +1,6 @@
#include "samantha.h"
#include "ui.h"
+#include "mad-libs.h"
void initSamantha(Entity* entity)
{
@@ -54,7 +55,12 @@ InteractionCommand interactWithSamantha(Entity* entity, Game* game,
case SELECTION_NEXT_MESSAGE:
if (samantha->dialogCount == 0)
{
- setInteractionChat(chat, "I WILL DESTROY THE WORLD");
+ char funnies[255];
+ game->strangeTalkSeed = mapLibs(
+ funnies,
+ "You must be the @nist I orded to @v my @j @n",
+ 255, game->strangeTalkSeed);
+ setInteractionChat(chat, funnies);
++samantha->dialogCount;
return INTERACTION_TALK;
}
diff --git a/src/game.c b/src/game.c
index ee1888c..85f17de 100644
--- a/src/game.c
+++ b/src/game.c
@@ -1,9 +1,6 @@
#include "game.h"
#include "utils.h"
-#include "mad-libs.h"
-#include "time.h"
-
void resetScreenScale(Game* game)
{
Texture texture = game->screen.render.texture;
@@ -84,7 +81,9 @@ void initGame(Game* game)
CUBEMAP_LAYOUT_AUTO_DETECT);
// World.
- game->world = createWorld(345893, &game->assets);
+ Seed seed = 345893;
+ game->world = createWorld(seed, &game->assets);
+ game->strangeTalkSeed = 7373;
// Player.
game->player = createPlayer();
@@ -102,16 +101,6 @@ void initGame(Game* game)
initInventory(&game->inventory, &game->settings);
disableGameCursor(game);
-
- /* char randomWord[MAD_LIBS_MAX]; */
- /* getRandomMapLibsWord(randomWord, '@', -time(NULL)); */
- /* printf("word thingy: %s\n", randomWord); */
-
- char randomThingy[512];
- mapLibs(randomThingy, "I bet your a @j @n who likes to @v to pay for @n", 512,
- -time(NULL));
- printf("hehehe: %s\n", randomThingy);
-
}
void updateMainMenuScene(Game* game)
diff --git a/src/game.h b/src/game.h
index c59d5e9..04e2e18 100644
--- a/src/game.h
+++ b/src/game.h
@@ -35,6 +35,8 @@ struct Game {
bool isCrossHairEnabled;
bool showFPS;
+ Seed strangeTalkSeed;
+
struct {
RenderTexture render;
float scale;
diff --git a/src/mad-libs.c b/src/mad-libs.c
index 3e6882c..bb734bd 100644
--- a/src/mad-libs.c
+++ b/src/mad-libs.c
@@ -40,7 +40,12 @@ const char madLibsNouns[NOUN_COUNT][MAD_LIBS_MAX] = {
"gack",
"poop",
"vin-dit",
- "duffle"
+ "duffle",
+ "otorhinolaryngology",
+ "spaghetti",
+ "terrorism",
+ "membrane",
+ "object"
};
const char madLibsVerbs[VERB_COUNT][MAD_LIBS_MAX] = {
@@ -68,7 +73,13 @@ const char madLibsVerbs[VERB_COUNT][MAD_LIBS_MAX] = {
"yell",
"spin",
"spit",
- "fuck"
+ "fuck",
+ "consume",
+ "yell",
+ "associating",
+ "steal",
+ "jaywalk",
+ "burn"
};
const char madLibsAdverbs[ADVERB_COUNT][MAD_LIBS_MAX] = {
@@ -88,7 +99,15 @@ const char madLibsAdverbs[ADVERB_COUNT][MAD_LIBS_MAX] = {
"badli",
"goodli",
"bearli",
- "skilllessli"
+ "skilllessli",
+ "systematicalli",
+ "psychosomaticalli",
+ "dialecticalli",
+ "foolishli",
+ "samanthalli",
+ "meowfullili",
+ "pooppfulli",
+ "illuminatedli"
};
const char madLibsAdjectives[ADJECTIVE_COUNT][MAD_LIBS_MAX] = {
@@ -119,7 +138,14 @@ const char madLibsAdjectives[ADJECTIVE_COUNT][MAD_LIBS_MAX] = {
"idealistic",
"materialistic",
"nincompoop",
- "granfalloon"
+ "granfalloon",
+ "yellow",
+ "mellow",
+ "spicy",
+ "psyadelic",
+ "nasty",
+ "obdormitionic",
+ "dialectical"
};
Seed getRandomMapLibsWord(char* outputString, char type, Seed seed)
@@ -203,6 +229,9 @@ Seed mapLibs(char* outputString, const char* formatString, size_t maxSize,
skipNext = false;
}
}
+
+ // "Memory safe"
+ outputString[maxSize - 1] = '\0';
return seed;
}
diff --git a/src/mad-libs.h b/src/mad-libs.h
index cb996f4..52fff1b 100644
--- a/src/mad-libs.h
+++ b/src/mad-libs.h
@@ -14,10 +14,10 @@
#define MAD_LIBS_MAX 24
-#define NOUN_COUNT 38
-#define VERB_COUNT 25
-#define ADVERB_COUNT 17
-#define ADJECTIVE_COUNT 28
+#define NOUN_COUNT 43
+#define VERB_COUNT 31
+#define ADVERB_COUNT 25
+#define ADJECTIVE_COUNT 35
extern const char madLibsNouns[NOUN_COUNT][MAD_LIBS_MAX];
extern const char madLibsVerbs[VERB_COUNT][MAD_LIBS_MAX];