Windows Phone 7 – Sprite and Collision Bounds
I’m in a constant dilemma about Windows Phone 7. On one hand C# is perhaps my most favourite language, ever but sales havent been impressive so far. I’m currently unsure if I invest in it as a more niche market (ie smaller market, greater chance of exposure) but regardless I really enjoy using it for games, infact XNA being pretty low level (not as in asm but as in level of features pre-packaged) compared to AS3 has really freed me. I’ve created my own Sprites wrapped around Textures and SpriteSheets with animation support, collisions with points, distance and collision bounds, buttons, thumbsticks, it’s been an truly awesome experience!
My private framework is coming on leaps and bounds. Heres an uber simple example of a hSprite and a hSpriteAnimated at work, showing their CollisionBounds, scaling etc. When a collision occurs the top hSpriteAnimated changes color:
Take a quick look after the break:
anton.