Find a file
2023-06-05 14:58:42 +02:00
public improve grid rendering 2016-10-18 16:32:34 +01:00
server Get IP from HTTP headers 2023-06-05 14:58:42 +02:00
tests add simple fuzz test 2016-03-27 20:26:53 +01:00
.gitignore prevent asteroids from spawning as wedges 2016-03-30 09:53:48 +01:00
index.js add timestamps to log 2016-03-27 12:01:39 +01:00
package-lock.json Fix port argument parsing 2023-06-05 14:18:32 +02:00
package.json change jade references to pug 2016-07-14 15:53:58 +01:00
README.md Fix README formatting 2023-06-05 13:54:04 +02:00
test.js add simple fuzz test 2016-03-27 20:26:53 +01:00
TODO Fix README formatting 2023-06-05 13:54:04 +02:00

Wingbase

Wingbase is a top-down spaceship game in which two teams of four players each compete to destroy their enemy's base while at the same time collecting resources for their own base. These resources can then be used to purchase more powerful ships upon respawn, to build defense turrets, or to research new weapons and upgrades.

The game is built in Javascript using HTML5 Canvas for client rendering, Box2D for physics, and Node.js with Socket.io for the server.

Installation

Clone the Git repository, install Node.js version 5.6.0 or higher then run npm install in the project directory.

Make sure that the command node links to this Node.js version and not nodejs.

If you have an older version of Node.js you can upgrade by running sudo npm install -g n and then sudo n latest.

Running

Run node index or npm start.

If you use npm start arguments must be preceded by -- e.g. npm start -- -p 8000.

Run node index --help or node index -h for a list of command line arguments.

Tests

To run tests, use npm test. At the moment it doesn't test very much though but it can be useful to see if a player is at least able to connect without you having to go and open a browser tab.

Controls

WASD to move.

Mouse to aim and shoot.

E/Q to change weapons.

Enter to chat.

Type /commands in chat for a list of in-game commands.