Sections
Timeline
Sub-Sections
Start Page
Index
History
Last Change
Download
Plain Text
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Rules

1 point for food 5 points if a computer player rams into you 10 points if a player rams into you

Snakes can only keep moving straight, or change direction left or right

Logic

Game logic runs on 1/30 seconds per frame

Server

Host knows how many players are going to join... Host waits for each player. When a player connects - the client receives an identifier number - the client sends their name - the server sends info text on the player name and how many other players its waiting for

After all players have connected: - server sends begin download state - server selects starting positions of each players snake - server spawns some enemy snakes - server spawns some walls, food and other entities - server sends end download state - server waits for all clients to send a ready packet - changes state to the game loop

Entity Types

ET_NOTHING = 0 ET_SNAKE = 1 ET_WALL = 2 ET_FOOD = 3

To Do

half your length double your length half everyone else's length double everyone else's length teleport teleport destination

Misc

Player ID = Snake ID Enemy Snakes ID's start at 100