[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Fwd: Soc Simple Networking



Quick edit to get my tabbing proper sorted:

if world.PLAYBACK:
                        uve_set = unpackVectorEvent(ticks)
                        if uve_set != None:
                          for uve in uve_set:
                            if uve == 'QUIT':
                                running = 0
                            elif uve == 'KEYDOWN_LEFT':
                                world.ego.startLeft()
                           
                              <-- snip -->

                            elif uve == 'KEYUP_ACTION_3':
                                    world.ego.stopAction(3)
else:
                      for event in pygame.event.get():
                        if event.type == QUIT:
                            if world.RECORD: vectorEvent(ticks, "QUIT")
                            running = 0
                       
                        elif event.type == KEYDOWN:
                           
                            if event.key == profile.keyMap[0]:
                                if world.RECORD: vectorEvent(ticks, "QUIT")
                                running = 0

                              <-- snip -->

                            elif event.key == profile.keyMap[11]:
                                edit.mode = 1
                                edit.indicator.initialize_editing()
                               
                        elif event.type == KEYUP:           
                            if event.key == profile.keyMap[1]:
                                if world.RECORD: vectorEvent(ticks, "KEYUP_LEFT")
                                world.ego.stopLeft()
                           
                                 <-- snip -->

                            elif event.key == profile.keyMap[8]:
                                if world.RECORD: vectorEvent(ticks, "KEYUP_ACTION_3")
                                world.ego.stopAction (3)



--
Andrew Ulysses Baker
"failrate"