rubenochiavone / snacraft-client

:snake: :joystick: | This project is the client side source from Snacraft game. This game is a classical snake multiplayer game.

Home Page:http://snacraft.appspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snacraft Client

License: Apache-2.0 contributions welcome

This project is the client side source from Snacraft game. This game is a classical snake multiplayer game. It is available in the web and Google Play.

Dependencies

  • npm
  • python
  • google-cloud-sdk [optional]

Install NPM dependencies

After installing npm, install dependencies:

npm install

Running locally

Using google-cloud-sdk

dev_appserver.py dev-app.yaml --admin_port 9090

This command starts development server at localhost:8080.

Using python

It is also possible to use any other http server.

python3 -m http.server

Open the localhost URL with parameter server, for example:

http://localhost:8000?server=secret-reaches-61045.herokuapp.com

Deployment

Generate distribution files

npm run build

This command generates distribution files at dist folder.

Deploy to App Engine

gcloud app deploy app.yaml --project <PROJECT_ID>

Pictures

About

:snake: :joystick: | This project is the client side source from Snacraft game. This game is a classical snake multiplayer game.

http://snacraft.appspot.com/

License:Other


Languages

Language:JavaScript 67.4%Language:HTML 19.7%Language:CSS 11.4%Language:Python 1.5%