Devlog #7: New mechanics!


The seventh day of the Game Jam is done.

Today was quite productive - I coded an entire dice roll system!

I’m pretty happy with it, I coded it in a certain way, it can be copied and pasted anywhere inside another scene and should work flawlessly!

It starts off by asking what the player rolled (or rolling the dice for the player), and then moving to a section called “Outcome”.

Example of the beginning code of the dice roll system.

In the outcome section, it does a few things:

  1. It checks their level of damage. If they are at 3, they die and lose the game.
  2. It then tells the player what they rolled (so that the players who are not using physical dice know what they rolled.)
  3. Then it changes the outcome for every dice roll.

Currently in the game, if someone rolls a 1, 2 or 3, they take damage and then go to roll again. 4 they don’t take any damage but have to roll again. 5 and 6 they win the battle.

Example of some code that changes the outcome of the attack based on their dice roll.

I also spent some time drawing and writing more code, but I don’t want to focus on those. The drawings reminded me how bad of an artist I am, and the more I put in placeholder writing, the more I remember how creative writing doesn’t come easily to me.

Tomorrow I will finish the code fully and then get stuck into re-writing the entire thing! If I get bored, I will try my hand at drawing again, but I don’t know if they’ll make it into the final product. I might start off with some really crude stick figures and just pretend that was my “artistic flair”.

Leave a comment

Log in with itch.io to leave a comment.