Trojan Horse Siege: Demo of Fantasy Trojan War


The developer Jiantao’ s work Trojan Horse Siege is a 3d third person RPG game. The inspiration comes from the viral video Moving Trojan Horse in Huidong by cntravel on Tik Tok[1] as well as the Greek mythology of Trojan Horse. For the overview of the game, there are many robot horses troops attacking and sieging the Trojan city state, the player will act as the commando to survive in the siege and repel robot horses with the guidance of T-snack. The game has a game world of an ancient city state that was built in maya and imported to Unity 3D by the developer. T-snack is the npc on the side of the main character. In this game, there are three levels. At every level, the npc T-snack will tell the player what to do. Except for combating, the game has the health systems and the health reward systems. The player can always reach to the goal with the guidance of npc. All game assets in this project were modelled, textured and animated by the developer.

The commando was named as “Hector”in this project, which the player will control him at every level. In the first level, the npc T-snack is talking to the player “Hi commando, I am T-snack, the empire of the king sent the robot horses troops to attack us, let us wipe them out!”. At the same time, T-snack did the action of drawing the knife, and the player can control the commando to fly forward to the trojan city state. To made this happen, he first imported the fbx animation of T-snack from maya, and added an animator controller for this npc. The developer needed to make the commando to move and rotate in the 3D way and jump. To do that, he used the way of move control to let the player click the keyboard to move the character with the help of the tutorial[2] . To make the game character move more lively, he added the walking animation, idle animation and jump animation, and added them in an animator controller that attached to the game character.  These animations were baked and imported from maya. With the help of “Animator, Set Trigger” Unity animator tutorial blog.[3]  To make the NPC talk to the character, the developer added an UI at the bottom right of the game play frame with the text about what T-snack should say. Then, the commando can fly forward to the city. In this level, he should move to the next level, so he added an empty game object and added scenemanager script attached to it with the reference on “how to change scenes with a trigger”[4]. The game object was designed as the gate, which character would step to the second level when stepping on it. For the second level, the developer made a new scene by copying the game assets from the first level and he added more enemy robot horses. The developer added the first level (scene1) and the second level (scene 2) to the build settings. He also edited as “scenemanager.loadscene(2) in the script of the scene transition, so that the character can enter the next scene.

In the second level, the developer designed the game character to attack the approaching robot horses and follow the npc T-snack. The developer imported the fbx animation of the running and stab from maya and added it into the animation controller of T-snack. To make T-snack move forward, he added the script with the reference from a blog of Low Scope[5] and set the value of the float speed to 2.  For the robot horse, the developer also imported the fbx walking and biting animation from maya and added it into the animator controller. He named the robot horse as “trojan horse march.” To make the robot horse move, he attached the same script to the robot horses. Players need to shoot the robot horse, so the developer added the function of “GetMouseButtondown” into the commando. He also added “gas ball” as the bullet prefab under the script. Then, to make the bullet fly, he also attached the moving script to the gas ball, set value of speed as 20. At the same time, the developer added the muzzle prefab with referencing the tutorial by Gabriel.[6] He used “mountain flash” sequence from maya as the muzzle prefab, Then, he added the explosion script for the bullet with the influence from the tutorial of Unity explosion/knock back and attached “firework002” as the explosion prefab[7]. To make the bullet shoot straight, the developer added a raycast for the character shooting with learning from Alans tutorial on Raycast[8]. He set the gas ball as the bullet, the Cube(1) as the firepoint, speed value as 20, reload time and timer as 0. In this case, players can control the commando to shoot the robot horses with the explosion effect.

Additionally, The developer also added UI and the health system at this level. He added the UI of the commando’s health bar, and the UI of T-snack message by adding canvas-> image. At this level, T-snack saying “follow me” shown in the UI. For the health bar UI,

 Bibliography

 “Cn.travel on TikTok.” TikTok. Accessed December 24, 2020. https://vm.tiktok.com/ZSctTNxY/.

“Unity3D character movement and rotation by mouse.” Unity 3D Player Control by Mouse. Accessed December 24, 2020. https://www.360kuai.com/pc/96d54f68a46aa9a78?cota=4&tj_url=xz&sign=360_e39369d1&refer_scene=so_4.

Technologies, Unity. “Animator.SetTrigger.” Unity. Accessed December 22, 2020. https://docs.unity3d.com/ScriptReference/Animator.SetTrigger.html.

“HOW TO CHANGE SCENES WITH A TRIGGER IN C# UNITY TUTORIAL.” YouTube. YouTube, March 3, 2019.

Alex, and Name *. “Unity Quick - The Most Common Ways to Rotate an Object.” Lowscope, January 13, 2020. https://low-scope.com/unity-quick-most-common-ways-to-rotate-an-object/.

“Unity 2018 - Game VFX - Projectile/Bullet Raycast Tutorial.” YouTube. YouTube, August 26, 2018.

“Unity Explosion Force/Knockback - Making a Bomb.” YouTube. YouTube, May 19, 2020.

AlanZucconi. IPG 07 ● Raycast. Alan Zucconi, November 8, 2020.

[1] “Cn.travel on TikTok,” TikTok, accessed December 25, 2020, https://vm.tiktok.com/ZSctTNxY/.

[2] “Unity3D character movement and rotation by mouse,” Unity 3D Player Control by Mouse, accessed December 24, 2020, https://www.360kuai.com/pc/96d54f68a46aa9a78?cota=4&tj_url=xz&sign=360_e39369d1&refer_scene=so_4.

[3] Unity Technologies, “Animator.SetTrigger,” Unity, accessed December 22, 2020, https://docs.unity3d.com/ScriptReference/Animator.SetTrigger.html.

[4] “HOW TO CHANGE SCENES WITH A TRIGGER IN C# UNITY TUTORIAL,” YouTube (YouTube, March 3, 2019),

[5] Alex and Name *, “Unity Quick - The Most Common Ways to Rotate an Object,” Lowscope, January 13, 2020, https://low-scope.com/unity-quick-most-common-ways-to-rotate-an-object/.

[6] “Unity 2018 - Game VFX - Projectile/Bullet Raycast Tutorial,” YouTube (YouTube, August 26, 2018),

[7] “Unity Explosion Force/Knockback - Making a Bomb,” YouTube (YouTube, May 19, 2020),

[8] AlanZucconi, “IPG 07 ● Raycast,” IPG 07 ● Raycast (Alan Zucconi, November 8, 2020),

Files

Trojan Horse siege Full By Jiantao Hu .zip Play in browser
Jan 09, 2021

Leave a comment

Log in with itch.io to leave a comment.