RollerMadness is a simple game which involves the player to collect the collectibles while trying to avoid collisions with the enemies at the same time. The game has two levels — Level1 and Level2 — both beatable.
- Player - The player is a sphere ball, namely RollerBall. It is destroyed either on collision with the enemy or on entering the DeathZone.
- Enemy - The enemies are the cubes which spawn every 3 seconds and chase the player. They are destroyed on collision, either with the player or another enemy.
- Collectibles - These include non-translating as well as bouncy coins. The bouncy coins spawn every second and are self-destructed after 10 seconds. For each coin collected, the player gets 1 point.
- Obstacles - On collison with the obstacles, the GameObjects bounce off.
- Floor - The entire area where the player is free to move.
- DeathZone - The area around the floor, on entering which, the player dies.
- Player movement can be controlled using either the arrow keys or the WSAD keys.
- The player must collect the minimum number of coins(either the non-translating or the bouncy ones) required to beat that level while trying to avoid any collision with the enemies or falling into the Death Zone simultaneously. If the latter happens, the player loses the level.
- Minimum score to beat:
- Level1 = 5
- Level2 = 10
- Beating Level1 takes the player to Level2. If not beated, the player gets an option to play Level1 again.
- In both cases - beating or losing Level2 - the player gets 2 options:
- Play Level2 again.
- Restart the game from Level1.
The project is made on an Editor version 2019.4.16f1 and includes WebGL and Windows Build.
- In the project folder, navigate to Builds → WebGL → index.html.
Note: Opening index.html directly from the file system might not work in some browsers. This is due to security restrictions applied to local file URLs. - In case none of your browsers support the first method, you may open the file by starting a local testing server. To start it:
- Make sure you have Python installed on your system.
- Next, open the Command Prompt & navigate to the directory, WebGL where index.html lies inside, using the
cd
command. - Enter the command to start up the server in that directory:
# If Python version is 3.X python -m http.server # If Python version is 2.X python -m SimpleHTTPServer
This will run the contents of the directory on a local web server, on port 8000. You can go to this server by going to the URL localhost:8000
in any web browser. The HTML file would run now.
In the project folder, navigate to Builds → Windows → Roller Master.exe.
Open the project in Unity and navigate to File → Build And Run. This opens the application on your target platform specified in Unity.
Note: If your Editor version doesn't match with the project's, a warning message will be displayed asking you to download that version. Alternatively, download the required version in Unity Hub.