Node server layout - mattzhao92/Planet-Blitz GitHub Wiki

  • The server is a pure js file 'gameserver.js' in the project folder
  • All js related to network and server are put in 'server/public/', and this folder is put into the search path of the server
  • Now, the game portal page is put in 'server/views/', the index.jade is a jade template file to render the game page, which is now an iframe inside the page. The iframe refers to the 'portal.html', which is the game page. Now it's a hard copy of 'first-demo/simple-grid.html'
  • All css files for these pages are in 'css/'