Quote Originally Posted by pstudio
Hi Andreas,

I've taken a closer look at Phoenix (ver. 2009-5-11) and I'm looking at entities and sprites. Do you envision, that all the behavior of a sprite should be defined through behavior plugins?

For instance I want to define characters in my game. characters are simply sprites with a life counter and a collisionbody. So I have the decision to make a character behavior (TPHXEntityBehavior) or a new character class inheriting from a TPHXSprite. Which would you choose? Are your idea with entity behaviors to totally drop inheritance and simply use has-a relationships for the specific implementation of a given sprite?

Btw. it would be nice if you could check which behaviors a entity has. I couldn't find any way to do that in the current release.
Yeah, that is the general idea, i havnt really put the ideas in any major practical tests so i'm not shure how it will work out, but for instance the steering behaviors that is implemented in the entity source is a example of the plugin based functionality.

Even inheriting from TPHXSprite is not a "right" way to do it, a player is not a sprite, he is represented by a sprite thus the player should inherit from entity and have a sprite member.

Stil, its a quite advanced topic where you can spend ages reimplementing stuff, why do you think it takes time between the releases ;p

I'll do a quick status update while i'm at it. I have made the final adjustments to the collision code. It seems quite stable now, theres two demos. A simple one showing collisisions between shapes without the CollisionBody or CollisionWorld. And a somewhat more advanced breakout example (I know per-poly collisions is way overkill for a breakout but you get alot of stuff for free).

I've added TPHXTags to the image editor and image class. They can be used in the same way as the tags in the MD3 format if you're familiar with it, ie mark interesting reagons in the image, for instance attatchment points for particle systems etc.

And for the record Turbo Delphi 2006 doesnt work flawless on Windows 7, do bad D2009 is so expensive ;p