Syntax: Select all
if user_cmd.buttons & PlayerButtons.ATTACK:
user_cmd.buttons &= ~PlayerButtons.ATTACK
else:
user_cmd.buttons |= PlayerButtons.ATTACK
Syntax: Select all
if user_cmd.buttons & PlayerButtons.ATTACK:
user_cmd.buttons &= ~PlayerButtons.ATTACK
else:
user_cmd.buttons |= PlayerButtons.ATTACK
I don't plan on iterating on this further at this time but progress (if any) can be followed into #491.decompile wrote:Is there any update about this?
decompile wrote:How is while ThreadPoker(): properly used in my example?
You override GameThread.run but never super'call the original. Therefore, the bear is never poked. Just create your own poker: ../listeners/tick.py#L73decompile wrote:However, when wrapping the GameThread class, the slow process is sadly back..
decompile wrote:This is huge!