MessengerPigeon/app2/src/main/java/com/epicstudios/messengerpigeon/flappybirdgame/MainMenuScreen.java
@Override
    public void update(float deltaTime) {
        Graphics g = game.getGraphics();
        List<TouchEvent> touchEvents = game.getInput().getTouchEvents();

        // When you press somewhere on the screen, len> 0, and the drive is executed
        int len = touchEvents.size();
        for (int i = 0; i < len; i++) {
            TouchEvent event = touchEvents.get(i);
            if (event.type == TouchEvent.TOUCH_UP) {
            	
            	/////////////////////////////////////////////////////////
            	// Here's what happens when you press keys, etc.
            	/////////////////////////////////////////////////////////
            	
            	// If the touchscreen detects contact on a surface having a hub (0.0), width 250 and height 250
                // Then it is called GameScreen which is the game itself running. (0,0) is at the top left of
                // Android device window.
                // Must set this to the correct value, each key, etc.
            	
            	///////////////
            	// START button
            	///////////////
                if (inBounds(event, gameWidth/6, gameHeight/1.33, res*230, res*77)) {
                	// Start playback
                    game.setScreen(new GameScreen(game));              
                }
                /*///////////////
              	// SCORE button
              	///////////////
                  if (inBounds(event, gameWidth/1.8, gameHeight/1.33, res*230, res*77)) {
                  	// Start playback
                      game.setScreen(new ScoreScreen(game));              
                  }*/
            }
        }
    }
/* When LoadingScreen calls MainMenuScreen, this method runs. It constantly calls
     * update process until something happens
     */
When LoadingScreen calls MainMenuScreen, this method runs. It constantly calls
update process until something happens
When LoadingScreen calls MainMenuScreen this method runs . It constantly calls update process until something happens
@Override
    public void update(float deltaTime) {
        Graphics g = game.getGraphics();
        List<TouchEvent> touchEvents = game.getInput().getTouchEvents();
        int len = touchEvents.size();
        for (int i = 0; i < len; i++) {
            TouchEvent event = touchEvents.get(i);
            if (event.type == TouchEvent.TOUCH_UP) {
                if (inBounds(event, gameWidth/6, gameHeight/1.33, res*230, res*77)) {
                    game.setScreen(new GameScreen(game));              
                }
                /*
              	// SCORE button
                  if (inBounds(event, gameWidth/1.8, gameHeight/1.33, res*230, res*77)) {
                      game.setScreen(new ScoreScreen(game));              
                  }*/
            }
        }
    }
@ Override public void update ( float deltaTime ) { Graphics g = game . getGraphics ( ) ; List < TouchEvent > touchEvents = game . getInput ( ) . getTouchEvents ( ) ; int len = touchEvents . size ( ) ; for ( int i = 0 ; i < len ; i ++ ) { TouchEvent event = touchEvents . get ( i ) ; if ( event . type == TouchEvent . TOUCH_UP ) { if ( inBounds ( event , gameWidth / 6 , gameHeight / 1.33 , res * 230 , res * 77 ) ) { game . setScreen ( new GameScreen ( game ) ) ; } /*///////////////
              	// SCORE button
              	///////////////
                  if (inBounds(event, gameWidth/1.8, gameHeight/1.33, res*230, res*77)) {
                  	// Start playback
                      game.setScreen(new ScoreScreen(game));              
                  }*/ } } }
When LoadingScreen calls MainMenuScreen, this method runs.
When LoadingScreen calls MainMenuScreen this method runs .
// When you press somewhere on the screen, len> 0, and the drive is executed ///////////////////////////////////////////////////////// // Here's what happens when you press keys, etc. ///////////////////////////////////////////////////////// // If the touchscreen detects contact on a surface having a hub (0.0), width 250 and height 250 // Then it is called GameScreen which is the game itself running. (0,0) is at the top left of // Android device window. // Must set this to the correct value, each key, etc. /////////////// // START button /////////////// // Start playback