Make the bird jump with force

Let’s add force to the bird

Add the below command in the file [File: create-game.js] bird.body.velocity.y = -350;

Working Together

In the repl.it window below, we started the code with the line bird.body.velocity.y = -350;.

alt text

In your console you should see a Jsappy bird jumping with force after you press run:

alt text

Bonus Activity

Let’s make the bird jump up and forwards:

Add below command in the file [File: create-game.js] bird.body.velocity.x = 100;