This weekend was the latest 48 hours MiniLD game development competition (link here). Unfortunately I can’t devote 48 hours this weekend to making a game, but I decided I definitely wanted to make SOMETHING. I’ve been playing a lot of Monster Dash lately on my iPhone, and I’ve always been a big Canabalt fan, so why not make something Monster Dash/Canabalt-like for Unity?
Click the image below to play it in your browser:
—> Download the full Unity project by clicking here.
The Basics / Introduction
As discussed briefly above, RunJumpShoot is a Canabalt-style jump start for Unity. It’s a basic implementation of the genre, and should be a great starting point for anyone interested in making a game in this style. Here’s a quick rundown of what’s included:
Running, Jumping, and Shooting
Basic controls include running (automatic), jumping (spacebar), and shooting (enter). As you move through the level, your character will run faster and faster and faster.
Random Level Generation
Levels in RunJumpShoot are generated randomly, including monster and health pickup placement. You should never end up with an impossible jump.
Maybe that should be singular, since there’s only one power-up: a health pickup. It should be a great template for adding more power-ups moving forward. The game also tracks health, and if you take too much damage then it’s game over.
Again, there’s only one monster included – a robot. It’s a pretty dumb robot also, not one of the super smart robots/AIs that can battle champions on Jeopardy. These guys just kind of spawn in randomly and move left or right whenever the player gets close. Nothing super advanced, but not light years behind what’s in Monster Dash – and that game is a blast!
If you take a look at the Unity project included, you’ll notice a few different folders. The assets that came directly from one of the Unity tutorials are in the appropriately labeled folders (2D Gameplay Tutorial, 3D Gameplay Tutorial) – these are assets that I didn’t change, they’re just copied straight from the tutorial. Most of the files outside of those folders were added by me.
Most of the other included scripts should be fairly straightforward. If you have any specific questions, feel free to drop me a message!
Here’s a list of some things you could if you want to turn this into a sweet game:
- Replace everything in here with sweet graphics. Add sound/effects.
- Fix the lighting, I have no idea what I’m doing when it comes to this kind of thing.
- Add different types of enemies.
- Add some sweet weapons/power-ups.
- Extend the random level generation algorithm. The one in there now is pretty decent, but there’s always room for improvement. Maybe you could try some different platform slopes or something?
- Add some sort of level progression.
- High scores?
- Some other funky gimmick to differentiate your game from the basic formula!
What Can I Use This For?
Feel free to use any of the code that I wrote for any project you want – commercial or personal. The only thing I ask is that you drop me a line and let me know if you end up using it for something. Good luck!
Also if you’re interested, here’s the discussion thread I posted on the Unity forums: