Roller Ball

A game for Desktop and Laptops

A classic simple ball game, Control the ball, do not fall off the edge, collect coins to move to the next level.

Snippets

Update Function of the GameManager Script

Here is a gist that shows the update function of the Game Manager script. The function checks the game state using the switch class. There are four game states in the game, Playing, Death, BeatLevel, and GameOver.

Unity Layout of the Project

The image here illustrates the layout of the editor used while making the game. The left half is further divided into 2 halves, Top and Bottom. The Top half shows the game's scene view, while the bottom half shows the game view. On the right, there are three vertical windows Hierarchy, Project, and Inspector. The Hierarchy window shows every GameObject in the current scene. Some of these objects are direct instances of asset files like prefabs, custom objects, etc. The project window shows the collection of all the files and directories of a project. The inspector window shows detailed information about a selected GameObject, including all attached components and their properties.

Video of Game

Rohit Punjabi