Shooter – Enemy Seperation

August 5, 2011

My first update in a while… not had chance to do anything else until now 😦

I fixed something that’s been bugging me since I added the chasing enemies (the mines). As they chased the player they would eventually end up piled on top of each other, so I had 50 mines all sitting in a pile chasing the player and it only looked like one mine.

I tried it using propper collision first but that was way too slow for the iDevices, especially as my ultimate gool is to have many things on screen at once trying to hurt the player 😉

In the end I implemnted a A.I flocking method called seperation. Pretty simple really, but for anyone interested: Each entity scans for any other entities within it’s ‘zone’ area and adds a slight pushing-away force from each one, depending on how close.

As they start to clump up they slowly push away from each other without overlapping, but because these forces are ADDED to their original direction, they all still head towards their goal (the player!).

Here’s a couple of screenshots of the mines chasing the player and staying seperated even when clumped on. Note it’s only activated on the MINES here, so ignore the asteroids 😉

I’ve also added a little more debug output as I’m timing updates and renders now to track down slow bits of code early on to keep the framerate nice and smooth 🙂

Oh, the mines can be shot and destroyed now too, which is only fair 🙂

Advertisements

Shooter

July 27, 2011

New:
– A temporary spaceship sprite to replace the player’s green triangle for now
– Reduced size of player’s bullets
– Added ability for multiple firing streams (the player can be seen shooting two above)
– New ‘Mine’ entity (red and black in the screenshot) utilising new behaviour described next
– Added ‘chase’ functionality to enemy entities so they charge towards the player (the red and black mines are the first to use this)
– Added entity-player collisions so the player can lose lives when colliding with stuff
– Temporary invulnerability is granted when colliding with something and losing a life
– Added BOOST button and functionality to speed the player’s movement for a short period of time
– Fixed a bug in the visibility determination code that checks which entities are on screen, some were getting cut off incorrectly before
– Asteroids bounce off each other

Shooter Day 3

July 25, 2011

New:

– Asteroids are now their own special entity type so I can treat them as such
– Asteroids now spin as they move through space
– Asteroids have health and split into multiple smaller parts when destroyed
– Recoloured asteroids (even though like everything else, their art is only temporary)
– Added some debug text output
– The playable area is now defined and nothing can move out of it
– There’s now a slight minimum movement to the cloud layer even when the player isn’t moving to simulate wind and to just look cooler 🙂

Shooter Day 2.5

July 23, 2011

I spent this morning working on optimising some systems so that only stuff on the screen is rendered, checked for collision etc as when I started firing with 500 entities in existence it was slooooow (obviously).

I’ve now had over 2000 things flying around whilst shooting and flying around with no drop in framerate, much better 🙂

Then I added parallax scrolling to the clouds and planet texture layers so they move at different speeds, giving a better sense of depth and movement. I think it looks pretty cool in action!

Also got projectile/entity collision working so your lasers actually shoot stuff now! Stuff just disappears instantly when hit for now, but it works 😉

Shooter Day 2

July 22, 2011

This evening’s stuff:

– Camera now tracks the player around the world, with his ship in the centre
– Player can fire!
– Added a test enemy ship which chases the player
– Added systems for tracking all the projectiles (collisions coming next!)
– Added support for ‘Entities’ so I can easily add a new object and make it a ship, meteor etc and control them all in the same way

Pic showing some of the new stuff (firing ice ammo + red enemy ship chasing towards me!):

…and we’re off – to space!

July 21, 2011

So, it’s time to start my next game. This time I’m simply making a game I want to make for fun: a dual stick space shooter in the vein of Super Stardust HD.

There’s plenty of them out there already, but only a couple of good ones and they’re too tame for my liking 😉

The plan is simple – an all-out, over the top shooter that aims to come as close to the craziness of Super Stardust HD as possible on an iDevice, which is where I feel the other games on the platform are lacking: intensity.

So, after my first evening working on it I can present my first and at this stage, very non-intense screenshot of my Day 1 progress:

Awesome.

– Multi touch support (first time I’ve needed to add it)
– Dual stick controllers that work as expected: provididing accurate current angle/direction etc to the game
– SPACE SHIP! A green triangle that is my awesome space ship at this point. It moves around. Pretty important really.

More soon!

New Screenshot

April 5, 2011

Media update!

October 21, 2010

Just bringing the blog up to date with the most recent vid and screenies 🙂

Level Editor

June 25, 2010

Been working too many late nights at work recently, so it’s been a slow-ish couple of weeks on the Bing Bong! front. I’ve made most of the in-game editor though, so I can start cranking out the levels a lot quicker now!

Edit mode:

OpenFeint

June 14, 2010

I’ve been figuring out OpenFeint integration and adding leaderboards and achievements! Fun stuff! 🙂