itch.io is community of indie game creators and players

Devlogs

Week 3: Development

Recipe 4 Disaster
A downloadable game

For this week we focused on four main goals when it comes to programming!

  • Order timer
  • Strike system
  • Main Menu
  • Lose state

Since this is being written post-completion, there aren't any photos from in-development. But we will still show you what we ended up with!

Timer

The timer itself was fairly simple, especially since Visual Scripting has a fairly competent one built in by default.

We attached a modified Slider element to the top of the order sheet and made a timer variable that starts at 60 seconds.


At the beginning of each order the slider's width is set to the current amount of time left. If the player gives a successful order then the time is reduced by 10% and if a player fails then 5 seconds are added on as a buffer for the player.

Strikes

Main Menu

For the main menu we went through a couple of layout changes but ultimately settling on this one. This menu shows the highscore, main interactive elements, and has buttons that line up with the alternative controller that fabrication made!

The credits don't have a corresponding button, but it wasn't really needed for main gameplay anyways, so it can be accessed with the mouse.

I don't think it was required, but everyone deserves credit for the amazing work they did for this project!

Lose State

For the lose state, aka game over, we decided to have it project the highscore alongside your current score (pretty creative and unique amirite?) This uses the same button layout as the main menu as well.

The way this works is that once a game over is recognized, the code runs a function once to check if the score is lower than the highscore and then adjust accordingly. This highscore is then saved to a "Saved Variable" and will be stored even when the game is closed!

This is all for this week, thanks for reading!

Leave a comment