Uploaded July 2020 | Updated November 2026, 2 days 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




![I Made a Game in 14 Hours with Python [Timelapse]
I made a game using Python and Pygame within the 48 hour time limit of the 14th Alakajam with the theme Fungi. I only spent about 14 hours working on the game, but Im really happy with how it turned out. Get the game (+ source code) here:
https://dafluffypotato.itch.io/gleamshroom
Music:
OneShot - 11th Hour Remix [Kamex]
https://youtu.be/9l18mhr5HNM
Patreon: https://www.patreon.com/dafluffypotato
My Discord Server: https://discord.gg/9Qt2GxF
Potato Tier Patrons:
Agent Effe
Chris Birster
Dale Topley
Eivind Teig
GaryTMSFruitcake
MiggyDoes
kirat=1
Vasia Bogoradov
#gamedev #python #pygame I Made a Game in 14 Hours with Python [Timelapse]](https://i.ytimg.com/vi/wi1S-N2bC10/mqdefault.jpg)





