How to make an executable of your pygame game for Windows using PyInstaller
Автор: DesignCodeDebugRepeat
Загружено: 2024-11-22
Просмотров: 921
It's wonderful to be able to make a game in pygame, but you're not going to make all of your players download and install Python, pygame, and any other libraries you used in order to play it! You want to make an executable of your game that you can distribute. In this video, I show you how to do that, covering some of the errors I encountered along the way and how to avoid them.
This channel is suitable for beginners or experienced programmers who want to learn Python, pygame, Java, R, and general programming concepts. It is also suitable for instructors teaching programming. Let's have some fun making a Python/pygame executable!
At the beginning of this video I show four prior videos in which I develop games:
A Turing machine puzzle with pygame-gui:
• A Turing machine puzzle for Pride! Make a...
Rotation in pygame with Vector2 vs. Arctan2:
• Rotating an image around its center with a...
How to control a pygame program with a micro:bit:
• How to control a pygame program with a mic...
Rotation and rotation controls for the tangram program:
• Fixing the rotation control and a reusable...
This is my Objects and Games with Python book, for a thorough introduction to object-oriented game programming with Python and pygame:
ebook:
https://www.amazon.com/dp/B0B3V93YG9
textbook:
https://www.barnesandnoble.com/w/obje...
If you're interested in an introductory Python book, my book Problem Solving with Python is here:
ebook:
https://amzn.to/3oiWwOb
textbook:
https://www.barnesandnoble.com/w/prob...
The github repository with the code examples from this video is here:
https://github.com/ProfessorBurke/Pyt...
If you want to earn credit for learning to code, take an online course at CCRI!
https://ccri.edu/comp/
Attributions:
Mac logo retrieved from:
https://upload.wikimedia.org/wikipedi...
Attribution:
ZyMOS, for the Open Icon Library, Public domain, via Wikimedia Commons
Linux logo retrieved from:
https://upload.wikimedia.org/wikipedi...
Attribution:
TproOficial, CC BY-SA 4.0 https://creativecommons.org/licenses/..., via Wikimedia Commons
Windows logo retrieved from:
https://upload.wikimedia.org/wikipedi...
Attribution:
Codename Lisa, Public domain, via Wikimedia Commons
PyInstaller documentation
https://pyinstaller.org/en/stable/ind...
Where I got IcoFX
http://www.oldversion.com/windows/ico...
PyInstaller icon copied from the PyInstaller website
Pygame logo retrieved from:
https://commons.wikimedia.org/wiki/Fi...
Attribution:
TheCorruptor/pygame developers, LGPL http://www.gnu.org/licenses/lgpl.html, via Wikimedia Commons
Python logo retrieved from:
https://commons.wikimedia.org/wiki/Fi...
Attribution:
www.python.org, GPL http://www.gnu.org/licenses/gpl.html, via Wikimedia Commons
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: