Tuesday, 6 December 2022

Unity RPG HDRP/URP Engine for RPG Game Development with A* Pathfinding, AI Agent Scripting and IK Character Animator

 

"The Unity RPG (HDRP/URP) Game Engine" with A.I. Agent Scripting (FSM), A* Pathfinding (for RTS & RPG Games), RPG App GUI and Journal System (with XML Support), Terrain Editor, 3D RPG World System (using a Custom 3D RPG Camera System or Unity’s Cinemachine “Cinematic” Camera System), and IK Character Animator 




 





The Unity RPG (URP) Engine with A.I. Agents is a Unity (HDRP & URP) Project Template for developing RPG games and Apps using Unity 3D (HDRP, URP), custom A* Pathfinding (for RTS and RPG Games), Unity’s Navigational Mesh (Pathing Baking), Terrain Editor, Water Simulation, Pro Builder, 3D Combat Engine, Custom 3D RPG Camera System and Unity’s Cinemachine Camera System, and an 3D Character Animator Controller with AI Scripting and Path finding included (for RTS and RPG Games).  The Levels are in the Fantasy Level scenes with ValleyTownVillage containing the App Hub and Main Menu.


Notes: The latest versions supports A* Path finding for the Enemy Manager and Cinemachine Camera System (a Third Person RPG Camera System is also included). Dynamic level scaling is supported in code for each Fantasy Level (to scale the level further in the world space).  

   


URP version: Download the latest version here (Version 6.0 - 2.5 GB) or previous version here (Version 5.0 - 2.5GB), or other previous versions: (Version 4.0 - 2.5 GB) or Version 3.0. 

Unity Mobile version: Download the Unity Mobile Version(2.0 GB).

Download "The Unity RPG URP Project Template" for Unity 2021 here (Version 2.0, Windows, Unity URP) (~ 1.5 GB)

Download "The Unity RPG URP Project Template" for Unity 2021 here (Version 1.0, Windows, Unity URP) (~ 1.8 GB)


Read the Manual The Unity RPG (google.com) or here for the Unity RPG (HDRP, URP) Engine


AStar System for Enemy AI movement and patrols and Combat System (Harbour Shore and Fantasy Towns)










Town Plotting















Unity 2022 (HDRP) - Cinemachine Virtual Camera (Perspective): Valley Town with Harbour

Desert Canyon





Forest

Medieval Fantasy Town


Temple Dungeon




GUI System for RPG Apps with Unity's Canvas System (Unity 2021)

GUI System for RPG Apps with Unity's Canvas System (Unity 2022)


Building Interiors for Dungeons and Towns

Game Scenes and Open-World 3D Levels
  1. The Valley Empire scene contains an Imperial Capital City with shops, taverns and some municipal buildings.  This Imperial City can be used for Item Shopping and includes a Quest System with NPC Text Dialogue System, Inventory System and Item Pickup Script.  An RPG Dialogue and a Shop system is included for chatting with NPCs in the level and buying items and weapons using Unity's GUI Canvas System
  2. The FantasyDesert 1-3 Scenes contains Levels 1 to 3 with each Scene Level containing a sample town settlement and a Outdoor Dungeon with Ruins to explore with enemy dynamic loading and combat engine
  3. The FantasyDesert 3D Scene contains a Full Tomb Dungeon with Full Interiors and enemy dynamic loading with A*
  4. Pro Builder and Terrain Editor Level pathing technology
  5. Water simulation is included in the Valley Empire and FantasyDsert 1-3 Scenes as well as HUD overhead topographical camera and a Town plotting system for building placement
  6. A custom 3D RPG Camera System with Player Targeting is included along with Unity’s “Cinematic” Cinemachine Camera System


Combat Engine, Enemy AI with Unity NavMesh and A* Pathfinding Support
  1. Evolved Combat engine code is included for the Third Person Controller (PlayerAction Prefab) to extend in your own projects such as Action or Turn-Based RPGs with weapon-based and martial art combos.  
  2. The project template features a ThirdPersonController and a First Person Controller for Player navigation
  3. The Enemy AI Classes uses the Character Animator (for IK Animation) and supports Unity's NavMesh Pathfinding or our own custom A* Pathfinding
  4. Character Animator (for IK) and Finite State Machines (FSMs) are supported for the Player and the Enemy Agents (Weapon and Martial Combat Types) with States for walking, attacking (combos), getting hit and dying 
  5. Some Pathfinding patrol scripts are included for the enemies that move them around the environment and buildings (FantasyDesert Scenes)
RPG App Development Features

  1. 2D HUD and App UI GUI support for Turn-Based or Action RPGs with HP Bars, Menu System and a Inventory & Shop System.  Also includes a Main Menu system, a Save and Load System (for player game progress) and a Leveling Up Experience System, 
  2. A Quest and Journal System included with updated objectives for Mission Victory or Mission Failure using Unity's GUI Canvas system and a custom RPG Journal System supporting XML with Unity








Unreal Engine Sequencer


HDRP (URP) Screenshots











A* Pathfinding (HDRP)





















 



Mobile Output:











Hub and GUI Layout:





  



 



















Dialogue, Combat and Inventory System

Castle Grounds (Palace Inner City for Musou Genre and Action RPG)


HDRP (HiRes) Screenshots:



























Winter Forest Pathway





Night Forest



Village in a Valley




Inventory and Dialogue System





Soldier Town Patrol Algorithms

















































Other Scenes (named Level 1-5) contains other useful scripts including item pickup scripts, level trigger scripts and particle systems and also other 3D levels for RPGs.











References:

1. "Unity From Zero to Proficiency" by Patrick Felicia
2. 3D Game Kit (Unity Package Plugin)
3. Unity's First Person Shooter (FPS) Sample Project
4. Flooded Grounds "Free" Unity Package
5. Viking Village Unity Package
6. Sams Unreal Engine 4 Game Development in 24 Hours by Sams
7. "Unity From Zero to Proficiency" (Proficient) by Patrick Felicia
8. Unity Artificial Intelligence Programming by D. Aversa