Пример #1
0
 public Water(int x, int y)
 {
     this.x     = x * TILE_SIZE * Window.gameScale;                // world coordinates
     this.y     = y * TILE_SIZE * Window.gameScale;                // off set y to move closer to base of tile
     waterRect  = new Rectangle((int)this.x, (int)this.y, 16, 16); // used for collision
     sprites    = Sprite.waters;
     animSprite = new AnimationSprite(5, Sprite.waters);
 }
Пример #2
0
 public Goomba(int x, int y, int movementType)
 {
     this.x            = x * 16 * Window.gameScale;
     this.y            = y * 16 * Window.gameScale;
     this.movementType = movementType;
     sprites           = Sprite.goombas;
     animSprite        = new AnimationSprite(5, Sprite.goombas);
     goombaRect        = new Rectangle((int)this.x, (int)this.y, 16, 16); // used for collision
 }