Game Development: Final Project

06/04/2023 - 14/07/2023 / Week 1 - Week 14
Darren Liga / 0351480
Game Development: Final Project


INSTRUCTIONS



For the final project, started by rewatching all the tutorials from recorded lectures. Then found external sources from the WhatsApp group sent by Sir Razif.


Game Design Document:


I used Adobe Illustrator for most of the sprites I used in-game.

Game design


I started by sketching out the level in unity itself with the tiles.


Fig 1.1: sketching out map

Fig 1.2: added elements

I then added golf-related elements such as trees, water and flags. The flag functions as the end of the hole and would progress to the next level on collision.

Fig 1.3: Added starting elements

In the actual golf course, there would be a signboard showing the hole's number and distance, along with the par. I added the types of hazards that the holes have.

Fig 1.4: Element collision

Added sound effects for the splash on collision.

Fig 1.5: Dead screen

I added a scene for each type of element. When the player collides with the water, a water hazard scene will show up.


Fig 1.6: Audio Management

Added an audio management script where audio could be played from anywhere in the game.

Added sound effects:
- water splash
- tree collision
- buggy driving
- hole in (putting)
- ambient sound (golf course)
- background music
- start up sound (golf swing impact)
- game complete sound

Fig 1.7: Cart (Ridigbody)

Added a golf cart on the second hole. Movable by the player because of the rigidbody2d. The player needs to push the buggy in order to jump from the top to get to the upper portion of the map.

Fig: 1.8: Moving Platform

Made a moving platform in a shape of a golf tee. I purposely made it hard to jump into as in real life, balls are hard to tee up if we're not used to playing in the golf course. Secondly, I think my game is too simple on the first level, I made the moving platform over the water near the end of the hole to add difficulty.

Fig 1.9: Moving Buggy

This part would be the most challenging. I can't find a way to make the buggy move on the sand ground when the player collides with it. 3-4 days messing with different scripts. Finally asked for perplexity and got the right script for it.


Fig 1.10: Driving Range

I added "enemies" for the boss level, hole 3. I made balls spawn that would kill the player when colliding and the player would be respawned directly on the same hole. I added the ball spawner together with another moving platform (tee) with water under it. This would be the most challenging part of the same.


UI

I started polishing my UI when the game map and scripts were done.

Fig 2.1: Total Scenes

These are the scenes i used throughout the game. I use unity scene management for alot of the collision functions, such as death.

Fig 2.2: Load Scene

I did the load scene last. When building i couldnt mess with the scene arrangement as i would need to tamper with 20+ individual scripts. So i made the first scene order (0), an empty scene with the code telling the game to load the load scene first, scene(12).

Fig 2.3: OB scene

Updated the whole death scene for different types of collision. A major change from the initial blank page with stock buttons.

Fig 2.4: Tree death scene

Fig 2.5: Water Hazard scene

Fig 2.6: Ending Scene


I made an ending page for when the player collides with the last flag in hole 3. The sound of completion also differs compared to the first 2 holes.


or

Final Game (WebGL) Embedded:

Comments

Popular Posts