Ejemplo n.º 1
0
        public GameLogic()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.IsFullScreen = false;
            graphics.PreferredBackBufferHeight = 800;
            graphics.PreferredBackBufferWidth = 1600;
            Desktopplayer = new DesktopPlayer(new Vector2(0,0), Color.Black);
            player1 = new PlayerAdapter(Desktopplayer, new Vector2(0,0), Color.Black);//creates an instance of the desktopplayer
        }
Ejemplo n.º 2
0
 public PlayerAdapter(DesktopPlayer newPlayer, Vector2 position, Color color)
 {
     thePlayer = newPlayer;
 }