Unity Awards 2009
Hard Rock Racing is my entry for the Unity Awards 2009. I will blog in this thread about the progress and would love to get feedback on the game. Note:This first thread post will be updated from time to time so keep an eye too and not only the very latest posts.
Game Description:
Hard Rock Racing is a fast-paced and action driven racing game taking place in a 3D city. You race against 7 other cars in 5 laps around short tracks, pick up missiles and mines to blow your opponents away and try to be the first at the finish line. Simple, adrenaline-pumping racing with lots of explosions and fun supported by awesome hard rock music!
Design Decisions:
The game has been created with a publishing option to game portals in mind. It shall be a simple to learn racing game that can get adopted by nearly everyone within a minute or two and shall bring the player just nothing but fun. To create fun and keep it simple (KISS principle), I tried to reduce the game to the bare minimum elements:
Racing as main element (just because I learned from portals that this sells good)
Missiles as primary weapon, mines as secondary weapon. Idee was to have a very powerful remote weapon to the cars driving in front of you to be able to blow them up and overtake them and have a somewhat weak weapon to the cars behind to make sure there is much dynamics in the game in terms of overtaking and making also sure that you just can’t blow up everything that is behind you and make it easy to win.
Explosions (I can’t wait to get Detonator into the game!)
A nice environment (took a 3d city - no art skills from my side needed)
Damn good music (ok, this is subjective to the audience)
File size. Portals are looking at the game size so you can’t have a 200 megs webplayer. The current build is about 4.6 megabytes and includes 1 mp3 track (1.6 megs) already. 6 other tracks are loaded from the net during the game.
Fun!!! At least for me, blowing things up in games has always been fun for me and so I try to do in this game as fun factor. Fat explosions, missiles that you LOVE to fire and can’t get enough from while beeing pushed by the hard rock music.
Non-destructive cars. I’ve been thinking a lot about if I should blow up the cars when hit by missiles or just have them been shaken a lot and not get damaged. I decided for the latter one because the tracks are very short in the game (lap times of 25-30 seconds) and beeing hit by missile costs you a second or more, so that other cars might overtake in that time. Beeing blown up would mean to go back to the previous checkpoint and loose way more time while with non-destructive, you could be lucky and not get whirled in the air but receive only a slight bump but can continue to drive without a major time loss.
Current questions to the testers:
One of the most important points I’m interested in getting feedback is, is the AI too hard in the game or is it good as it is?
All right, here is my first real progress report just after I updated the first post with detailed information about the game.
So what have I been working on?
Yesterday and today I’ve been looking mainly at the level itself. Right now the game has in the best quality setting between 700 and 1000 draw calls and that is way too much for the target audience I have in mind (casual gamer).
So I’ve started to experiment a bit with Renderer.OnBecameVisible/Invisible also with putting the CombineChildren mesh script onto some bounding boxes root objects (half transparent red material) for each block in the city to reduce draw calls.
As you can see, it brought already roughly 120 DC’s less by just applying the script to the blocks of houses. I’ll go through the whole city now and do that on every block of houses.
Putting the mesh combine on all lamp posts brought another grrreat improvement!
Later today I plan to work on the second weapon in the game and I also talked to an artist and hired him now to make some nice car model as well as nice meshes for the missile and the new mine weapon that is coming into the game. Stay tuned!
Meanwhile I have selected an artist, Ryan Jackson from Las Vegas, and he has started to work on the first car for the game as well as the missile and the mines. The car yet in the game is just a placeholder and will be replaced by new art. I plan to have a few cars in the game for the final release, also with some mod options like different textures and stuff.
Ok, but now it’s screenshot time! I’d like to share some first artwork and sketches Ryan made.
First version of the buggy that Ryan made from the briefing I gave him:
High poly source model gets more and more final.
First sketch of the homing missiles that will replace the simple capsule primitive I’m using now.
Now the nearly final car with an 2-step demo animation how the missile pod will fold out and back in.
The new car is completed, texture update is to come still with racing decals. Here’s the new car model in action:
The new missile is modelled and built-in.
The car got a new nifty feature: A missile pod that can be folded in and out. For that the missile fires now alternating between the left and right pod.
The new secondary weapon is in - you can drop now proximity mines in the game.
When the mines explode they will give the cars a HUGE upwards boost, as seen in this shot (the cars are whirling in the air):
Thanks guys. Yeah, I’ll keep you posted in this thread about the progress.
So, today I want to show my waypoint system. Nothing ultra complex, but works great for my purpose. On the right you see my editor script that offers some little helpers to design the track, re-sort/re-order the waypoints and such stuff. It has also a function to hide or show the waypoint renderers as you can see on the left side.
The waypoints are simple standard Unity cubes with a half transparent material and a collider marked as trigger. The red ones are “official” waypoints that not only the AI drivers have to drive through, but also the player has to pass. So the “next waypoint” arrow will always point to the next red waypoint in the game. The green ones are additional waypoints just for the AI.
Each waypoint has an additional script applied which delivers custom per-waypoint settings, like a maximum drive-through speed for the AI, the drive-through width (0.5 units to each side maximum in local space).
Ok, that was it today about the simple but effective waypoint system in Hard Rock Racing. Stay tuned for the next posting!
Wow Martin, this has a ton of scene objects. The city looks great! Thanks for posting progress shots of the car being made. Always nice to see making of’s.
Long time no speak! This is looking great man, really great!
Thanks for posting about your progress too - its great to hear about some of the thought processes and thinking behind some of the stuff you are doing.
I found your thread because I was particularly interested in creating my own racing waypoint system so you’ve inspired me to look at a couple of things I need to get up to speed with - again thanks.
Thanks guys! I’ve just noticed I haven’t been updating this for days now. So here we are with an update, more to come the next days as I have been working a lot on the game.
What I want to show today is: Do you know how useful the console output of Unity is when you want to get your webplayer size down? I find this so incredibly nifty and useful that I’d like to show the results of my current optimizations. I’m currently down to 4.2 Mb for the whole game as final webplayer size. The console log shows you actually each and every asset that goes into the webplayer and how it got compressed. So if you notice there that a texture occupies like 600 kbytes or 1.2 megabytes, it’s maybe time to think if you really need a super high resolution for the texture. Compress sounds? Yes, makes a lot of sense and brings a lot in terms of size.
As you can see in the screenshot below, I noticed that I accidentially included 2 times the same font in the webplayer, just one with a black color and the original one with white color. That you can simply avoid by creating a second material with a text shader, assign the texture from the first font import and simply colorize it. That way I can save now another 256 kbytes on the final player size. Isn’t that super useful?
The game has made some great progress. Detonator is in the game and makes some great and visually stunning explosions. Thanks Ben, Detonator really really rocks!
The game mechanics of Hard Rock Racing are completed, the gui system is in place using animated 3D Text Meshes, the music is finalized and 7 songs are in the game - 1 included and 6 are streamed in once the game has loaded.
As the game gets more and more complete, it has entered now a polishing stage. What is missing now is some final sound remixing to get the volumes to a somewhat equal level, work on the webplayer protection and create some more tracks for the game (currently 5 tracks built in) plus some minor tweaks here and there.
What I’m very happy about is that the whole game, including 1 mp3 track, is still under 5 megabytes! Ok, it’s 4.9, but still! I didn’t expect that small size in the beginning when I started developing the game. Unity does a great job on compression, really. I also kept an eye of doing as much as I can procedurally and not “in textures”, like for example having the complete gui system use only internal Unity components and not waste any space for bitmap textures. Seemed to work great so far.
Another cool thing I worked on is to use Unity for some high res rendering of the Hard Rock Racing Logo to create source images for printing the logo on t-shirts. I’m going to appear at the Unite conference fully branded with some nice Hard Rock Racing t-shirt!!
Please see here a scaled down version of the highres rendering:
And here the promised screenshots of the current version of the game: