Shoot the ball in the hoops, this is a test physics program.

Left mouse button pushes the ball in the air.

Right mouse button or Spacebar spawns the ball.

Press R Key to restart game.


Scoring Backboard Pieces *   Game Level

Game level

level 1 = 90 seconds (no forced ball spawns)

level 2 = 90 seconds (one forced ball spawns)

Level 3  =   120 seconds (forced ball spawns)

If the ball goes off the stage left/right/bottom you lose a life.


I will be making this in to a real game soon Just wanted to see what the deal is with HTML and physics.

Development log

Comments

Log in with itch.io to leave a comment.

(1 edit)

if you hit a backboard piece like half way to the right, you will have an infinite score machine, it's slow but still free score

Yeah I am aware of that but after a while balls will spawn automatically and as you said its really slow. Still working on the final sorta build so I am wondering how many backboard pieces you are allowed.


Thanks for trying it out though. :)

limiting the backboard pieces at a time won't fix unless it's to 1, also the game improved a lot! I still remember when it was like the thumbnail

(1 edit)

Yeah the blocks will still fall in im not trying to fix that as such. I am trying to show the physics more with the backboard, this isn't an esport so play how you like. Just with that many blocks on top of eacth other none of them move and thats not what I wanted. When you get to stage 2 and three you kinda need a backboard or you lose quickly.


To explain a level 2 backboard 5 point is 10 points.

level 3 and 5backboard 5 is 15 points.


so one falling block wont help much  really enjoyed the convo though, thanks for helping out.

Much Love <3

makes sense, after that explanation i was testing the points and now i understand the backboard pieces, i thought you were supposed to throw it in the hoop to score too, since "Scoring Backboard Pieces *   Game Level", now that i understand i'll try to get a better score

(1 edit)

It happens for both the ball and backpieces. If the ball goes in the net with 5 pieces of the board in play you get 5 points,  it is just the backboard pieces that goes in the hoops acts like a ball.

A tip is once you know the ball is going in the hoop call another ball (with the right mouse button) immediatley so you can get points faster. Especially on level 2 when there has to be one ball out at any time, you can dictate when the ball comes out at that point. Juggline 2 balls at level 3 is a lot harder but gives you 3 times the points, just try not to drop any balls and have a good backboard and you will get loads of points.


Hope this helps and thanks for helping out it means a lot to me <3 

liked the physics

Thanks, I usually do my own physics but figuring this out in GM2 makes  ball physics much better. I be making a proper game out of this soon. Thanks for trying it out. :)

nice! I still don't know exactly how to use physics in GMS2 but i really like it too

(1 edit)

I literally started today using these four tutorials from the game maker website.

https://www.yoyogames.com/en/search/results?query=physics

Starting from the first one and making there demo to understanding it and making my own game out of what I learned. Hope this helps!

thanks!