Skip to content

gentimouton/pygamebasics

Repository files navigation

pygamebasics

super simple pygame programs.

installation

install python

  • download Python x86-64 https://www.python.org/downloads/windows/
  • run instal exe as admin
  • check the Add python 3.6 to PATH box, and select Customize installation
  • Customize install location set it to C:\python36
  • disable PATH length limit
  • check in CLI that python starts
  • check in CLI that path includes C:\Python36

install pygame

  • in command line, pip install -U pygame
  • don't instal with --user, it places the library in ~\AppData\Roaming\Python\Python36, which is a hidden directory.
  • if you get TypeError: can only concatenate str, it's because Pygame has not kept up with Python. Install an older Python.
  • fyi pip installs into C:\python36\Lib\site-packages
  • check in CLI python -m pygame.examples.aliens
  • missing numpy? https://www.anaconda.com/download/ - don't set their python as default python

vscode setup

  • access settings via ctrl+, and check path to interpreter in python.pythonPath is c:/python36/python.exe. See link

eclipse setup

  • install for java
  • add pydev and egit (both from Liclipse) via Help > Install new software: http://update.liclipse.com/latest
  • right click > new project > pydev > configure interpreter
  • check: window > preferences > pydev > interpreters > python - check pygame is in packages below
  • shortcuts: Window > Preferences > General > Keys, switch ctrl-tab from next editor to next tab, same with previous tab
  • general > editor > text editor > show print margin, and insert spaces for tabs

more links

existing non-trivial games

tips

demo scripts

maybe useful libraries

numpy

PIL

making an executable

About

super simple pygame programs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages