game one


The first game prototype I was tasked with making was a cookie clicker clone, this was my first proper attempt at creating an actually playable game, i found it challenging the things that i had to use were c# and unity both of which i have had previous experience with so i was quite comfortable with what i was doing however there were a good few techniques that were completely new to me which made the creation of the game less dull because it wasn’t just repeating things that i had already learned in the past.

the various bits of c# code that I had to do were kind of simple as it was mostly things such as the upgrades and the actual scoring system the scoring system was the easiest because there was not too much complicated coding it was just making sure that unity and the game itself knew that if you clicked the button to add however many points to the score bar. the upgrades got a bit more complex as that was more than just making sure the game knew what to add when you clicked the button once, however the code for the first upgrade was very similar to the initial script but instead of making sure the game knew how many points to add to the score bar per single click it involved making a script that for every time you bought the upgrade the amount of points per click went up by however many, however it also included making sure that the price of said upgrade did not stay the same every time you bought it personally i think that is where things started to get a little bit harder compared to the initial script because it involved if statements, which are still pretty simple lines of code by themselves however the more complicated bit was the things that was supposed to happen if the if statements were true as it involved making sure the code knew that it had to read things such as the score bar to make sure you had enough points to buy said upgrade and it also had to make sure to update the price so that it was never the same more than once i also had to make sure that the code knew to subtract the current price of the upgrade from the overall amount of points, however after a good bit of trial and error i had successfully managed to implement this code most of the errors i got from the script were pretty basic things such as forgetting capital letters or semi colons where there needed to be one or adding semi colons and capital letters where they didn’t need to be.

the next piece of code i needed to make was an auto clicker this was by far the hardest piece of code for the game that i did because it involved creating code that repeated it self which was a pretty new concept to me, to begin with creating that code was pretty simple because all it involved was mostly setting up all of the variables and other necessary components so that the code would actually run what it was supposed to instead of not running anything at all however it was once i had to add a coroutine into the script which was a new thing to me the coroutine is used so that i can write a single set of code and then have the script run the entire thing on repeat instead of having to write the same code over and over and over again, it made things a lot simpler, the actual code was making it so that the game knew what needed to happen and how often which involved another if statement which told the game that if adding points was true it started the coroutine which started the loop and effectively switched on the auto clicker. i think one of the more frustrating things was making the actual click per seconds a reasonable value so that it wasn’t either too many clicks per second or too little

what i think went well with this prototype is that

overall i learned quite a good bit whilst making this game especially with the coding because it contained quite a lot of completely new techniques so it wasn’t completely boring because i had to use new techniques to make things work for the general what could be improved is that the game would be better with actual sprites and sound however i feel that as a prototype it doesn’t necessarily need sprites and sound as they are all things that i will add should i come back to the game to make it better and make it more refined.


One response to “game one”

Leave a Reply to A WordPress Commenter Cancel reply

Your email address will not be published. Required fields are marked *