Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(4 edits) (+1)

As a professional web dev, I appreciate anyone able to make a game using vanilla JS (on a phone nonetheless, you are a madman!!) If you are trying to learn web dev, great job!

Now for the game itself, unfortunately I had no idea what was going on, or what the goal of the game was. The game seems completely bugged as well, since the black cube doesnt really go where you click. (I have realized this happens when you click directly on the balloon.)

Now if you are limited to developing on your phone, dont lose hope! I recommend you check out Godot for android, or if you want to continue with JS, you could give Phaser a try! https://phaser.io/


Music is a jammer though, I must say.

If you want to fix the movement, use `event.x` & `event.y` here instead, seems to work for me:

The other problem is that your collision detection seems to be running way too slowly at 700ms. The proper way to do it is have a signal for collisions instead, but that is way out of scope for using vanilla JS like this (the actual bottleneck here is reading the position and size from the dom, not the collision check itself).

I'm still learning web dev btw and I don't have a PC yet 😅

Ok for the location pointing, I use offsetX and offsetY. Although I could have use event.x and event.y but I went with what worked at the time.


I could have sworn I put a simple tutorial after the first click of the START GAME button but I'll have to work on it because the feedback tells  me otherwise.


For the speed of the collision detection function, on a usual day, the function must be as fast as even 10ms for fast response but I've always encountered this error if I use the JS animate method which iterates continuously even after making contact with the balloon or any object it must make a collision with. I seemed to fix this error in one of my other games, Warrior Of Hope especially the collision detection between the player and the boss.


Thanks for testing out my game and the useful feedback is invaluable. I may get my PC soon😅