DaFluffyPotato | Mouse Input - Pygame Tutorial @DaFluffyPotato | Uploaded July 2020 | Updated October 2024, 12 minutes ago.
Somehow I went all this time without making a video on how to get mouse input in Pygame, so here it is! Mouse input is very useful for a variety of games.
Code Written in Video:
pastebin.com/7ndjJrM2
Relevant Documentation:
pygame.org/docs/ref/mouse.html
Devlog Playlist:
youtube.com/playlist?list=PLX5fBCkxJmm1F3PofHWCGNH6se7QO7L3d
Discord:
discord.gg/9Qt2GxF
Twitter:
twitter.com/DaFluffyPotato
Watch ep. 1 & 2 if you don't understand the base code:
youtube.com/playlist?list=PLX5fBCkxJmm3nAalPU6gGfRIFLlghRuYy
Outro Music is Pancakes by AdhesiveWombat
soundcloud.com/adhesivewombat
This video and the code produced in it are released under: CC0 1.0 Universal (CC0 1.0). This puts the video and code produced in it in the public domain, so use it for whatever you want.
#pygame #python #gamedevelopment
Somehow I went all this time without making a video on how to get mouse input in Pygame, so here it is! Mouse input is very useful for a variety of games.
Code Written in Video:
pastebin.com/7ndjJrM2
Relevant Documentation:
pygame.org/docs/ref/mouse.html
Devlog Playlist:
youtube.com/playlist?list=PLX5fBCkxJmm1F3PofHWCGNH6se7QO7L3d
Discord:
discord.gg/9Qt2GxF
Twitter:
twitter.com/DaFluffyPotato
Watch ep. 1 & 2 if you don't understand the base code:
youtube.com/playlist?list=PLX5fBCkxJmm3nAalPU6gGfRIFLlghRuYy
Outro Music is Pancakes by AdhesiveWombat
soundcloud.com/adhesivewombat
This video and the code produced in it are released under: CC0 1.0 Universal (CC0 1.0). This puts the video and code produced in it in the public domain, so use it for whatever you want.
#pygame #python #gamedevelopment