상속: Drawable
예제 #1
0
파일: Coin.cs 프로젝트: DatZach/Californium
        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;
        }
예제 #2
0
 public void Draw(AnimatedSprite sprite, int depth = 0)
 {
     Draw(sprite.Sprite, depth);
 }