Final Beta Week

This week me and my team have been hard at work finishing most of the things that need to be done before the beta presentations. At the start of the week we created a document that everyone filled in with things that we thought had to be done before the presentations. We programmers already sort of knew what had to be done, so we just filled in and divided the tasks between us. The tasks that i had were the following: the GUI, that means both the hud and the main menu in this case. And also the seed combiner.

In our game you can collect three different types of seed, you need these seeds to build towers. depending on what types of seeds you currently have, you can build different kinds of towers. I built the seed combiner, the player can select the seeds that they have and then press space and depending on the players selection a different tower will be planted. This seemed really easy to me until i realized the player had too be able too select two of the same type. As i felt i had very little time, i didn’t take the long route and create some great code that looks good. Instead i created six variables, one for each selection (we have three different seed types). When the player presses space it calls the Combine seed class, (which I made static). The class takes in all the mentioned variables as overload variables and here I hardcoded all possible selections. If the selection is all three selected at the same time or if none is selected the method returns with 0 and no tower is planted. When the player has pressed space all the variables are turned to false and the selections are in that way cleared.

I also created a piece of hud for this mechanic. The hud shows how many of each seed you have and which seeds are selected at the time.

I also got a new graphic for the main menu from one of our artists, which i implemented. This one had a couple of more options to chose from, as it had controls and credits and sound options. I don’t know if these will actually be in the final version of the build.

We still have some crashes that hopefully won’t affect our beta presentation on friday, i think we can fix them until then.

About Oskar Hernberg

2014  Programming