I am currently making a small mobile game to strengthen my c# skills. Building frameworks to make sure everything I build of is expandable to a large scope. I make sure it is built right the first time so there's less chance of me going back and remaking the base code it is built off. I also make sure to have good comments to make sure i understand the code in the future if i need to modify something.
This game includes a strong game play loop with an upgrade system to promote the playing of the game to get a better high score.
Here are a few code snippets to show how i would normally code in a few features

This code is the basic code for all my upgrades. I set the value in editor so it is expandable when creating new prefabs by simply changing the percentage

This code handles the EXP amounts, making sure the player doesn't get overpowered early in the game, so the player doesn't get bored

This shows the basic weapon upgrade system. It removes it self from the upgrades list that handles what upgrades you can, and then add all the upgrades corresponding to the weapon.,

This shows show I do some UI work, it sets active only one gameObject at a time depending on the progress amount it has. It is currently used to upgrade base amounts of statistics, but it could easily be expanded for quests.

I started to create this game to prove to myself that I am a good programmer, and I have what it takes to a great games designer. Alongside making a good piece to show off it will help me start earning so i can keep doing this with passion.

You may also like

Back to Top