

| Pygame 0.1| => |Oct 28, 2000| A simple 'game'Įvery module needs to be imported and pygame is no exception. New project setup windowĬreate a new Python file by right-clicking (control-click if you only have one button) on the cs1110 folder in the Project pane on the left side of the window, then pick New → Python File New file menu OS X: /Users/ your-user-name-on-your-computer /Desktop/cs1110Įxpand the “Project Interpreter” with the little triangle and pick the “Existing Interpreter” option, with Python 3.6 as the interpreter.Windows: C:\Users\ your-user-name-on-your-computer \Desktop\cs1110.Set the Location to some place you can find in your OS’s file browser suggested: Wait until an “installation successful” message appearsĬlick “Apply” and “OK” in each window until back in the welcome screen Welcome screen In the pop-up window, type pygame in the search bar, select “Pygame” in the left-hand list, and click “Install Package” PyGame installation

Project interpreter selectionĬlick the green + either to the top right or bottom left of the list of packages Project interpreter options In the drop-down, pick python3.6 if it is present if not, click the “…” button and find where you installed Python.
#Install sdl for pygame mac mac#
If you are using a system other than Windows or Mac (Linux, FreeBSD, Haiku, etc.), first off, good for you! In general, installing Python, PyGame, and P圜harm is pretty straightforward on these systems (download the Linux version of P圜harm even if you are using a BSD or the like), but if you have trouble post what system you are using on Piazza and we’ll help get you set up.

#Install sdl for pygame mac install#
In the Finder, open /Applications → Python 3.6 and double-click on the icon for Install mand

In the terminal window, paste the following commands in one at a time and run them individually: Open a Terminal window ( /Applications → Utilities → Terminal). Set up P圜harm and PyGame see the cross-platform information below.ĭownload the dmg disk image from .ĭrag the icon to the Applications folder. If asked, check “Create associations” - “.py” leave all other options at their default values. Install P圜harm Community Edition 2017.3.2:ĭownload the executable installer from. If asked, check “Add Python to environment variables” and “Install for all users” leave all other options at their default values. So, if you have any doubts, come on down to lab, meet some of the TAs, and make sure you’re laptop is setup and ready to go! 1 Installing 1.1 on Windowsĭownload the executable x86-64 installer from. If you do not come to lab, we will assume you have taken care of this yourself and you are ready to go when we start coding in lecture next week. However, this is an opportunity to come to ensure that you have Python, P圜harm, and PyGame installed and working properly on your laptops. Lab this week is optional in that we will not be taking roll. This page does not represent the most current semester of this course it is present merely as an archive.
