Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Mastering Unity 2D game development
  • Toc
  • feedback
Mastering Unity 2D game development

Mastering Unity 2D game development

By : Jackson
3.8 (21)
close
Mastering Unity 2D game development

Mastering Unity 2D game development

3.8 (21)
By: Jackson

Overview of this book

If you have C# knowledge but now want to become truly confident in creating fully functional 2D RPG games with Unity, then this book will show you everything you need to know.
Table of Contents (15 chapters)
close
Free Chapter
1
1. Overview
14
Index

Going further

Now, you are probably thinking at this point, "What about the rest of the battle?" Put simply, I leave that up to you.

You are now armed with everything you need to know to be able to complete the rest of the battle scene. You should not just stop there, however, and you should see just how far along you can get.

Try expanding the battle to include various states using the following steps:

  1. Add an onscreen GUI to inform that the control is now changing hands in the Change Control battle state.
  2. Loop through the Goblins and let them attack the player; rough him or her up a bit.
  3. Check whether the battle is complete, and accordingly, either transition back to the Player Move state or set the BattleReady state variable to false to transition to the Battle Result state.
  4. Display a 2D GUI to summarize the battle results and grant the user some experience, perhaps with some gold, each time an enemy is slain.
  5. Transition back to the map when the battle is over.
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete