2D Video Game With C# on Unity

by Cameron MacLean in Circuits > Software

872 Views, 1 Favorites, 0 Comments

2D Video Game With C# on Unity

IMG_2541.jpg
Instructable Gameplay Video

This project began when I first got my PC in November. It began as a fun way to learn a new skill, and quickly became one of my favorite hobbies. I've been working on it ever since, and have clocked in at more than 75 hours of total programming time. Programming itself has a really steep learning curve, and is very similar to learning a new language in difficulty and application. You begin very slow, learning the basic syntax and rhythm of the language, and soon you begin thinking using code in regards to game ideas. Sometimes ideas don't work, and finding the right ways to do things can take a lot of research, but the end goal is well worth it.

Supplies

-PC

-Access to the newest version of unity

-Access to sprite creation program like Marmoset Hexels 3

Brainstorm

IMG_2535 (1).PNG
IMG_2536 (1).PNG

Create a list of ideas for your game. Be sure to be as specific as possible, as this will greatly reduce coding time later on. I recommend using trello.com to organize your ideas, but I used the notes application on my phone for this project.

Sprite Creation

IMG_2532.jpg
IMG_2539.jpg

These sprites can be placeholders for more complex ideas you plan to incorporate later on, but it is good to start with some type of visual before you begin coding

Implement Ideas From Brainstorm

IMG_2538.jpg
IMG_2537.jpg

Start with the basics like camera movement and character control. This is where you flesh out things like whether you want your game to be top down or straight 2D. After finishing the basics, begin to implement your more complex ideas, like enemy AI and animation.

​Continue to Code Until You've Implemented Everything on Your Idea List

IMG_2540.jpg

Don’t be afraid to add to the list as you go. There are no limits to game creation. You can continue for as long as you keep having ideas. The picture you see here is some of the code for a crossbow idea I had while programming spider AI.