Load the bird image & change the screen text

First of all let’s load Flappy and put it on the screen.

Add below command in the file [File: load-sprites.js] game.load.image('bird','assets/bird.png');

Working Together

In the Replit window below, we started the code with the line game.load.image('bird', 'assets/bird.png');.

alt text

In your console you should see a Jsappy bird after you press run and then the space bar:

alt text

Change the screen text

Let’s change the start screen text:

Add below command in the file [File: start-screen.js] var text = game.add.text(0, 0, “Press Space to Start”, textOptions);

Working Together

In the Replit window below, we started the code with the line var text = game.add.text(0, 0, "Press Space to Start", textOptions);.

alt text

In your console you should see Press Space to Start after you press run:

alt text