Skip to content

v2.6.0 - Local Multiplayer

Choose a tag to compare

@chelslava chelslava released this 30 Mar 11:52
· 9 commits to master since this release

What's New

🎮 Local Multiplayer

  • Two players on the same field
  • Player 1: WASD controls (cyan snake)
  • Player 2: Arrow keys (magenta snake)
  • Head-on collisions result in a draw

Game Modes

Mode Command
Endless pyaisnake multiplayer
Score limit pyaisnake multiplayer --score 20
Time limit pyaisnake multiplayer --time 60

Win Conditions

  • Score limit: First player to reach target score
  • Time limit: Highest score when time runs out
  • Last alive: Opponent crashes into wall/obstacle/snake
  • Draw: Head-on collision or simultaneous death

Controls

Player Up Down Left Right
P1 (Cyan) W S A D
P2 (Magenta) ↑ ↓ ← →

Shared Controls:

  • P / Space - Pause
  • R - Restart
  • Q / Esc - Quit

Full Changelog

  • Add MultiplayerGame engine
  • Add MultiplayerRenderer for split view
  • Add multiplayer CLI command
  • Collision detection between snakes
  • Configurable win conditions
  • Bump version to 2.6.0