Example #1
0
        public GameLogic()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.IsFullScreen = false;
            graphics.PreferredBackBufferHeight = 800;
            graphics.PreferredBackBufferWidth  = 480;
            player1 = new AndroidPlayer(new Vector2(0, 800), Color.Black);//creates an instance of the androidplayer
        }
Example #2
0
 public void Update(GameTime gameTime, AndroidPlayer theplayer) //method to move the pointblock
 {
     position.X -= theplayer.velocity;
 }
Example #3
0
 public void Update(GameTime gameTime, AndroidPlayer theplayer) //method update the game
 {
     position.X -= theplayer.velocity;
 }