• entries
    743
  • comments
    1924
  • views
    579125

Great balls of fire

Sign in to follow this  
Aardvajk

114 views

I don't mean to blow my own trumpet, but my God my game is getting cool. I've just added in a fireball power that looks amazing.

About to get the FireStar


Toasting one of the sheep


Since adding in the particle-based fire effect, I've given the sort of enginey thing the capacity to set any of the free objects on fire, just by calling a Object->Flame(true) method.

When Udo gets the FireStar, he catches fire and can then fire as many fireballs as you want by hitting the Jump key again when he is in the air. They bounce quite convincingly when then collide vertically, or fizzle out when they collide with a wall horizontally or hit an enemy.

The fireballs are just alpha-blended circles with a yellow and red gradient texture, but just by setting their OnFire member to true, you get those fantastic trails across the screen.

Plus when they hit a sheep, or when you have the Fire power and you stomp the sheep, it catches fire as it falls off the screen.

I'm using the diffuse colour of the object quad to darken the object a bit when it is burning, then just randomly generating the fire particles around the object and giving them a pretty short life (they alpha-blend fade out) and an upwards velocity.

Otherwise the particles are just handled by the same mechanics as all the other objects, although they are in one of the lists that is not checked for collisions.

Works really well and the screenshots don't do it justice.

By the way, thanks to Stompy and Todo in the previous post for the input but I've decided to keep things fairly simple in terms of killing the basic enemies like the sheep. I think the game would benefit from enemies that required more lateral thinking or puzzle solving to destroy, but it also needs a healthy population of creatures you can stomp on or toast with fireballs as well.
Sign in to follow this  


5 Comments


Recommended Comments

That looks very cool. I can almost imagine how it looks with animation.

You can blow that trumpet with pride, I doubt anyone would hold it against you. [smile]

Share this comment


Link to comment
Thanks. I'm feeling pretty pleased with myself at the moment [smile]. Particles not only look awesome, but they save you all the trouble of drawing sprites. Yay!

@HopeDagger - I've just requested an invite to the GGE Beta. Cheers for the link. Looks interesting.

Share this comment


Link to comment
Very nice work mate.

I love the nice clean graphical style you're using. It's kinda similar to what I'll be going for, for my current project.

I'm definitely a fan of the castlevania/zelda/metroid style of giving the character more powers as they get further in the game and these increased powers let the destroy mroe advanced enemies/reach new areas. Plus the "thinking-man's-enemies" idea definitely gets 2 thumbs up!

Share this comment


Link to comment
Quote:
Original post by LachlanL
It's kinda similar to what I'll be going for, for my current project.


I'm looking forward to seeing that. I was just looking at some of your screenshots in your journal (the similar-to-Rav's-Glow ones) and thought they looked pretty interesting.

Must remember to keep a closer eye on your journal.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now