Using The Mouse In Pygame - Beginner Tutorial

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • In this video I will explain how to get mouse inputs from the player in pygame.
    I'll show the two methods for doing this, which are the event handler as well as using the mouse.get_clicked() function to check the state of the mouse buttons. I'll show examples of each method and discuss the pros and cons.
    Additionally I'll explain how to work out the mouse coordinates on the screen using the mouse.get_pos() function.
    Take a look at the tutorial on my website for a reference on working with mouse input here: www.codingwithr...
    Credit for thumbnail mouse image: www.vexels.com...

Комментарии • 18