[Tutor] My Game-in-progress
Glen Wheeler
wheelege@tsn.cc
Wed, 1 Nov 2000 20:35:59 +1100
This is a multi-part message in MIME format.
------=_NextPart_000_0096_01C04443.57C50080
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey all.
I've run into a snag with my game I'm making. Basically, the way it =
knows time has passes is through a loop. The problem is, that for =
debugging purposes I made it print the iteration it was going through, =
and when I remove the print option the game goes too fast.
So I thought I'd use the sleep function in the time module. This was =
a loss however, it would do all the iterations in the loop and all the =
sleeps before it actually DREW anything on the canvas (gotta use a =
canvas).
The thing I'm really asking for is a Python command which will make =
pythoin pause for a little bit (the times allowed in sleep were fine) =
but doesn't produce a nasty side effect like sleep does. If you need to =
see the code I will post it.
Thanks,
Glen.
------=_NextPart_000_0096_01C04443.57C50080
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV> Hey all.</DIV>
<DIV> </DIV>
<DIV> I've run into a snag with my game I'm making. =
Basically, the=20
way it knows time has passes is through a loop. The problem is, =
that for=20
debugging purposes I made it print the iteration it was going through, =
and when=20
I remove the print option the game goes too fast.</DIV>
<DIV> So I thought I'd use the sleep function in the time =
module. =20
This was a loss however, it would do all the iterations in the loop and =
all the=20
sleeps before it actually DREW anything on the canvas (gotta use a=20
canvas).</DIV>
<DIV> The thing I'm really asking for is a Python command which =
will make=20
pythoin pause for a little bit (the times allowed in sleep were fine) =
but=20
doesn't produce a nasty side effect like sleep does. If you need =
to see=20
the code I will post it.</DIV>
<DIV> </DIV>
<DIV> Thanks,</DIV>
<DIV> Glen.</DIV></BODY></HTML>
------=_NextPart_000_0096_01C04443.57C50080--