Project Up/Down

Project Up/Down is a game I made to feel just like Jetpack Joyride. It’s made to be an Infinite runner that’s only goal is to go as far as you can. Although I don’t ever plan on releasing the game for the Android or IOS store I do want to go through some parts that I’ve learned and may adapt for future projects.

If you do want to use any part of this project, feel free!

Prefab Instantiation

I used prefabs as the level base. I mean roof, floor, obstacles, all of it. A list of prefabs is used and spawned at random to create this “new” each time but infinite level.

The same thing was done for the sky sections making it a pretty simple process overall.

Parallax effect

This very simple effect scrolls the backgrounds at different speeds. In case of my game allows me to have my character, which is completely stationary, appear as if he is flying forward and traversing an environment.

Keep note of the background images and how they are moving at different speeds and then teleport to the start. This creates an illusion of motion for us in the game.

Persistant Data

Persistent data is very important in a lot of big games, so I figured out a way to create that with a lot of bools and such, although my code in this project wasn’t the cleanest, it did work and it went a long way when using similar devices in bigger projects such as Baristapocalypse.

I also learned about the serialization of data and how to do so and get information back out of it using json files. (See Below)

Using The New Input System

The use of action maps feels very simple and easy to use especially when making a mobile game because I only need to make a couple of interactions. Name the action assign a button, create a script, and away we go.

I will note in this section having multiple player controllers and switching between the 2 was a little odd to implement and I think I will probably stick more to one in a game such as this.

OH NO!
NOT THE ADS!

Yes, even though we added ads, money is important. So if I did end up making a mobile game this was a skill, that needed to be acquired. I used Unity Cloud to learn and add the ability for ads to be played when added to an official store. including banner ads and reward ads.

The red circle shows where the banner ad would show up. The blue circle shows the button that only shows up randomly to give double coins for your run if you watch the whole ad.