(NEW) Turn Based Game
Let's create a turn based game, this time we're going to utilize tools and a lot of tricks to make our life easier on creating this game.
We're also going to cover topics such as Action Points & Xcom style, pathfinding (with 3d movement), multiplayer and later on AI.
This series is entirely from scratch, so you don't need to have follow any of my other turn based series prior to this.
Course contains 44 lessons.
Let's see how we can effortlessly create a grid on top of an already existing level
Let's detect where obstacles sit on our level
Let's add floors in our level
Let's make our nodes have different world positions while not violating the grid
Let's build the template for managing turns and phases
Data containers for players, both human and not
Let's create a new simplistic finite state machine for this game
Let's create variables that can be used withour relying onto references
Let's create our A* Pathfinder for our game
Quick fix for where we left off our pathfinder on the last video
Let's create a few interfaces for interacting with objects in our scene.
Let's move our units on to our path
Let's make a few tweaks into our grid that will fit our level better
Let's see some examples of more advanced pathfinding
Let's add locomotion animations to our units
Let's integrate the inventory framework and SO library to make our lifes easier down the line
Let's create the setup for our characters and their action points.
Let's limit our path based on our action points
Let's visualize the nodes we can actually walk to
Let's create the setup for high level action management (for players)
Let's see the Template Design Pattern and how it can help us in this type of game
Following with our actions template, let's see the example for the attack action
Let's create a framework for context heavy node abilities, for example jumping down, climbing up and knocking out an opponent
Let's create a manager to visualize the node abilities and an interface for our player to actually do them.
For the UI buttons to actually follow the world position, DO THIS:
//rect is the rectangleTransform, not the normal transform!
Vector2 pos = RectTransformUtility.WorldToScreenPoint(camera, targetPosition);
rect.position = pos;
Let's start building our UI
Let's do a bit of a clean up and fix a few sticking interface bugs
Let's add costs to our abilities and some general fixes
Let's start building our item handling mechanics, we'll start with the weapons
Let's make our characters forced to look at only 8 directions
Let's fix some bugs and create on enter/ on exit actions for more control over our states. Plus a manager script to have all our action points calculations in one place.
Let's finish our algorithm for node based rotational movement
Let's complicate things by adding layered actions
Let's fix our rotation detection logic to be based off of triangles rather than distance
Let's see why we are doing everything we are doing here and where the upcoming changes will be based off
Let's tweak our action points system to be closer towards JA 2
Let's dynamically update our UI slots
Let's give more responsibilities to the actions rather than having them switching from a manager script
Let's create dynamic bullets
Let's update our bullet logic
Let's polish our aim a bit
Let's level up our bullet logic by adding a penetration algorithm...
( ͡° ͜ʖ ͡°)
Let's change the models we are using and do some maintenance
Let's make an aim assist and do some general fixes