visit
How to play the game on desktop browser?
To make it easier for the user I have also published as a desktop browser game because people always love to play browser games and the reason is its quick easy no need for any types of installation.How to play the game on Android device?
Forest Assassin is also available for Android devices and on the smartphone user will get the feelings of a classic platformer game. So please download the game and share your experience.1. To move use [ LEFT ] & [ RIGHT ] arrow button
2. Use [ UP ] arrow button to jump
3. Use [ SWORD ] button to attack
4. To finish the game collect all coins and the trophy
How to Build a 2D platformer game using Unity3D?
game engine is a great platform to build a 2D or 3D game because it provides many major components such as physics, animation, cross-platform support and many more. And before starting to build any types of game the very first thing you need to do is design a which means you need to build the idea behind the game which will help you to develop a successful game and always try to remember while designing a make it simpler and don’t make it complicated otherwise it will be quite difficult for you to finish the game.Forest Assassin Game Theory
There is a king who hunts for the treasure and during his mission, he will face many enemies and there will be a 3 minutes time limit to complete the game.
And that’s all the theory behind my game and you should also follow a similar approach while building your game.So now let’s discuss what are the tools and techniques behind Forest Assassin game?
Tools & Techniques
Character Movement
To move a character in the game you need to have a script which will control the character to Walk, Jump, Crawl and so on and also it requires physics.Character Death — (Game Over)
In this game, the character can only die when he touches with the enemy or with the water and to handle the trigger between the collider Unity has an API called which will handle the trigger between the collider and after the collider, it will send a message to the Collider2D parameter which we can use to decide the death of our character.And to make it organised I have assign tag name called ‘Enemy’ so that in future if I will add one more enemy then all I need to do is assign this tag name to this component and it will be handled through the Script.
Character attack
Score Counter
If you understood the above two techniques (Character Death & Character Attack) then to implement the scoring functionality it’s quite easy as we need to follow a similar approach. When the character and the gold coins collide with each other then I am calculating the score to +10 through the script and again here also I am using API.Timer
To implement the timer functionality Unity has an API called which is used to create a parallel action and can pause the current execution and then continue where it left off and all the coroutine function is declared with a return type of IEnumerator with the yield return statement.How to publish for WebGL?
Unity has build option which allows publishing content as Javascript programs and internally it uses HTML5/JavaScript, WebAssembly, WebGL rendering.In today’s modern web browsers by default enables and it’s quite helpful to run Unity application on the browsers.Open Source
I have made the complete development open-source on my so that you will have a clear understanding of every component of this game and also I hope it will give you an idea to build your own game.So this is the overall explanation of , I hope you understood the tools and techniques behind this game if you find any issues then please feel free to raise an issue on .Enjoy the game and also share this game with your friends.Thank you & Happy coding :)