PyGame Custom Event

后端 未结 3 1072
萌比男神i
萌比男神i 2020-12-30 10:55

I want to ask about the use of custom events in pygame ..
I experimented a little with pygame, so I know how usual pygame-generated events works ..
My Question

3条回答
  •  抹茶落季
    2020-12-30 11:45

    Event is send only when you use pgame.event.post(my_event)
    If you post it only once then you get it only once.

    Class Player could post event I'm dead and mainloop would end the game.

提交回复
热议问题