Example #1
0
        public Coin(float x, float y)
        {
            Position = new Vector2f(x, y);
            Origin = new Vector2f(8, 8);
            Size = new Vector2f(16, 16);

            sprite = new AnimatedSprite(Assets.LoadTexture("Coin.png"), 16, 16, .075f);
            sprite.Position = Position;
            sprite.Origin = Origin;
        }
 public void Draw(AnimatedSprite sprite, int depth = 0)
 {
     Draw(sprite.Sprite, depth);
 }