Giter VIP home page Giter VIP logo

baogame's Introduction

demo

在线游戏

访问: http://guanyuxin.com/

由于官方服务器带宽和延迟较大,想玩的同学可以通过搭建私服在局域网中和好朋友一起玩。搭建私服方法在末尾给出。
2016-01-17修改了手雷的控制方式:按住act扔出,按住的时间越久,扔的越远,扔出后一段时间爆炸;蹲下时扔出的手雷会贴着地滚。

--

游戏简介

游戏目标:

把其他人推下水
使用道具消灭其他人
have fun

加入:

通过浏览器打开后可以查看目前的游戏状态,选择加入后可以进行游戏

加入前给自己起个有个性的名字吧

自己的角色顶部有黄色名称,敌人角色顶部有红色名称

移动碰撞:

wasd控制移动,当玩家处于平台上时,w为跳跃,d为下蹲;当玩家处于梯子附近时(头顶出现上下箭头),w,d为爬梯子上下

** 手机上使用虚拟按键控制 **

两个玩家接触后会产生碰撞,将两个玩家弹开,使用这个机制把敌人推下平台吧

通常情况下,两个玩家碰撞时,跳起或者蹲下的一方会有优势

道具:

游戏中有紫色的能量球,玩家吃到后会产生各种能力或者效果,有些道具的效果能力强大,好好使用他们。详情在道具部分介绍。

demo

道具

毒药:

drug

大部分道具是强大而有益的,但是看到毒药你还是离他远一些为好,他会让吃到他的玩家立即死亡

手枪:

drug

按q向面前发射一颗子弹,消灭任何敢于正面对抗你的敌人,注意:只有三发子弹,请节约使用。无法消灭下蹲或者跳起的敌人

无敌:

drug

并不是真正的无敌,但是会让你直接消灭所有敢于触碰你的敌人,并且他们无法给你造成碰撞

隐身:

drug

使用后慢慢从你的敌人视野里面消失,谁能和看不见的敌人战斗呢?

惊喜:

drug

surprise !

喷气背包:

drug

跳的不够高?干嘛不飞呢!跳起后再次按w进入飞行模式,让那些只会蹦跶的人羡慕吧。等等,好像没油了...

手雷:

drug

按住act扔出,按住的时间越久,扔的越远,扔出后一段时间爆炸;蹲下时扔出的手雷会贴着地滚。手雷扔出的速度受角色影响,所以跑动时手雷速度更快,跳起时仍的更高

--

demo

搭建私服方法--通过npm [稳定版]

1.安装node4.2.4(或者以上版本)和npm

**如果安装出现问题请尝试将node升级至最新版本

2.shell中执行以下代码:

npm install fuzion-game &&
cd node_modules/fuzion-game/ &&
node app.js

3.打开http://localhost:8030 就可以开始玩了

4.把localhost替换成你的域名或者ip,然后分享给你的朋友,一起玩吧

--

搭建私服方法--使用github [最新版]

将上面方法的第二部替换为:

git clone https://github.com/guanyuxin/baogame
cd baogame
npm install
node app.js

--

服务器管理

#启动参数:
node app.js [port=端口,默认8030] [code=管理员口令,默认admin] [room=房间数目,默认1]

http://localhost:port/admin 可以进入管理界面,需要localStorage中设置code=管理员口令,然后可以创建物品或者封禁用户ip

baogame's People

Contributors

bryant1410 avatar guanyuxin avatar sumrise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

baogame's Issues

搭建失败

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)

在梯子上的控制问题

在梯子上,应该根据单击还是长按,判断是切换方向还是要跳下梯子,否则总感觉控制不流畅。

搭建时出现了如下问题?

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)

手雷的控制方式

目前设计中的手雷有两种控制方式:
1 目前正在使用的方式,第一次按进入使用,第二次按扔出,扔出时手雷根据当前人物速度和动作获得速度

2 按住act键时进入手雷准备动作,松开时扔出手雷,根据按住的时间长短计算手雷的速度和角度(时间越短扔的越远)

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.