guanyuxin / baogame Goto Github PK
View Code? Open in Web Editor NEW一个html5的多人游戏,后台使用node,前端canvas,使用socket通信
Home Page: http://guanyuxin.com/
License: MIT License
一个html5的多人游戏,后台使用node,前端canvas,使用socket通信
Home Page: http://guanyuxin.com/
License: MIT License
module.js:340
throw err;
^
Error: Cannot find module '../build/Debug/addon'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/games/baogame/node_modules/heapdump/lib/main.js:18:15)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
game/con.js 文件,windows 下文件名不能为con。
目前设计中的手雷有两种控制方式:
1 目前正在使用的方式,第一次按进入使用,第二次按扔出,扔出时手雷根据当前人物速度和动作获得速度
2 按住act键时进入手雷准备动作,松开时扔出手雷,根据按住的时间长短计算手雷的速度和角度(时间越短扔的越远)
lenovo@DESKTOP-J27QF63 MINGW64 ~/Desktop/baogame (master)
$ node app.js
module.js:538
throw err;
^
Error: Cannot find module '../build/Debug/addon'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\lenovo\Desktop\baogame\node_modules\heapdump
\lib\main.js:19:15)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
在梯子上,应该根据单击还是长按,判断是切换方向还是要跳下梯子,否则总感觉控制不流畅。
node版本4.2.4,有谁对node的内存泄露处理有经验,希望提供下解决的线索
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.