überspringe Navigation

Today I want to share my Radial Explosion Class with you. It`s not perfect anyway but it may be a good help for you. ;)

Main:
http://dl.dropbox.com/u/7098424/RadialExplosion.mm
Header:
http://dl.dropbox.com/u/7098424/RadialExplosion.h

Use it like that:
RadialExplosion* explosion = [RadialExplosion explosionAt:ccp(200,200) laenge:2 farbe:ccRED dauer:2 partikel:50 groesse:2 geschwindigkeit:0.15 abstand:0 typ:RELine zufall:YES richtung:REAround];
[self addChild:explosion z:gameZ tag:kTagExplosion];

[explosion explode];

Particle types are: RELine, RECircle, RETriangle, RERectangle
Predefined directions are: REAround, RETop, REBottom, RELeft, RERight

You can create your own directions like this:
#define REAround ccp(0,360) // starts at 0° (above the circle), particles in the next 360°
#define RETop ccp(-90,180) // starts at -90° (left from circle), particles spawn within next 180°

Something to the constructors:
+(id) explosionAt:(CGPoint)expPoint;
Specify only the point of explosion ;)

+(id) explosionAt:(CGPoint)expPoint laenge:(int)len farbe:(ccColor3B)col dauer:(double)dur partikel:(uint)parts groesse:(double)big geschwindigkeit:(double)fast abstand:(double)off typ:(int)tp zufall:(bool)dirt richtung:(CGPoint)direction LinksUnten:(CGPoint)bl RechtsUnten:(CGPoint)br LinksOben:(CGPoint)tl RechtsOben:(CGPoint)tr;
expPoint = the point of explosion
laenge = length of particles
farbe = color
dauer = duration
partikel = how many particles you want to display
groesse = width of particles
geschwindigkeit = speed (should be something < 1)
abstand = offset of particles to the mid point of explosion
typ = RELine etc.
zufall = adjust particles more randomly (adjustes the offset of aech particle)
richtung = direction (e.g. REAround etc.)
LinksOben = Edge Top Left of the border
LinksUnten = Edge Bottom Left of the border
RechtsOben = Edge Top right of the border
RechtsUnten = Edge Bottom right of the border

+(id) explosionAt:(CGPoint)expPoint laenge:(int)len farbe:(ccColor3B)col dauer:(double)dur partikel:(uint)parts groesse:(double)big geschwindigkeit:(double)fast abstand:(double)off typ:(int)tp zufall:(bool)dirt richtung:(CGPoint)direction;
Same as above, but without specified Border. ( Is set to default screen borders )

Here is an example:


(Please excuse the stretching of the video, don`t know how to adjust the screening program ^^)

If you still have some questions feel free to ask, or if you have some suggestions feel free to comment ;)

Thx :)

Hi!
Here another info ^^
Now implemented new enemy types ( and several drawings). Also an line on top, which shows how much have to kill to get to the boss of the stage. And gathered points by killing enemys are now shown (with multiplier).

Hello!

Something else, currently I’am implementing the donation button. Please feel free to donate and support my work.

Because I have to pay to get my App into the appstore. Of course the app still needs some work, but starting this now makes it more easy for me later on to get it there. ;)

Later on I will share Promo-codes with those donators as thanks. With such a code you can download the game for free.

Cya!

Hi!

Just implemented the first *normal* shooting types: Single, Double, Triple and Quad. There will be some more and special ones but for now they need some more work. ;)

stay tuned ;)

Hey!

My radial explosion is ready to go, all particles will move correctly (inclusive reflections).

I also added the “dirty” parameter, so the particles will be added more randomly in a specific range.

cya ! ;)

Hi!

Here are some snapshots from my Particle System I wrote, because the Cocos2D explosion did not what I want. :)

.::Line::.

.::Cube::.

.::Circle::.

.::Rectangle::.

.::Triangle::.

Only a few fixes should be made the next days ;) (let’s call it improvements *g*)

cya

Hey!

Unfortunately the last video is already some “days” old. *g*

But here is a newer one, only some fixed issues because I had not much time but now it will definitely straight go on ;)

So be prepared :)

Please excuse the bad screen-capture quality, I’am still searching a good free screen capture program :)

So, see you later ;)

Here is another vid:

I think it’s time to implement the last features :)

Hey guys!

Here is the first video of my new game. Also new is that I’am going to blog in english, so even other Gamers can understand my Blog ;)

**btw. please forgive me any bad sentences :D **

Now here it is :

Hi!

Endlich ist das HUD fertig geworden, sowie einige Spielmechanische Verbesserungen.

Es geht voran !

Hier ein Pic vom HUD.

Follow

Bekomme jeden neuen Artikel in deinen Posteingang.