top of page
jrieyY.png

Student Game Project Studio 1 (2021)

|

Ronin

Ronin is a 2D side-scrolling hack & slash action video game, developed in Unity Engine. The game follows the story of Nakamoto Yuji, a ninja serving the Izumi clan who was forced to see his clan downfall and himself killed. Being revived as a revenant, he swore to take revenge on the Kurayami clan. The player needs to harness the power of a ninja and the power of a revenant to get his revenge. Players can choose from a variety of skills and power to help them in the journey of discovery and revenge.

Project details

  • Team name: Scaredy-Cat Studios

  • Team Capacity: 7 Person (2 designers, 2 artist, 3 programmers)

  • Project Duration: 3 months

53Z9S8.png

Involvement of the game

1.0 Gameplay programming

The programmers in the game uses Unity's C# to code the game. Here are my technical contributions to the game.

1.1 Cutscene System

A state driven camera is set to control the cameras that are present in that scene. An animator is then assigned so that the trigger parameter of the state can be set to be used in scripts.

qw.png

1.2 Dialogue System

The dialogue in the game is made up of an array of sentences that the editors can edit on the inspector as well as the speed of the dialogue

image_2022-12-02_163229528.png

Dialogue is triggered when the player triggers a isTrigger box collider. Upon triggering, the collider sets the trigger boolean to true.

image_2022-12-02_163332510.png

When the boolean is true, when the input is detected, the dialogue “enter” animation is triggered and the function to generate the text is called.

image_2022-12-02_163429694.png

The dialogue lines are stored within an array variable, when a line has been written out, the index increments. Characters in a line are “animated” using a tochararray loop. A boolean is set so that the process could not be spammed. A temporary char array is also compared to a counter variable that increments with every char. This is to ensure that the character finishes looping before the next one could.

image_2022-12-02_163447329.png

When the index exceeds and goes out of bounds, the dialogue box animation is triggered to “exit” and the lines are cleared.The index is set to 0 if the dialogue needs to be repeated.

portfolio logo.png

© 2022 by Loo Zheng-Jie created with Wix.com

  • w-facebook
  • Twitter Clean
  • w-flickr
bottom of page