📜 ⬆️ ⬇️

Clone of the game JezzBall / KBounce / "Restless Balls" on html5

Recently, more and more games are being done under browsers. In addition to the development of new games, there is a tendency to "clone" old games. As an example, such games as Battle City , DX-BALL .
Looking at the development of third parties, I had a more and more desire to do something like that, to write my browser-based toy. But every time I started doing something, I was stumped, because lack of imagination and design skills made themselves felt. Not so long ago, I saw a post about how the guys from BorodinART studio made a clone of one of their favorite childhood games - DX-BALL. This post inspired me and I decided to make a clone of a standard toy from KDE - KBounce or “Restless balls”.

image

The KBounce game, in turn, is a clone of the JezzBall game, developed in 1992 by Dmitry Pavlovsky:

image


Rules of the game

They play on a field surrounded by a wall, with two or more balls that bounce off the walls. The size of the field is reduced if you create a wall and at the same time no ball is trapped. To complete a level, the player must reduce the size of the field by at least 75%. At each next level, one ball is added to the game, and the player is given more lives and times. Scoring depends on how much you have reduced the area.
')
Little about work

I will not give pieces of code, and explain how it works. In short, the toy is made on canvas using the KineticJS library. The purpose of my work was to make the toy as similar to the original as possible, however, there are still some minor differences (table of records, theme change). Scoring is made according to the formula: 2 (x-75) (y + 5), where: x-percent of filling, y-remaining lives. On the passage of the n-th round is given 60 + 30 * n seconds. I made a VKontakte application as a bonus for the game, which also features a rating among friends. Those who wish to insert the game on their website can use a special insertion code, which is listed on the website.

Links

Those who wish to see the result, I suggest to follow the links, suggestions and criticism are welcome:
Game: http://bimball.com/bounce
Vkontakte application: http://vk.com/app4014280

Source: https://habr.com/ru/post/213445/


All Articles