BigSteve/PyGame
2024-06-19 12:38:28 -04:00
..
Basics add sprite demo 2024-06-19 12:38:28 -04:00
Calculator Getting started on addition 2024-06-07 13:46:32 -04:00
dieproj Menu Pracitce commit pymenu 2024-06-14 17:37:24 -04:00
FailBoard Add a simple soundboard PyGame example 2024-06-11 13:38:13 -04:00
practice New Web scrap Proj 2024-06-19 12:35:53 -04:00
README.md Include instructions about creating/using .ico files 2024-06-13 16:56:58 -04:00

PyGame Python Examples

This folder contains simple examples of using PyGame in Python to create simple UI tools or "game like" programs.

Prerequesits

  • All of these projects require the PyGame module.
  • In order to create stand alone executables the pyinstaller module is required.
  • The pillow module may be used by pyinstaller, and is quite the handy image manipulation library.

Inside a terminal:

pip install pygame pyinstaller pillow

PyInstaller

Any programs set up to be able to use PyInstaller can be built to an EXE file using the provided .spec file. DO NOT use pyinstaller on a .py file directly unless you are creating a new .spec file. Doing so will overwrite the existing file.

Syntax:

pyinstaller MyFile.spec

This will create two folders named Build/ and Dist/. The .EXE file will be created inside the Dist/ folder. The executable can be moved anywhere on the system and does not need Python to be installed in order to work.

WARNING NOTE: If an icon is to be used for the created executable it is HIGHLY recommended to use an icon converter to create a singular .ico file that contains all icon resolutions inside it. An online tool such as ICOConvert or RedKetchup IconConverter can be used to convert a higher resolution image into a multi-resolution .ico file.