Skip to content

Technical Design

WarlockGames12 edited this page Mar 22, 2024 · 103 revisions

A TDD serves as a blueprint for your programmers, outlining the game's technical aspects. Here's how to build one on a GitHub Wiki:

  • Introduction: Briefly describe the game, genre, target platform (PC, mobile etc.), and core functionalities.
  • Game Architecture: Explain how the game will be structured. This might involve components like the game engine, networking (if multiplayer), and data management. You can include diagrams for better visualization.
  • Core Systems: Delve deeper into the technical details of major systems: Gameplay Mechanics: How will movement, combat, or resource gathering work?
  • Input & Controls: How will players interact with the game (keyboard, mouse, touch)?
  • Rendering: 2D/3D graphics engine and rendering pipeline details.
  • Physics: How will physics simulations be implemented (if applicable)?
  • Networking (if multiplayer): Communication protocols, server architecture, and data synchronization.
  • AI (if applicable): Enemy or NPC behavior logic.
  • Save System: How will player progress be stored and loaded?
  • Data & File Formats: Specify file formats for game data (levels, characters, audio, textures etc.).
  • Development Tools & Technologies: List the programming languages, libraries, and frameworks used for development.
  • Testing Strategy: Outline how the game will be tested (unit tests, integration tests, manual testing).

-Enemy wave spawning:

On wave 1 each zone will have the exact same amount of zombies that it will spawn. Itll use a for loop so it itterates through the total spawn ammount. It uses a random number generator with its ranges being the the minimum and maximum their zone then it will spawn untill it has spawned the amount of enemies its required to.

graph TD;
     Start((Start))--> Wave-starts
    Wave-starts--> Get-current-wave;
    Get-current-wave--> Calculate-enemies-Count
    Calculate-enemies-Count-->Spawn-enemies
    Add-Health-Corrolating-To-Wave-->Spawn-enemies
    Spawn-enemies-->Killed-all-enemies?
    Killed-all-enemies?--> |Safe period| Wave-starts;



Loading

Enemy AI:

graph TD;
*Enemy_Spawns;  
Enemy_Spawns --> Enemy_Exists;
Enemy_Exists --> Is_Player_InRange?;
Is_Player_InRange? --> Yes [Player Target];
Is_Player_InRange? --> No [Get Nearest Structure];
Player Target --> Move_To_Player;
Get Nearest Structure --> Find Nearest Structure;
Move_To_Player | Find Nearest Structure --> Is_Enemy_At_Target?
Is_Enemy_At_Target? --> Yes [Attack Target];
Is_Enemy_At_Termget? --> No [Move Towards Target];  
Attack Target --> Target_Dead?
Target_Dead? --> Yes [Find New Target];
Target_Dead? --> No [Continue Attacking];
Enemy_Dies --> Game Over;


Loading

Clone this wiki locally