Challenge Rabbit Racer
Creating a button
You are going to make a small game. In this game, the player races their
rabbit (the rightmost rabbit) toward the finish line against 3 other rabbits.
The player's rabbit will be controlled by a button.
Your task, for this step, is to:
- create a button, btn1, directly beneath the rightmost rabbit
- make sure the button is drawn on the screen
//create button
Var btn1 = new button( {
X: ----,
Y:----
});
Draw = function() {
//draw the button
Btn1.----();
};