Giter Site home page Giter Site logo

lit-demo's Introduction

lit: demo

Demo game made with lit

Server

npm install
npm start

Backend logic is located in server.js

Client

Navigate to http://localhost:3000/

Game logic is located in public/js/game.js

Gameplay

Press SHIFT to change direction.

License

Published under MIT License.

lit-demo's People

Contributors

huytd avatar

Stargazers

rm avatar May Sam avatar netop://ウエハ avatar creaDOit avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

lit-demo's Issues

npm errors

C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master>npm install
npm WARN package.json [email protected] No repository field.
[email protected] node_modules\express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], http-error
[email protected])

[email protected] node_modules\engine.io
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], base64-arraybu
[email protected], [email protected], [email protected], [email protected])

C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master>npm start

[email protected] start C:\Users\xxx\Downloads\lit-demo-master\lit-demo-maste
r
node main.js

Server is listening on port 3000
Client Jq90d-Jc_rdco4S9AAAA connected!
Total: 1
C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master\clients.js:30
global.SOCKET_CLIENTS[id].send(Buffer.from(JSON.stringify({ event: e
ventName, message: data })));
^

TypeError: this is not a typed array.
at Function.from (native)
at Object.emit (C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master\clie
nts.js:30:51)
at Object.connection (C:\Users\xxx\Downloads\lit-demo-master\lit-demo-maste
r\game\server.js:93:16)
at Server. (C:\Users\xxx\Downloads\lit-demo-master\lit-demo-mast
er\main.js:18:9)
at emitOne (events.js:77:13)
at Server.emit (events.js:169:7)
at Server.handshake (C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master
\node_modules\engine.io\lib\server.js:312:8)
at C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master\node_modules\engi
ne.io\lib\server.js:216:12
at Server.verify (C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master\no
de_modules\engine.io\lib\server.js:156:36)
at Server.handleRequest (C:\Users\xxx\Downloads\lit-demo-master\lit-demo-ma
ster\node_modules\engine.io\lib\server.js:206:8)

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node main.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node main.js'.
npm ERR! This is most likely a problem with the lit-js-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs lit-js-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls lit-js-demo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\xxx\Downloads\lit-demo-master\lit-demo-master\npm-debug.l
og

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.