# Act of Balancing

The problem: how do I know how much stuff to give the player? And by stuff, I mean inventory, specifically food, wood, stone, etc. So far I’ve been using a 0-100 scale, where 10 is a little, and 100 is a ton. But this doesn’t scale. If we want the player to be challenged in year 10 just as they were in year 1, how much do we give them?!

Luckily, I have Balancing Equipment for Math-hating Game Designers bookmarked. The author has an awesome spreadsheet to download, letting you plug your own numbers in and getting the data you want.

First thing I did was decide what the final year’s tribe count should be. I chose 1,000  members. That seems like a lot of people to govern, especially for a primitive caveman. Using a exponential curve (exponential because the more people there are, the more babies they’re gonna have), I fiddled with the spreadsheet until I had an equation that started from ~5 and went to ~1000 in ten steps. Perfect!

y = x^2.8809

Next, I needed to figure out how many days the game would take. I want Winter to be a separate phase. If one phase is, let’s say, 30 days, and Winter is one quarter of the year, the full year would be 120 days. Note: 90 days of playtime seems like a slog to go through, especially when you times it by ten years, but we’ll stick with it for now.

If we assume each tribe member consumes 10 food a day, 7 tribe members consume 8,400 (7 * 10 * 120) food a year. We can use this equation throughout the game, since food scales with population; the more people there are, the more food they’re gonna eat. So in year 10, the tribe will consume 1,200,000 (1,000 * 10 * 120) food for the year. That’s a lot of food!

Unlike food, I didn’t want wood to scale directly with tribe count. There should be some sort of economies of scale. Using the spreadsheet’s logistic function, I capped wood consumption to 50,000 wood per year..

Mmmmm…curvy

All of this amounts to what the tribe needs for survival. What about when purchasing technologies? They should cost something, right? I figured if it takes 3,000 wood to survive the year, the player should try to save half that for tech, or 1,500. That means the total yearly wood goal is 4,500. I used the same costs for stone, but doubled the food requirements since there are two locales in which to get food (meat and fish).

Assuming the year is 120 days, with 90 days of playable time (reserving 30 for winter), in the first year the player needs to find on average 128 food per day, 52 wood per day, and 17 stone per day.

Final figures

Assuming the player visits all four locales evenly (meaning each locale should give the player four times the average amount), so 256 meat, 256 fish, 208 wood, and 68 stone per visit. Now assume 12 hours of harvesting, and we get, on average, 21 meat, 21 fish, 17 wood, and 6 stone per hour. In year 10, it would be 2,313 meat, 2,313 fish, 275 wood, and 92 stone per hour. That’s a ton. Hope the caveman is up to the task!

Now that we have target resources per hour, we can start writing in sensible resource rewards! We did it!

# ‘Nother Week ‘Nother Build

This weeks build brings you: Sun! Watch the sun move across the sky as you work through the day. Behold the changes in color as it rises and sets each day. Witness its…actually, I think that’s it.

This build also includes a Main Menu at the beginning, more tech and event sounds, inventory totals, a toggle-able debug mode, and a heckuva lot more events.

Play it here!

# Game Update: Tech Tree and Sounds

In this update, we’ve added sounds when finding new locations via the Explore button, and the tech tree now looks and behaves like the real thing!

Fully unlocked tech tree. Most icons are placeholder grass skirts. That’s a LOT OF SKIRTS.

There’s a bunch of new events to find. Or rather, ideas for events. Instead of writing out fully fleshed-out stories and choices, which would take forever, we added a lot of one-sentence story prompts. All those Creative Writing classes finally being put to good use. All locations except the cave and quarry should have them.

Just realized you can’t see your inventory when the debugger is off. I’m gonna have to add a placeholder inventory screen in the next update. In fact, there’s a few things I left in because of debugging (such as techs no longer having to require multiple hours). I have to get better when making builds.

I’ve started to make a list of assets we need (sounds, music, and graphics). Louis and Vince are getting antsy, eager to make some more content. I’ve had them on the back-burner for awhile now while I got a solid code base working. We’ve been talking about adding animations… Exciting times!

Check out the newest build here!

# Event: Unknown Cave

Writing events is way harder than I initially thought. I figured it would be a breeze. I mean, who doesn’t want to write for video games?

Here’s a sample event I’ve tried to flesh out. Options with parentheses are only available if you have the technology unlocked. This idea came about when thinking about the Fire technology, and how it could be used in different events. It obviously can burn things, and scare beasts and people alike. But it can also be used for exploration. Enter, the cave.

Event Name: Unknown Cave

Description: You see an overhang of rock in the far distance. It reminds you of your home. The differences are so slight you aren’t exactly sure it isn’t your cave. As you approach the darkness, a whistling noise grows louder and louder, making you shiver despite the warm day.

Option 1: Enter the cave.
You hesitantly enter the cave. The rocks above your head stir ever so slightly…it’s going to collapse! You make it out right as the entrance cascades behind you.
Lose one hour of daylight.
Option 2: (Fire) Light a torch and explore the cave.
You create a fire before entering the cave, and confidently head in. As the outside light fades away, the entrance to the cave collapses! You frantically claw and dig your way back to freedom. You head back, scratched up and out of breath.
Lose five hours of daylight. Lose 50 stamina. Gain 10 stone.
Option 3: (Common Sense) Leave immediately.
Nothing good can come of this. You turn around and put your back to the darkness. Whatever was in that cave is not worth the risk.
Option 4: (Trap-making) Examine the rock overhang.
Taking a closer look at the overhang leads you to believe that this cave is about to collapse any minute. You leave without a second thought. Nothing in that cave is worth the risk of injury, or even death.
Option 5: (Stealth) Sneak into the cave.
You stealthily examine the entrance to the cave, as far as the daylight reaches. Seeing nothing of use, you leave as quietly as you came.
Lose three hours of daylight.

<Cave is home to another caveman>

Option 1: Enter the cave.
You hesitantly enter the cave. You can’t see anything beyond the light of the outside, but you are able to see another caveman’s possessions littered throughout. You struggle to see as you rifle through the stranger’s things. Suddenly, fur stirs. You flee in terror, dropping most of what you looted.
Gain 10 food. Lose two hours of daylight.
Option 2: (Fire) Light a torch and explore the cave.
You create a fire before entering the cave, and confidently head in. This cave clearly belongs to another caveman! Grabbing the juiciest food first, a fur in the back begins to move. Another person! You hightail it out of there, loot in hand.
Gain 30 food. Lose one hour of daylight.
Option 3: (Common Sense) Leave immediately.
Nothing good can come of this. You turn around and put your back to the darkness. Whatever was in that cave is not worth the risk.
Option 4: (Trap-making) Examine the rock overhang.
Taking a closer look at the overhang reveals nothing. As you are stumbling about outside the entrance, you hear…something stir from inside the cave. Not wanting a fight, you run as fast as your feet can take you.
Lose one hour.
Option 5: (Stealth) Sneak into the cave.
You stealthily examine the entrance to the cave, as far as the daylight reaches. This is clearly someones home! You take your time, looting what you please, and eventually leave, the owner’s occupants none the wiser.
Gain 60 food. Lose three hours of daylight.

I wanted to showcase the non-obviousness of choosing what path to take. Sometimes the cave is going to collapse no matter what, sometimes it contains food for the taking. No choice is clearly the best.

I’m not sure if this is fun though. In FTL, there’s an event where you can choose to fight the mantis. If you fight, you either gain a little loot, or you lose a crew member, which is devastating most of the time. Most people choose to flee. Would people enter the cave at the risk of collapse? Choosing the Stealth option loses three hours either way, but there’s a chance for a lot of food. Is the fire option worth the risk of losing five hours and 50 stamina? Will players just choose Common Sense every time? I guess only playtesting will tell.

Also, this took a significant amount of time to write, and there’s not even any jokes in it! I may limit future events to one default choice, one cheap tech choice, and one expensive tech choice. We’ll see.

# WIP: Tech Tree v 2

I’ve been trying out a few tech trees, and currently leaning towards the one pictured below. With some tinkering, I think it could be a really fun feature. Techs are logically separated, and most of the branches lead towards something interesting.What I like about this tree is the inter-connectivity. Technologies split and recombine to form new techs. Areas that need improving are the Cause & Effect and, to a lesser extent, Weapon Training branches. While Regrowth (the ability to kickstart a location’s resources back from zero), Wolf, and Stealth are powerful in their own right, the branches themselves lack player choice.

Population Control is awkward as well, since it’s on it’s own level higher than any other tech. And I can’t find a good place to fit sling. Part of me doesn’t even want it: I can’t think of any events that would incorporate it that won’t involved combat, which Spear already does. So although Sling is a uniquely historical tech choice on its own, it doesn’t add anything new.

Throughout the iteration process, I found certain techs naturally grouping together. Spear/Weapon/Athleticism/Stealth all evoke the image of a proficient hunter. Name Power/Wolf/Sic is a logical process for training a wild animal. I also like how Crafts splits into Weaving and Woodworking, each with very distinct techs of their own.

My favorite tech so far is “Cool Hat”. I’m gonna try my hardest to see it in the final tree, whatever that may look like. Because logically, who won’t to listen to the caveman with a hat? That guy just has to be important!

# Caveman Sim – Feature Complete?

There’s the (relatively new) rule of thumb: if an article title ends in a question mark, the answer is ‘no’. While I hesitate to say that Caveman Sim is “feature complete”, it’s becoming more difficult to add more to it. So I spent the day figuring out the new technology tree. It took me awhile to realize that nobody’s gonna do it but me. Well, the meat of the thing anyway. The events will probably be the same situation.

First iteration of the new tech tree

Is it too early to enter beta? (FYI generally alpha is when you add all the features, and beta is testing). I think the core mechanics are done. We’ll see after writing the tech tree and a few events. We may yet need another feature or three.

Play the current build here!

# A New World Record!

Vince sent this image to me. He actually managed to beat 4,320 B.C!

I thought this was impossible to do. His strategy was going for all tech ASAP. He did so by Day 20. Then he only had to wait 70 more days…

BTW, the grade is based on surviving family members. A is all four survived, B is three, C is two (what Vince got), D is one, and F is when you all die. Can anyone get an A???

Attempt it here: 4,320 BC: The Story of Caveman

# Caveman Sim 2.0

Last week my brothers and I had a post-Ludum Dare talk. We decided we want to see where the game goes, as we envision it in our heads. Since I have a little more time to do things the right way, I’ve scratched the game and started completely over. Here’s the current build:

Caveman Sim 0.2a

Features: Map traversal (only four locations so far). Additional exploration opportunities (try exploring from the Lake). Ability to harvest resources from a given location.

To Do: Event rewards. More content. Sounds. Day cycles.

Bug: Travel button has to be clicked on twice before working. Online build not showing how many hours it takes to travel to each location (You go from river to lake to cave to hunting grounds, a total of 3 hours. River to lake is only one hour).

# Ludum Dare 36: 4320 BC – The Story of Caveman

4320 B.C: The Story of Caveman is a text-based simulator of the life of a caveman family. You play as Mathias, who must gather enough food and wood to help his family survive the upcoming winter. You will explore various locales, experience unique events, and learn innovating concepts such as fire and grass clothing. Are you fit enough to survive?

WARNING: It’s not a fun game. It’s not a unique game. I don’t even think you can beat it. But we made it! So there’s that.

• Audio: Louis
• Game Design: Leo
• Graphics: Vince, Brent, Jessica
• Programmer: Anthony

# Ludum Dare 36: Day 2

Adding more of the same. A LOT more. So much more that features are being cut left and right. I’m in the middle of night summaries, where it tabulates your daily progress. I’ve cut two thirds of the locations, and thus resource depletion and replenishment by location. The tech tree seems to be in a final state. Everyone else is busy adding assets.

Now featuring day cycles!

AMAZING work by newcomer Jessica. This makes me want to be a better game designer just to justify the art.

African woods by Vince

Really cool Axe by Brent