Create animation with JavaScript within the 1000x800 canvas element according to the following description:
you will draw on the left side of Canvas a cowboy with a gun.
Once a page is loaded, a bullet will drop off the gun.
The sphere will be reflected on a wall that is near the right side wall.
When the ball strikes the cowboy, he will fall to the ground and a message "this was a mistake!" Will appear. The message will appear above the head of the cowboy.
Note: add a suitable background. No detail required in cow boy design, weapon, etc.
↧