News for hackers. Stuff that matters.
Re:Old school RPG style map in HTML5 canvas using websockets. by revoltingx on Wednesday October 06, 2010 @05:00PM (#1765830)
Should be fairly straightforward. Simply 'save' the last time this user has posted a message. Then the next time they attempt to post a message check if the alloted time has passed and process accordingly.

I see you are using dict, so just add a record with that info and you should be set.

Re:Old school RPG style map in HTML5 canvas using websockets. by JimmyRuska on Wednesday October 06, 2010 @07:24PM (#1766264)
I do do that. "LastMessage" var of the tuple in the dict. It's not enough if they make multiple windows all spamming in a loop. Some of the messages get through
Re:Old school RPG style map in HTML5 canvas using websockets. by revoltingx on Thursday October 07, 2010 @02:14AM (#1767007)
Ah ok, perhaps if you add microsecond information?