Hey There!
I created a game using canvas API in Javascript. It’s usually called breakout.
BREAKOUT LINK
Controls:
You start the game, and the Ball starts moving, and you can move the paddle by using left/right arrow keys.
Objective:
You have to destory all the bricks by hitting them with the ball.
Mechanics:
The ball rebounds if it hits left/right/top edges or if it hits the paddle.
If the ball hits the lower edge, the game’ll end and you will lose!
If you destroy all the bricks, You’ll WIN!
Features
- Offline Support, You can load it once and then if your browser supports Service Workers it’ll also work when you are offline
Why I made this game?
I wanted to build something relatively simple with canvas few months back and it was very confusing at that time, So I left it there and went on to learn more and more about javascript, Now 2 days ago, I had nothing better to do, So I thought that maybe I should improve my canvas skills and then started working on this game and I had a list of features that I wanted in this game and I have achieved all those objectives.
Please tell me if you like it and what can I improve in this game?
PS: I really like javascript and I am looking for projects I can contribute to, Please let me know if you want to build something and can use a hand,
PROJECT GITHUB
GITHUB
Also, Ask me if you need any help in understanding any part of the code I wrote for this game. I’ll be very happy to help.