Skip to content

Instantly share code, notes, and snippets.

@XMPPwocky
Last active August 29, 2015 14:08
Show Gist options
  • Save XMPPwocky/a71ff492d6243a63a211 to your computer and use it in GitHub Desktop.
Save XMPPwocky/a71ff492d6243a63a211 to your computer and use it in GitHub Desktop.
architectuuureeeeeee
For the world: BSP for collision
For the world: BSP of visibility regions
For each visleaf: Mesh for rendering
For each player: From the network: position, rotation, animation information, and history of that for interpolation
For local player: Predicted locally: position, rotation, animation information
For each player: AABB
For each player: Game-specific data (team, player class, etc.)
For each player: Weapons, and which is active
For local player: Velocity, some movement data
For each projectile: Position, rotation
For each projectile: A model used to draw it, and a material
For each projectile: AABB
For each projectile: Game-specific data (team, what type of projectile it is, etc.)
For each player: Position, rotation, animation information, and history of that for lag comp
For each player: Velocity, some movement data
For each player: Weapons, and which is active
For each player: AABB
For each player: Game-specific data (team, player class, etc.)
For each weapon: ???
For each projectile: Position, rotation, possibly history of that?
For each projectile: Game-specific data (team, what type of projectile it is, etc.)
For each projectile: AABB
For the world: BSP for collision
For the world: BSP of visibility regions
For the world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment