guisehn / text-based-fps

Text-based FPS game made with node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text-based FPS

Text-based FPS node.js experiment made by Guilherme Sehn using socket.io.

Original game and map made by Eigen Lenk.

You can find the old version made in 2013 here on the old branch.

How to install

  • yarn install
  • node index.js

There's an instance of the game running here.

Deploy to Heroku

Editing the map

The game map is generated from the plain text file map.txt where:

  • # represent the walls
  • N, S, W, E represent the respawn positions where the letters mean the player initial direction (north, south, west or east)

The engine automatically ignores empty lines at the start and end of the map, and also empty spaces after the last wall of the line. You can add a . character to circumvent that if you really mean to have those empty spaces.

Running tests

yarn test

About

Text-based FPS game made with node.js

License:MIT License


Languages

Language:JavaScript 95.4%Language:HTML 2.7%Language:CSS 1.9%