1
0
Fork 0
mirror of https://github.com/imjasonh/terminus synced 2026-07-06 22:12:35 +00:00
Commit graph

3 commits

Author SHA1 Message Date
Jason Hall
b1694154b7 Add NPC system with wandering AI and sprite rendering
- Add NPC data structure with random walk movement and collision
detection
- Implement NPC manager in GameServer with thread-safe access and
spawning
- Add blue half-filled circle sprites for NPCs with proper depth testing

- Update renderer to support NPC sprite type with medium size and
visibility
- Integrate NPCs into multiplayer system - all players see shared NPCs
- Spawn 3 NPCs in small maps, 5 NPCs in large maps based on map
dimensions
- Update module path to github.com/imjasonh/terminus
- NPCs move at 1.5 units/sec with direction changes every 2-4 seconds
- Add proper Z-buffer testing and sprite sorting for NPCs

Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-09-24 09:26:55 -04:00
Jason Hall
bda3f258bd Implement multiplayer player sprites and persistent SSH host keys
- Add Z-buffer depth testing system for proper sprite rendering
  - Implement multiplayer player visibility with green @ sprites
  - Add sprite rendering system supporting both projectiles and players
  - Fix sprite coordinate transformation and positioning accuracy
  - Make player sprites large and wide for better visibility (75%
  width-to-height ratio)
  - Add persistent SSH host key generation and loading to avoid
  regeneration
  - Update renderer to accept and display other connected players
  - Add thread-safe player list access for multiplayer sprite rendering
  - Ignore generated host key files in .gitignore

Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-09-24 09:14:23 -04:00
Jason Hall
fe3aaff79a implement SSH server, fix lint findings
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-09-24 08:22:19 -04:00