Skip to content

xMarkusSpringerx/socket-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket Snake

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.

How does this work?

Alt Text

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.

Future

  • people can join one room to play against each other.

Used Technology

  • NodeJS
  • ExpressJS
  • socket.io
  • jQuery
  • grunt
  • sweetalert

Features

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"

Installation

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

License

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

  1. You just DO WHAT THE FUCK YOU WANT TO.

Free Software, Hell Yeah!

About

A Web-Socket based snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published