public Wall(System.Drawing.PointF pos, System.Drawing.Bitmap img = null) : base(pos) { this.Sprite = new ImageSprite( img ?? Properties.Resources.wall, Game.HelpingClass.PointOp.Mul(MainGame.CellSize, 1.05f)); }
public Actor() { Pos = new PointF(); Shape = new SquareShape(0.6f); Sprite = new SquareSprite(MainGame.CellSize); Direction = new PointF(0, 0); Speed = 0.12f; }
public void Set_Sprite(AbstrSprite spr) { Sprite = spr; }
public Decal(PointF pos, Image sprite, float scaleSprite = 1.05f) { this.Pos = pos; Sprite = new ImageSprite(sprite, PointOp.Mul(MainGame.CellSize, scaleSprite)); }
public void SetSprite(AbstrSprite sprite) { this.Sprite = sprite; }