Wednesday, September 19, 2007

Typhoon Evolution

FROM http://oizys.livejournal.com/225735.html

The latest code is a bit of a jump

Things added:

  • LoopedSequence and PingPongSequence (modifying colors globally via ColorTransform)
  • Enemy plane moves, Particle Emitters can now 'house' their particles under another container so that they can move without moving their children
  • Enemy has 4 Emitters, Player has 1 Emitter
  • Collision is now a CollisionParticleAffector, allowing you to collide particles with object sets and particle sets, with event callbacks
  • Emitters now have "ParticleEmitterBehaviors", an example one here is the TargetingParticleEmitterBehavior, making the two side turrents target the player on fire but then not do anything special
  • The mini bomber ships are particles emitted slowly with a Targeting affector that tracks the player.
Click to fire

One minor bug... if you leave the ship NOT firing for a while (like the game is running in another browser/tab) and then you fire - it eats CPU for a long time (will appear frozen). Don't do that... fire a lot... it's okay to not fire for like 10-20 seconds or so at a time.

No comments: