HunorBorbely
Joined 6 years ago
Karma
170
Submissions
41
Member since
Sep 4
Joined 6 years ago
This tutorial is both a JavaScript Game Tutorial and an introduction to the HTML Canvas elements. First, we learn how to draw on a Canvas element with JavaScript. How to draw the background, the buildings, the gorillas, and the bomb.
Then we add interaction. We add event handlers, we cover how to aim, how to animate the bomb across the sky, and how to detect if the bomb hit the enemy or a building.
In the end, we also add AI logic for the enemy gorilla, so you can play against the computer.
I'm not sure where you see horizontal scrollbars though. Are you on Windows?