How 9kyo-hwang/consolegameproject works
This repository is a Windows console-game framework and a collection of games built on it, with a multiplayer Z1 client/server extension. The typical path is a game executable starting its game object, which runs the CraftEngine loop to process input, update a level, check collisions, and render; sound is another engine capability. Z1 multiplayer adds a network client, shared packet formats, and a server-side simulation. The README documents product-level relationships; sampled source confirms the engine loop and key networking operations. Several game-specific call chains are unsampled and are therefore not expanded.
Main entry points: Engine.cpp Engine Loop · Server.cpp Z1 Server · Game.cpp Z1 Game · NetworkClient.cpp Network Client
Components 23
CraftEngine
- Engine Loop
CraftEngine/Engine/Engine.cpp - Level Runtime
CraftEngine/Level/Level.cpp - Actor Components
CraftEngine/Actor/Actor.cpp - Input
CraftEngine/Core/Input.cpp - Collision
CraftEngine/Physics/CollisionSystem.cpp - Console Renderer
CraftEngine/Render/Renderer.cpp - Tilemaps
CraftEngine/Tilemaps/Tilemap.cpp - Sound System
SoundSystem/SoundSystem/Sound.cpp
Game Content
- Shooting Game
ShootingGame/Level/GameLevel.cpp - Sokoban Game
SokobanGame/Level/GameLevel.cpp - Z1 Game
Z1/Game/Game.cpp - Z1 Levels
Z1/Level/DungeonLevel.cpp - Z1 World Maps
Z1/World/OverworldMap.cpp - Z1 Actors
Z1/Actor/Pawn.cpp
Z1 Networking
- Network Client
Z1/Network/NetworkClient.cpp - Networked Gameplay
Z1/Network/NetworkOverworldLevel.cpp
Server Runtime
- Z1 Server
Z1Server/Server.cpp - World Simulation
Z1Server/OverworldSimulation.cpp - Client Sessions
Z1Server/Session.cpp - IOCP
Z1Server/CompletionPort.cpp
Network Foundation
- Socket Library
Sockets/Sockets/Socket.cpp - Shared Protocol
Z1Shared/PacketCodec.h
Other components
- Player
Connections 25
- Player → Shooting Game: plays
README.md - Player → Sokoban Game: plays
README.md - Player → Z1 Game: plays
README.md - Shooting Game → Engine Loop: runs on
README.md - Sokoban Game → Engine Loop: runs on
README.md - Z1 Game → Engine Loop: runs on
README.md - Z1 Game → Z1 Levels: uses
- Z1 Levels → Z1 World Maps: uses
- Z1 Levels → Z1 Actors: uses
- Engine Loop → Input: polls
CraftEngine/Engine/Engine.cpp - Engine Loop → Level Runtime: ticks
CraftEngine/Engine/Engine.cpp - Engine Loop → Collision: dispatches
CraftEngine/Engine/Engine.cpp - Engine Loop → Console Renderer: draws via
CraftEngine/Engine/Engine.cpp - Engine Loop → Sound System: plays audio
CraftEngine/Engine/Engine.cpp - Level Runtime → Actor Components: updates actors
- Z1 Game → Networked Gameplay: uses
- Networked Gameplay → Network Client: dispatches
- Network Client → Socket Library: sends and receives
Z1/Network/NetworkClient.cpp - Network Client → Shared Protocol: encodes packets
Z1/Network/NetworkClient.cpp - Z1 Server → Socket Library: accepts clients
Z1Server/Server.cpp - Z1 Server → Shared Protocol: parses packets
Z1Server/Server.cpp - Z1 Server → Client Sessions: manages sessions
Z1Server/Server.cpp - Z1 Server → IOCP: registers I/O
Z1Server/Server.cpp - Z1 Server → World Simulation: ticks world
Z1Server/Server.cpp - Z1 Server → Network Client: serves multiplayer
README.md