Exemplo n.º 1
0
 public PhysicsParticle(MyGame theGame, SpriteSheet spriteSheet, PhysicsParticleData data)
 {
     m_sprite    = new Sprite(theGame, spriteSheet, new Transform());
     m_theGame   = theGame;
     m_transform = m_sprite.Transform;
     m_physics   = new PhysicsComponent(m_theGame, m_sprite.Transform);
     m_data      = data;
 }
Exemplo n.º 2
0
 public PhysicsParticle(Sprite sprite, PhysicsParticleData data)
 {
     //_burntTexture = TextureManager.GetBurnt(textureName);
     //BindParent(parent);
     m_sprite    = sprite;
     m_theGame   = m_sprite.TheGame;
     m_transform = sprite.Transform;
     m_physics   = new PhysicsComponent(m_theGame, sprite.Transform);
     m_data      = data;
 }
 public PhysicsParticle(Sprite sprite, PhysicsParticleData data)
 {
     //_burntTexture = TextureManager.GetBurnt(textureName);
     //BindParent(parent);
     m_sprite = sprite;
     m_theGame = m_sprite.TheGame;
     m_transform = sprite.Transform;
     m_physics = new PhysicsComponent(m_theGame, sprite.Transform);
     m_data = data;
 }
 public PhysicsParticle(MyGame theGame, SpriteSheet spriteSheet, PhysicsParticleData data)
 {
     m_sprite = new Sprite(theGame, spriteSheet, new Transform());
     m_theGame = theGame;
     m_transform = m_sprite.Transform;
     m_physics = new PhysicsComponent(m_theGame, m_sprite.Transform);
     m_data = data;
 }