Hexanaut — Github
PORT=3000 MAP_WIDTH=40 MAP_HEIGHT=40 WIN_PERCENT=70 SNAKE_SPEED=12 MAX_PLAYERS=20 npm run dev Open your browser to http://localhost:3000 . You should see the hex grid. Now invite your friends by sharing your local IP (e.g., 192.168.1.5:3000 ). Advanced: Forking and Modifying the Game Logic The real power of hexanaut github lies in modification. Let’s look at three simple code changes you can make in most open-source clones. Mod 1: Changing the Speed (The "Flash" Mode) Find the game.js file. Look for a variable called PLAYER_SPEED .
Result: Your triangle zips across the map, making catching others extremely difficult but capturing tiles very fast. In the standard game, respawning leaves you vulnerable. To change this, look for the onRespawn event.
git clone [URL] cd hexanaut-server Most Hexanaut clones use express for HTTP and socket.io for WebSockets. hexanaut github
In the vast ecosystem of online multiplayer .io games, few have captured the blend of strategic territory control and high-octane risk-versus-reward like Hexanaut.io . The premise is simple: glide across a honeycomb grid, capture tiles, expand your domain, and slice through opponents to survive. However, for the dedicated enthusiast, the official browser version only scratches the surface.
// Original const PLAYER_SPEED = 8; // Modified (Super fast) const PLAYER_SPEED = 20; Advanced: Forking and Modifying the Game Logic The
A full, self-contained Node.js server that mimics the official Hexanaut backend. Because the original game is proprietary, this is a "clean room" implementation that replicates the game logic from scratch.
// Add a 3-second shield player.invincible = true; setTimeout(() => { player.invincible = false; }, 3000); In official Hexanaut, your tail is a weak point. Some modded repos allow you to toggle "safe tails." Look for a variable called PLAYER_SPEED
npm install Create a .env file to tweak game parameters: