top of page
Search

Labyrinth Ball “Lab ball”

Writer's picture: Adam HouseAdam House

This time, I decided to try something a little different: that is to get a ball to move through a maze with either 2 control types of mechanics which can work on iPhone or pc, however, I cannot make iPhone games yet, so I will only be demonstrating on my pc.


Assets provided to me by AweseomeTuts.


WHAT I AM DEMONSTRATING

• A simple main menu where 3D words of “PLAY” and “EXIT” can respond when clicked on and start the level or exit the game respectfully.

• The player can lose or win but can try again.

• The Ball can be moved by arrow keys or by holding the left mouse button on the geometry in which the direction the ball should go. This also works with iPhone but with the player's finger instead of the mouse.


WHAT I LEARNED:

• To make the camera follow the player ball horizontally and vertically smoothly with delta time.

• Preventing the ball from moving on the z-axis with arrow keys and the y-axis with mobile movement respectfully.

• Adding force to the vector3 to the rigid body of the ball to get it to move.

• Getting to move the ball with arrow keys and by mobile or mouse by ray casting to the geometry to get the ball to move in the direction of where the geometry was clicked on.

• Checking if the player has fallen down without using colliders, only code.

• Creating a countdown timer by using an IEnumerator.

• Offsetting the camera while facing the player.


OVERALL:

It was a good quick exercise for something different, I could possibly make those rollerball games in the future, but I haven’t figured out how mine can set itself apart from similar games like Poly ball.



1 view0 comments

Recent Posts

See All

Comments


bottom of page