Moving Countries - Unity Video Game
This video game is based on my personal experience of moving countries as a child. It focuses on delivering a narrative without the use of any words.
Skills gained:
- Unity animation & asset implementation.
- C# cheap sine equation movement.
- Game design to enhance narrative.
- UI/UX design.
Home Town & New School Scenes
Moving countries is a silent narrative game with 2 different endings depending on player performance. It has 4 scenes: the home country scene, the new school schene, the classroom scene and the report card scene. The home country scene has an interractable NPC that kicks a ball and talks back to the player. The new school scene has interractable NPCs that make fun of the player or talk amicably with them. This depends on the player actions, which include kicking the NPCs.
Classroom & Report Card Scene
The classroom scene involves a minigame in which the player must manouver the flower to avoid the moving letters. The letters will continuously increase in speed for 1 minute. If the player’s healthbar does not drop to 0, they will get a good grade, otherwise they will get a bad one.
The controles for the minigame are not revealed until the end of the game. This is to mimic the frustrating feeling of trying to write in an unkown language which is only learned at a later age, hence, the revealed controles at the end.
The report card scene reveals the player’s grade along with comments on their actions (e.g kicking the NPCs). The minigame controls or a secret message will then be revealed, depending on the player’s performance.
Code
For the NPC interractions, Courutines and trigger boxes were used to check player proximity and reply at the correct time, as well as booleans to check player behaviour. For the various animations, I used Unity’s statemachine animations, using speed floats and other booleans to switch between animations. The ball object in the hometown scene checks how many times the player has kicked the ball, switching scenes on the last kick.
Mini-Game Code
The classroom scene minigame was, relativley, the most challenging script. The mini-game changes sprite’s alpha value to indicate cooldowns and warnings. The enemy letters, which are obstacles the player must avoid, use a sin equation to move along the y axis, increasing speed every few seconds.
Conclusion
I was quite pleased with the game’s final result. Its clear-cut code resulted in smooth gameplay that complimented the narrative.