bkconrad / wasabi

MIT License
31 stars 1 forks source link

visibility groups guide example is unclear #27

Closed mreinstein closed 10 years ago

mreinstein commented 10 years ago

I am looking at http://kaen.github.io/wasabi/guide/visibility-groups.html

I noticed that the example doesn't have a Wasabi.addObject(player) call. I think leaving this out might imply that the the group.addObject(player); now makes this unneccessary. Having looked at the code I don't think this is true. Maybe add it at the end, like this?

var conn = Wasabi.addClient(socket);
var group = Wasabi.createGroup();
var player = new Player();

group.addObject(player);
conn.addGroup(group);
Wasabi.addObject(player);