Skip to content

Another incarnation of multiplayer snake game in JS, this time in 3D!

License

Notifications You must be signed in to change notification settings

mariuszklinger/snake3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake3D Build Status

Classic Snake just became 3D and mulitplayer.

Preview:

Goals:

  • implementing logic and engine just on top of three.js
  • decoupling visual side from "backend"
  • testable API (karma, jasmine)
  • have some fun with 3D blocks

Project conventions:

js             
├───client     
│   └───visual => Classes represent 3D layer of object are prefixed "V" (VSnake, VGrid)
├───core       => Core classes used by both, server and client sides
└───server     => Connections handling, server side logic
  • Any visual object (i. e. VSnake) requires during initialization appropiate "core" object (i. e. Snake), and scene reference.
  • In the render loop (Game.animate()), all objects attached to scene is shown on VGrid.

###To run: ###

npm start

and head to http://localhost/src/

###To test: ###

npm test

About

Another incarnation of multiplayer snake game in JS, this time in 3D!

Resources

License

Stars

Watchers

Forks