[Python] Which is better for keyboard input in pygame? Events or pygame.key.get_pressed()?...

Discussão em 'Python' iniciado por Stack, Junho 16, 2025.

  1. Stack

    Stack Membro Participativo

    I started out with pygame around a few weeks back, but I've read most of the documentation. I have 2 - 3 years of experience with gamedev and 4 years of programming experience in general. I wanted to know if using the pygame.key.get_pressed() function, or if using events like KEYDOWN is better. For more info, I want to make a factory + mining game and thought pygame would give me more freedom than a standard game engine.

    Continue reading...

Compartilhe esta Página