Socket snake is a project which is based on NodeJS and socket.io The goal of the project was a snake game where you can control the snake via swipe gestures on you mobile phone.
After starting the Node-Server the server can detect whether a smartphone or a desktop browser connects to the server. A desktop browser gets the page where the playground is and a smartphone gets a surface which recognizes swipe events. The desktop browser gets an individual room number which you can type in the input field on you smartphone. After connecting you can press "Start" on you phone and the fun begins.
- people can join one room to play against each other.
- NodeJS
- ExpressJS
- socket.io
- jQuery
- grunt
- sweetalert
You can use Speech Recognition on all Browser which supports is. After starting the Node Server you can go to http://localhost:1337/voice
Press Start and you can control the snake by saying "top", "left", "right", "down"
You need Node Package Manager installed : https://www.npmjs.com/
$ git clone https://github.com/xMarkusSpringerx/socket-snake socket-snake
$ cd socket-snake
$ npm install
$ node server.js
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
Copyright (C) 2004 Sam Hocevar 14 rue de Plaisance, 75014 Paris, France Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- You just DO WHAT THE FUCK YOU WANT TO.
Free Software, Hell Yeah!