Esempio n. 1
0
        public void Draw(SpriteBatch spriteBatch, World world, GameTime gameTime)
        {
            float positionX;
            float positionY;

            world.Camera.setNPCPosition(DrawnPosition, out positionX, out positionY);

            base.Draw(spriteBatch, positionX, positionY, world.Map, gameTime);
        }
Esempio n. 2
0
 public Camera(World world)
 {
     mWorld = world;
     TilesCountX = mWorld.Map.TilesCountX;
     TilesCountY = mWorld.Map.TilesCountY;
 }
Esempio n. 3
0
 public PeerPlayer(Texture2D spriteSheet, Vector2 coordinates, World world, int unique)
     : base(spriteSheet, coordinates)
 {
     Name = "Buddy"; //change to get from online
     mUniqueId = unique;
 }