viter.io is an abandonned .io game, created by Alez and Garklein.
We have decided to make all the code public, because we think that others might find it interesting (there aren't many public code .io games).
viter.io is made with:
make sure you have the latest version of node.js installed first (see link above)
- clone the repository
- cd to the folder root
- cd server
- run
node app
- the game is now running on http://localhost:80
- this brings you to index2.html
- to try the game, go to http://localhost:80/play
These are all the files for the server.
Server hosting and packet handling.
More specific connection handling, and handling of all arrays (this is from the game.io library).
Automatically generated node modules from node.js.
The meat of the server logic.
Spawning objects and setting up the world.
Shooting, movement, and everything to do with players. Also arrays of all turrets and bodies.
These are all the files for the server.
The placeholder HTML page, for when it was only in private testing.
Used for encoding ws messages.
All game images. I won't be going in depth since the folders are self explanatory.
All client JavaScript files. They are all combined into one file on the .
JavaScript file written by us. gameio.js setup, and main loop. Handles Also handles one random packet type (setID), for some reason.
File initially taken from the gameio library. Handles game rendering, user input, game state array (all players/objects/etc you can see), and most client packet handling.