Repository navigation
v.1.0.5 #1
lordofsunshine
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🐍 SnakeVortex - Multiplayer Snake Arena
https://monoforge.org/lordofsunshine/snakevortex
Language / Язык
About
I've created SnakeVortex, a multiplayer snake game that brings the classic gameplay to the web with real-time multiplayer capabilities. This is a fully-featured snake arena where players compete against each other and intelligent AI bots in a dynamic environment. This is my first time working with AI bots and on such a game in general, so don't hit me too hard)
Security Updates
Rate limiter protection
Added a hard limit for stored rate limiter entries. This helps prevent the rate limiter itself from growing too large in memory.
Safer Origin validation
Origin checks now use
urlsplitand exactnetloccomparison instead ofstartswith. This prevents unsafe lookalike origins from passing validation.New security limits
Added new configuration limits:
MAX_RATE_LIMITER_ENTRIES = 1000andMAX_WS_CONNECTIONS = 200.WebSocket connection limit
WebSocket connections are now rejected before being added to
connected_clientsif the connection limit has already been reached.Correct player removal state
When a player is removed, their snapshot is immediately marked with
alive = False. This keeps the player state accurate for the rest of the game logic.Safer kill logic
kill_playerno longer drops food for players who are already dead. This prevents duplicate or incorrect rewards from being created.Security regression tests
Added regression tests covering all discovered security issues. These tests help make sure the same vulnerabilities do not return in future updates.
Features
I've implemented a comprehensive set of features to make the game engaging and competitive:
Core Gameplay
Power-ups & Abilities
I've designed 5 distinct power-ups that add strategic depth to the gameplay:
🟢 Speed Boost
🔵 Shield Protection
🟠 Magnet Power
🟣 Ghost Mode
🟡 Double Score
AI & Bots
Security & Performance
Game Mechanics
Scoring System
Power-up Spawn
Bot Intelligence
This discussion was created from the release v.1.0.5.
All reactions