if len(self.players) == 3: # need to also check if they all entered their nameself.game.start()
--
You received this message because you are subscribed to the Google Groups "PodSixNet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to podsixnet+...@googlegroups.com.
To post to this group, send email to pods...@googlegroups.com.
Visit this group at http://groups.google.com/group/podsixnet.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "PodSixNet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/podsixnet/mcas6-tLrLQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to podsixnet+...@googlegroups.com.
myserver = MyServer()
while True: # loop forever
myserver.Pump() # listen and process messages
sleep(1/10) # 10 frames per second
The sleep is a bad practice (you should be polling instead of being idle), but you get the idea. If you want the server to do something when 3 players are in, do something like that:myserver = MyServer()
while True: # loop forever
if len(myserver.players) == 3:
myserver.start()
myserver.Pump() # listen and process messages
sleep(1/10) # 10 frames per second
Does that answer your question?
Incidentally, I should really push PodSixNet hosting up to github and
make a proper Python setup script etc. if people are still using it. I
will try to look into doing that soon.
If someone is interested in taking over general maintenance of this
library let me know.
Cheers,
Chris.
--
http://mccormick.cx/