Demo game made with lit
npm install
npm start
Backend logic is located in server.js
Navigate to http://localhost:3000/
Game logic is located in public/js/game.js
Press SHIFT
to change direction.
Published under MIT License.
Demo game made with lit
Demo game made with lit
npm install
npm start
Backend logic is located in server.js
Navigate to http://localhost:3000/
Game logic is located in public/js/game.js
Press SHIFT
to change direction.
Published under MIT License.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.