mbsky / herbert-utils Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/herbert-utils
Automatically exported from code.google.com/p/herbert-utils
参考白蛇的处理方式
Original issue reported on code.google.com by [email protected]
on 29 Jul 2012 at 1:39
添加事件框架
Original issue reported on code.google.com by [email protected]
on 16 Apr 2012 at 5:39
1.聊天客户端
2.A*寻路算法
3.UI框架集成
4.RPG地图的算法,四叉树等
Original issue reported on code.google.com by [email protected]
on 1 Apr 2012 at 3:28
在白蛇的项目,所有场景地图下的怪物轮询,往往要花很久��
�时间,这个地方可以做一下优化,可以讲尚未激活的怪物,�
��于游走状态的怪物,独立出来,不放在场景轮询里,这样可
以让这批怪物占用比较少的CPU时间。
具体方法是,单独的一个线程来处理这些怪物,更新他们的状态,包括停止,巡逻等,怪物刚创建的时候,由这个线程来管理,1s一次更新怪物的状态,如果有移动的话,广播位置信息。然后怪物AI的激活,由玩家进行,玩家的AOI中出现怪物,因为某种原因,例如靠近主动怪,则激活这些怪物的AI,将其中单独线程中移除,加入场景轮训中来。即怪物AI的触发由玩家来进行。
Original issue reported on code.google.com by [email protected]
on 2 Aug 2012 at 3:11
desc
Original issue reported on code.google.com by [email protected]
on 29 Jul 2012 at 4:12
@see:参考云风的blog http://blog.codingnow.com/2012/03/dev_note_12.html
Original issue reported on code.google.com by [email protected]
on 29 Jul 2012 at 1:38
适合手机等移动设备上使用的server,一次性socket连接,jlion框
架支持这个机制。
Original issue reported on code.google.com by [email protected]
on 11 Jan 2013 at 3:52
在程序中中增加一个hook,jvm退出时会执行hook中的代码
Runtime.getRuntime().addShutdownHook(Thread);
kill -15 (SIGTERM)能够执行hook中代码
kill -9 (SIGKILL) 不能够执行hook中代码
sample:
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
_server.stop();
System.exit(0);
}
});
Original issue reported on code.google.com by [email protected]
on 11 Apr 2012 at 2:33
Attachments:
需要添加的模块有:
背包,装备,商城,排行,邮件,好友,公会
Original issue reported on code.google.com by [email protected]
on 1 Apr 2012 at 3:27
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.