Esempio n. 1
0
        private void loadAnimationFile(string fileURL)
        {
            mAnimationFile = new AnimationFile(fileURL);

            string spriteSheetPath = (fileURL.Split('.')[0]).Replace("content/", "");
            mSpriteSheet = new SpriteSheet(spriteSheetPath);
            mSpriteSource = new List<Rectangle>();
        }
Esempio n. 2
0
        public Tile(int x, int y, int ID)
        {
            mX = x;
            mY = y;
            mID = ID;

            Position = new Vector2(x * 32, y * 32);
            mSpriteSheet = new SpriteSheet("tiles1");
        }