Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        public Actor()
        {
            Pos       = new PointF();
            Shape     = new SquareShape(0.6f);
            Sprite    = new SquareSprite(MainGame.CellSize);
            Direction = new PointF(0, 0);

            Speed = 0.12f;
        }
Esempio n. 3
0
 public void Set_Sprite(AbstrSprite spr)
 {
     Sprite = spr;
 }
Esempio n. 4
0
 public Decal(PointF pos, Image sprite, float scaleSprite = 1.05f)
 {
     this.Pos = pos;
     Sprite   = new ImageSprite(sprite, PointOp.Mul(MainGame.CellSize, scaleSprite));
 }
Esempio n. 5
0
 public void SetSprite(AbstrSprite sprite)
 {
     this.Sprite = sprite;
 }