This week I really concentrated on adding sound into the game so there isn’t too much to write about. I have to say sound really has a huge impact on the apparent quality of a game. In my last project “the wandering wizard” I had no sound effects due to time/ability constraints but since this game is so much simpler it wasn’t too hard. It really does a lot to bring the experience together. Anyway sit back and Just watch the awesomeness!!!
Monthly Archives: November 2013
I’ve spend the better part of this week working on optimizing the game to run much smoother. It’s incredible how many things you can find in your code to improve if you really look for them. When I went in to this I had only one real thing in mind, that was to implement object pooling (I’ll describe this in a second) but once I got started I realized that no one thing was going to give me the dramatic performance boost I wanted. As a result I spent hours and hours finding where the bottlenecks were and how to fix them and learned a lot of cool things that will carry over into future projects 😀
After some digging on the Unity forums I found out about a best practice known as object pooling. You see in my game (and most games) there is a lot of creating and destroying of objects. You have to do this with modular level pieces, projectiles, particle effects, and basically anything that isn’t constantly present. Previously how I handled this was to just create them and destroy them. This works fine but since things are constantly being added and removed from memory it can cause the garbage collector to fire often and cause slight jitters in the game.
Instead of adding and deleting objects you simply create a “pool” of them. When you need one you pull if from the pool, activate it, and put it where you need it. Then when you’re done you disable it and add it back to the pool.
Although this is helpful it has the disadvantage of a longer level load time since all objects have to be created at the start of the scene.
Once I was mostly satisfied with the performance I went on to implement a few very important aspects of the game content itself.
First I created fly-out announcements. Basically just text that fly’s out when you pick up a powerup. This is important since the game is centered around humor and if you don’t know what the powerup is you will not get the joke. I haven’t yet decided if I want these to fire the first time you get the powerup or every time.
Next I added an in-game tutorial which will always appear until you complete it. It pauses the game and gives you instructions for each type of obstacle. It’s very simple but effective.
The last change I made was to implement a sort of animated comic that gives a bit of simple storyline behind the game. It’s not flashy and reflects my underdeveloped art/animation skills but it gets the point across. Seeing as this is something people will probably see only once if at all I think it is sufficient for now.
It hasn’t been long since the last time I posted but I’ve made some significant updates that I wanted to share!!!
The first thing was to change the jewels into android os themed desserts. A lot of people on Google+ suggested this and it was such a no brainer that I’m embarrassed I didn’t think of it in the first place. But no matter you will now see cupcakes, donuts, and eclairs!!!
I made it so that the game speed increases the longer you play (up to a maximum). Later I will add a powerup that resets the speed back to it’s starting value.
I made a lot of subtle changes to the modular pieces of terrain that can spawn.
- I added more variations of obstacles
- I gave each powerup it’s own object (before it was a single object that would pick a powerup randomly). This makes the pickup placement more appropriate for the nature of each powerup.
- I added a few objects that had no obstacles, just big clusters of desserts!!!
Someone on Google+ (or a couple people) mentioned something about patent trolls which gave me an awesome idea! Now once you hit certain score milestones (200 point intervals for now), you will be faced with a mean green patent troll armed with deadly gavels and a mac pro jetpack!!! WATCH OUT!!!!!!!
The features are coming along nicely and unfortunately the next logical step is to either mess with sound effects or start optimizing (BOOOOORING!!!). But yeah stay tuned…
Recently I’ve been working on a new game based on one of my favorite podcasts, All About Android. This game is a 2d infinite runner with a fun Android theme!
The story for the game is not fully fleshed out yet so I’ll just focus on the game play for now. Your goal is to dodge rocks by jumping and ducking while collecting as many jewels as you can. Along the way you will collect various Android themed power ups to help you! You tap the left side of the screen to jump and the right side to jump. It is simple and fun!
My goal was not to make anything terribly groundbreaking but something simple and fun that would be appreciated by fellow Android nerds such as my self 🙂