to run the demo, just put a copy of impact in the lib folder and start the server ("node impactConnectServer.js")
in case of several security restrictions, you have to start a webserver and open the index.html via http://localhost/impactConnect/
short infos and explanations
socket.io removes all prototypes from classes and objects for no reason (or i just dont know the reason), so im sending strings and use eval on client side (in spawning entities and moving function).
example for moving animation:
var newAnim = "ent.anims."+data.remoteAnim;
ent.currentAnim = eval(newAnim);
reconnecting does not work for now
extended main.js by "getEntityByRemoteId"
if you want to run it not on localhost, you have to change the server in 2 files:
index.html:
请发表评论