Answer the question
In order to leave comments, you need to log in
How does pygame see the mouse?
There is a 2D shooter on pygame, you need to shoot by pressing the left mouse button
. With the keyboard, I do this:
keys = pg.key.get_pressed()
if keys[pg.K_w]:
y += spd
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question