Remake of the game BBTAN in JavaScript using CodeSandbox.
On the player's turn:
- Move the cannon Right with
Dor Left withA. - Rotate the cannon Right using
ArrowRightand Left usingArrowLeft. - Change the ball speed using
ArrowUpto increase orArrowDownto decrease. - Shoot with
SpaceBar.
When you lose the game:
- Press
Rto restart the game.
Open your terminal and go to your desired path (Desktop is used in the example below). Then, clone this repository with the code:
cd Desktop/
git clone https://github.com/pedrojfs17/BBTAN.gitAfter this, you should open Visual Studio Code and install the extension LiveServer from the menu or type ctrl+p and ext install ritwickdey.liveserver .
When it finishes installation, you just need to right-click on the index.html file and Open with Live Server (alt+l + alt+o) .
PS: You should zoom out on your web browser so you can see the full canvas in your screen and have the best game experience.