Using The Mouse In Pygame - Beginner Tutorial

Опубликовано: 05 Февраль 2023
на канале: Coding With Russ
18,502
435

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: http://www.codingwithruss.com/pygame/...

Credit for thumbnail mouse image: https://www.vexels.com/vectors/previe...


На этой странице сайта вы можете посмотреть видео онлайн Using The Mouse In Pygame - Beginner Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coding With Russ 05 Февраль 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 18,502 раз и оно понравилось 435 зрителям. Приятного просмотра!