Golf Beta Level
-
Hello Everybody !
Who do you want to play to play golf in more cool without have to go outside ?
I beginned this game, it's only a beta. There is only a test level without end.
If i make online this test level, it is because i want to show my ball's physic simulation.
You can give speed to the ball by using the left joystick. Collision work, but it is possible to give an hyper speed to the ball and go out of bounds.The physic is not perfect, if the ball is on a slope, the ball don't roll. ( Yes, i know )
( There is no slope on the test level but you can edit level to add one )If somebody know how to do a good physic for my ball, please, contact me !
Thank you.
( Evan, the french peaple who haven't a perfect english )
Game code : 6S163MND9P
-
That looks great!
Slopes are tricky stuff! In my code for Pumpkin Factory, I’m handling ball bouncing on sloped surfaces (sprites, but it can be rewritten to using map collision instead), so maybe take a look at that?
I don’t have the code nearby, but I think I used the collideSprites() function and then used the resulting displacement vector as input to the reflect() function. I think the code is documented to explain how it’s done? If not, ask any questions and I’ll try to help.
-
Pumpkin Factory is incidentally this week’s High Score Challenge, so that could be a wonderful opportunity to get a good score and submit it in the other thread! 😉
-
@vinicity If you want to try, i edited my first post. I forgot to send the gamecode. I shared it 2 days ago. He is live now
I use map's collision, like that i set collision only where the player can go. And not on backgroud decorations. (Exepting rock, hehe !)
I'll try to get a good score on pumpkin factory. -
Proper rolling needs something called ‘angular momentum’. And friction. I bet it’s not too ridiculously hard to do. Good luck :)
-
@toxibunny For the ball rolling, i added a friction. The speed's ball decrease a bit on floor.
The rotation animation work with the x speed of thé ball