Exemplo n.º 1
0
        public PotatoSprite(PotatoEntity p_entitypai, Texture2D p_texture, int p_spritewidth, int p_spriteheight)
        {
            m_entitypai = p_entitypai;


            Texture      = p_texture;
            m_animations = new Dictionary <string, PotatoSpriteAnimation>();

            Width  = p_spritewidth;
            Height = p_spriteheight;

            FrameRectangle        = new Rectangle();
            FrameRectangle.Width  = p_spritewidth;
            FrameRectangle.Height = p_spriteheight;

            m_sheetsize   = new Point();
            m_sheetsize.X = p_texture.Width / p_spritewidth;
            m_sheetsize.Y = p_texture.Height / p_spriteheight;
        }
Exemplo n.º 2
0
 public void AddEntity(PotatoEntity p_sprite)
 {
     EntityList.Add(p_sprite);
 }