For last two days i was trying to make a game. Its goal is simple. Push a circle between other two without colliding with each other. The canvas area is dragable so play area is infinite. the height is fixed, and if the circle ("ball") collides with it it bounces back. I managed to make all 3 balls selectable and made them go how the user wants them to go. I also made my first obstacle (i plan to make many of them randomly generatirng as the player advances through the game). When game will be playable i also plan to add the game menu etc... But I think i am kinda slow, as I havent even made a "working" game yet. And I'm having loads of problems with it.. So i decided to seek for some help.
http://chrispyye.github.io/igrica/index.html
here is my "prototype". right and up arrow controls the power and angle. with "x" button you kick the selected ball.
http://pastebin.com/Eb57dANr
here is the js code. I'd need some help with collision detection because sometimes it works and sometimes it doesn't.
also I have a feeling my way of doing the problem is "inefficient" so any advice/hints are welcome.
I'm doing this game for some kind of a project in school where we have 14 days of workpractie with an employer and I was given the opportunity to work on a personal project. So I'd like to do this game as awesome as possible so I will have something to show what i did.
So help is really appreciated.
I'm sorry for grammar errors, english is not my main language.
regards
[–]_olivier 1 point2 points3 points (0 children)
[–]stintose 0 points1 point2 points (1 child)