public BombLeaf(GameSpriteName spname, FallStrategy strategy, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); this.x = x; this.y = y; _Strategy = strategy; _Strategy.Reset(this.y); }
public ShipBulletLeaf(GameSpriteName spname, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); this.x = x; this.y = y; locationX = lx; locationY = ly; }
public UFOLeaf(GameSpriteName spname, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); proxySprite.GetSprite().SetColor(0.8f, 0, 0); this.x = x; this.y = y; locationX = lx; locationY = ly; name = "UFO Leaf"; }
public ShieldBrick(GameSpriteName spname, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); // set obj Green proxySprite.GetSprite().SetColor(0, 1, 0); this.x = x; this.y = y; locationX = lx; locationY = ly; }