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;
In the repl.it window below, we started the code with the line
bird.body.velocity.y = -350;.
In your console you should see a Jsappy bird jumping with force after you press run:
Let’s make the bird jump up and forwards:
Add below command in the file [File: create-game.js] bird.body.velocity.x = 100;