示例#1
0
        public Block()
        {
            Collider = new Collider(this)
            {
                OffsetX = 1,
                OffsetY = 1,
                Width   = GameConstants.BlockSize - 2,
                Height  = GameConstants.BlockSize - 2
            };

            Animation = new SimpleAnimation(
                new AnimationFrame(
                    this,
                    "block",
                    0,
                    0,
                    GameConstants.BlockSize,
                    GameConstants.BlockSize
                    )
                );
        }