Pause A Game - PyGame Thursdays 15

preview_player
Показать описание
In this video we'll learn how to pause our game for PyGame and Python.

Inside of our Game class, we'll build a function to pause our game.

We'll call it from the Update function whenever a user presses the 'p' key on the keyboard.

#pygame #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:00 - Press P for Pause
1:55 - Create pause_Game() Function
2:43 - Pause While Loop
5:04 - Quit During Pause
6:24 - Global Running
8:00 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch PyGame Playlist ✅ Subscribe To My YouTube Channel:
▶ See More At: ✅ Join My Facebook Group:
▶ Get The Code

Codemycom
Автор

I love your stuff John Elder, it really helps me understand

DudeChego
Автор

you explain so well, my favorite code youtuber by far

erosgrokes
Автор

How would i make the escape pause and unpause? Like say i were to pause the game and unpause it in a second but instead of using the return key you could just press the same button.

AryAgni-AryA
Автор

in my game user can choose out of 3 maps and the game they play will run on the map they choose.but it doesnt work.please help

pranavramniclal
Автор

Hey John! Long time since i saw this channel (i wonder why cause i've been subscribed to you since covid) it's kinda sad to see such a decline in viewership. Hope this changes soon.
Thank you for teaching me kivy!

aditya_asundi
Автор

Hi John, Thanks for the awesome Python and NumPy tutorials! I'm aiming for a career in Machine Learning, but confused about the role of math. Some say it's essential, others say not so much. Any advice on navigating this? Bonus points for math resource recommendations!

Hamzaashfaq