/Cube-Run

This is the first video game I've ever created using Unity. I created this following Brackeys' tutorials on Youtube.

Primary LanguageASP

Cube-Run

Following Brackyes' How to Make a Video Game series on youtube, I created my first video game using Unity and my second video game ever (the first being the Space Invaders game we created in my Fundamentals of Computer Science class). This was also my first time using C#! This series of videos ended up to the creation of this game, Cube Run. The game consists of a player, a cube, that races forwards on a platform. In order to win, the player must avoid the obstacles that appear on the platform.

CubeRunLvl1Screenshot

Check out a speed run of the game here

What Went Well

Overall, this whole tutorial went smoothly. Since it was my first tutorial for Unity, I knew absolutely nothing about making video games. I’m a bit surprised that it ended up going as well as it did. When I started the tutorial, I was absolutely addicted. It was reading week at school (the week before finals week) and I couldn’t keep my mind on my studies. I ended up deciding to power through almost the entirety of the tutorial, finishing the whole game in around 9 hours.

What went wrong

After showing my game to friends, I noticed a bug come up twice. I’m not sure what causes this bug yet, having only seen it twice. The distance counter at the top of the game will read “NAN” and the game will freeze. It’ll require further investigation to find out why this is happening.

After showing this game to a lot of my friends, I realized that the way Cube Run is now is very difficult for those unfamiliar with video games. The keys to move left (“A) and right (“D”) to avoid obstacles right now are incredibly sensitive. Even with just a tap, the cube will shoot off to the side. In order to avoid falling off the level platform, I would have to counterbalance the left and right movement by tapping on opposite direction. My video game friends had little trouble adjusting to the sensitivity of the left and right movement keys.

What I learned

This video basically consists of my entire foundational knowledge of Unity. Outside of learning most of what I know about Unity right now from this tutorial, I did learn a thing or two about study habits and productivity. Since I couldn’t keep my mind on my studies while working through this tutorial, I was not making any progress in my academics. Lesson learned - when you’re not being productive, take a break and come back to it after. CubeRunUnityProjectIDE

What to Come Back to

In order to make the game more accessible for everyone, I would like to lower the sensitivity of the movement. Also, the levels get too hard, too fast. I hope to add more easy levels at the beginning of the game.

To really polish it up, the game would need sound to accompany it. I’ve also thought about making it so the cube could jump when the user hit “space bar”. Then I could make the walls different heights so the user would be able to jump over some walls, but not others.

Acknowledgements

The scripts used in this project is entirely from what @brackeys demonstrated in his tutorial. When working on this tutorial, I had just under two semesters of computer science knowledge under my belt so my focus was on watching and learning. I was so pleased to be able to complete this tutorial without any major bugs, inspiring me to continue learning more about game development. Thank you, Brackeys! 👏

The format above (What Went Well, What Went Wrong, etc.) was inspired by Adriel Wallick's website which was shared to me by Adam Sulzdorf-Liszkiewicz, a visiting professor at my college.