Skip to content

guisehn/text-based-fps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published