Game
BlackHole Bowls
8 years ago

BlackHole Bowls - Development and Process - Part 2


Game Mechanics - Bowling ball hook

5d0b4ff1acef2.gif

This was trial by error at it’s best. This problem kept me up at night and step by step I coded until the solution was had. As seen above the player can rotate the ball on the Y axis between a clamped amount of -45 to 45 degrees.

5d0b4ff3921f6.png

This influences the amount of hook on the ball as it travels down the lane. The magic is all thanks to a editor extension called PathMagic no punt intended.

The code below shows how the 4 waypoints in lanePath are moved in proportion to the amount of ballSpin.y

5d0b4ff5a49a3.png

Maybe not the most elegant looking code at this stage but I am planning on further refinements.

[(more to come)]



2 comments

Loading...

Next up

New Build uploaded Play, rate and follow

BlackHole Bowls - Reworked High Score sequence

New Build - More sound and high scoreboard added Play test, rate and follow

Now with Sound A long weekend working with unity5 sound mixers. Loved the level of control and ease of implementation. Great addition to the game.

Final User interface completed and what a journey it's been

BlackHole Bowls - Scoring a Strike [lighting sequence]_V3 Two nights work of problem solving and all done. Next…… [(<more to come>)]

BlackHole Bowls - Scoring a Strike [lighting sequence]

BlackHole Bowls - Scoring a Strike [lighting sequence]_V2 Much better after a little work. Found Unity’s gradient editor, cool [(<more to come>)]

BlackHole Bowls - Scoring a Strike [lighting sequence]_V4 I can’t leave it alone, added ‘STRIKE’ text and change of color. [(<more to come>)]

New High Score - Unity3D PlayerPrefs