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:

The enemy will target it's nearest structure and attack it if they are near the structure, when the player comes in range, the enemy will come for the player and attack them, giving them the highest priority, if the player is out of range, they will again search for the nearest structure for them to attack until they eventually get their health to 0, and die.

graph TD;
   Start((Start)) --> Enemy_Spawns;
   Enemy_Spawns --> 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_Target? --> |No| Move_Towards_Target;  
   Move_Towards_Target --> Is_Player_InRange;
   Attack_Target --> Target_Dead?;
   Target_Dead? --> |Yes| Is_Player_InRange;
   Target_Dead? --> |No| Continue_Attacking;




Loading

Clone this wiki locally