Index
A
- advanced background setting options
B
- backpack game
- programming / Planning to program your game
- guesses, comparing / Comparing guesses with backpack items
- score, keeping / Keeping score
- ending / Ending the game
- testing / Testing your game
- ball
- about / Ball – the starting location
- speed, setting / Ball – setting the speed and direction
- direction, setting / Ball – setting the speed and direction
- size, setting / Ball – setting the size
- moving / Section 3 – moving the ball
- location, updating / Moving the ball – updating the location
- collision detection / Collision detection
- boolean
- about / What is a Boolean?
- built-in functions
- int() / Built-in functions
- float() / Built-in functions
- raw_input() / Built-in functions
- str() / Built-in functions
- help() / Built-in functions
C
- calculator
- defining / The calculator
- reference / The calculator
- classes
- code
- experimenting with / Going the extra mile
- testing / Testing your code so far
- coding challenges
- about / Coding challenges
- online references / Coding challenges
- coding environment, backpack game
- setting up / Setting up our coding environment
- collision detection
- about / Collision detection
- ball, colliding with top and bottom of screen / Collision of the ball with the top and the bottom of the screen
- paddle, colliding with top and bottom of screen / Collision of the paddle with the top and the bottom of screen
- paddle, colliding with ball / Collision of the ball with the paddles
- color
- defining / Defining a color
- command line
- command prompt
- about / Command prompt
- comparison operators
- about / Is it equal, not equal, or something else?
- less than / Is it equal, not equal, or something else?
- less than or equal to / Is it equal, not equal, or something else?
- greater than / Is it equal, not equal, or something else?
- not equal to / Is it equal, not equal, or something else?
- greater than or equal to / Is it equal, not equal, or something else?
- equal to / Is it equal, not equal, or something else?
- computer setup, for Python 2.7
- about / Python 2.7
- Terminal / Terminal – the command line and the Python shell
- Python shell / Terminal – the command line and the Python shell
- text editor / Text editor
- computer setup, for Windows users
- about / For Windows users
- command prompt / Command prompt
- text editor / Text editor
- conditional statements
- about / Conditional statements – if, elif, else
- if statement / Conditional statements – if, elif, else, if
- else statement / Conditional statements – if, elif, else, else
- elif statement / Conditional statements – if, elif, else, elif
- user input, improving / Getting better input
D
- dictionaries
- about / Dictionaries
- key / Key/value pairs in dictionaries
- values / Key/value pairs in dictionaries
- information, modifying / Changing the dictionary – adding and removing information
- information, adding / Changing the dictionary – adding and removing information
- information, removing / Changing the dictionary – adding and removing information
- methods, URL / Changing the dictionary – adding and removing information
- items, adding / Adding items to the dictionary
- existing item value, changing / Changing the value of an existing item
- items, removing / Removing items from the dictionary
- selecting / List or dictionary
- division
- drawings
E
- easy version, Higher or Lower game
- building / Building the easy version
- numbers, comparing / Compare numbers
- play_again() function / play_again()
- elif statement
- else statement
F
- first program
- writing, in command line / Write and run your first program in the command line
- running, in command line / Write and run your first program in the command line
- for loop
- about / for
- count_to_ten() function / Bonus – count_to_ten() function
- frame / Introduction to game programming principles
- frame rate / Introduction to game programming principles
- functions
- about / Functions
- built-in functions / Built-in functions
- parts / Parts of a function
- defining / Basic functions
G
- game loop
- about / A game loop
- game programming principles
- games
- exploring / More fun with games
- music, adding / Adding music to games
- graphics, adding / Adding graphics to games
- remaking / Remake or design games
- designing / Remake or design games
- about / Other games
- PB-Ball / PB-Ball
- snake game / Snake
- globals
H
- hard version, Higher or Lower game
- building / Building the hard version
- numbers, comparing / Comparing numbers – the hard version
- play testing / Play test the whole program!
- Higher or Lower game
- about / Higher or Lower
- file set up / Game file set up
- libraries, importing / Importing libraries
- global variables, setting / Setting and initializing global variables
- global variables, initializing / Setting and initializing global variables
- boolean / What is a Boolean?
- easy version, building / Building the easy version
- helper functions / Start, stop, play again
- start_game() function / start_game()
- play_again() function / play_again()
- play testing / Play testing
- hard version, building / Building the hard version
- Homebrew
- installing / Installing Homebrew
- programs, installing with / Installing programs with homebrew
I
- IDLE
- about / iPython
- if statement
- iPython
- items
- adding, to list / Adding items to the list
- removing, from list / Removing items from the list
- adding, to virtual backpack / Adding items to the virtual backpack
- limiting, in virtual backpack / Limiting items in a virtual backpack
- iteration / Lists and loops
J
- jEdit
- about / Text editor
- download link / Text editor
K
- keyboard key
- reference link / Moving the paddles – keyboard events
- keys / Key/value pairs in dictionaries
L
- libraries
- importing / Importing libraries
- lists
- about / Lists
- reference link / Lists
- components / Parts of a list
- working with / Working with a list
- information, adding / Changing the list – adding and removing information
- modifying / Changing the list – adding and removing information
- items, adding / Adding items to the list
- items, removing / Removing items from the list
- using, with loops / Lists and loops
- selecting / List or dictionary
- examples / List or dictionary
- loops
- about / Loops
- while loop / while
- for loop / for
- using, with lists / Lists and loops
M
- Mac
- pygame, installing / Installing pygame – Mac
- Xcode, installing / Installing Xcode
- Homebrew, installing / Installing Homebrew
- MatPlotLib
- about / MatPlotLib
- modulo
- defining / Finding a remainder – modulo
- about / Comparing guesses with backpack items
- multiplication
- music
- adding, to games / Adding music to games
N
- notepad++
- reference link / Text editor
O
- objects
- moving, with keyboard / Moving objects with the keyboard
- about / Classes and objects – very important next steps!
- operations, on two numbers
- defining / Operations on two numbers
- data, converting into numbers / Convert data into numbers – int() and float()
- floating point, to whole number conversion / Floating point to whole number conversion
- whole number, to floating point conversion / Whole number to floating point conversion
- text string, entering in int() and float() / Text strings fail in int() and float()
- first calculator file, creating / Creating our first calculator file
- own function
- building / Build your own function – name()
- own function, building
- project file, setting up / Set up your project file
- project, starting / Begin your project
- code, writing / Writing code
- program, running / Running your program
P
- paddles
- location / Paddles – starting location and size
- size / Paddles – starting location and size
- moving / Section 2 – moving the paddles
- pre-loop actions / Pre-loop actions
- while loop, creating / Creating the while loop
- keyboard events / Moving the paddles – keyboard events
- escape key, using / Exiting the game – escape key
- controlling / Paddle control – player 1, Paddle control – player 2
- player
- scores / Score, play again, or quit?
- player information
- obtaining / Getting and storing player information
- storing / Getting and storing player information
- players list, creating / Making a players list
- player profiles / Player profiles
- player profiles, working / Player profiles – how do they work?
- players, adding to profile / Add players to profile
- player scores
- tracking / Section 4 – draw screen and track the score
- prerequisites, Python
- about / The prerequisites of Python
- computer setup / Setting up your computer
- for Mac users / For Mac and Ubuntu Linux users
- for Ubuntu Linux users / For Mac and Ubuntu Linux users
- Python 2.7 / Python 2.7
- for Windows users / For Windows users
- program
- user interactions / Users interacting with your program
- running / Running your program
- skills, required for / Skills needed to make a program
- ending / Ending the program
- pygame
- defining / What is pygame?, pygame
- URL / What is pygame?, More advanced shapes
- references / What is pygame?
- installing / Installing pygame
- installing, on Windows / Installing pygame – Windows
- installing, on Mac / Installing pygame – Mac
- installing, on Ubuntu Linux / Installing pygame – Ubuntu Linux
- installing, on Raspberry Pi / Installing pygame – Raspberry Pi
- initializing / Initializing pygame
- game screen, setting up / Setting up the game screen – size, Setting up the game screen – color
- stationary objects, creating / Making stationary objects
- moving objects, creating / Making moving objects, Moving objects with the keyboard
- pygame Mac Wiki
- URL / Installing pygame – Mac
- Python
- projects / Python projects for you
- using / What can you do with Python?
- benefits / What can you do with Python?
- concepts / Why you should learn Python
- prerequisites / The prerequisites of Python
- reference link / For Windows users
- uses / Other uses of Python
- URL / Other uses of Python
- SciPy / SciPy
- iPython / iPython
- MatPlotLib / MatPlotLib
- Raspberry Pi / Raspberry Pi
- Python documents
- reference link / Built-in functions
R
- Raspberry Pi
- about / Raspberry Pi
- URL / Raspberry Pi
- remainder
- finding / Finding a remainder – modulo
S
- SciPy
- score
- initializing / Initializing the score
- screen
- screen labels
- creating / Creating screen labels
- screen size
- adjusting / Adjusting the screen size
- shapes
- experimenting / Experimenting with shapes
- advanced shapes / More advanced shapes
- Sprites
- references / Classes and objects – very important next steps!
- stationary objects
- creating / Making stationary objects
- while loop / while loop – viewing the screen
- more shapes, creating / Making more shapes
- rectangle / Rectangle
- ellipse / Ellipse
- subscript method / Adding items to the dictionary
- subtraction
T
- Terminal / Terminal – the command line and the Python shell
- text editor
- Thesaurus / List or dictionary
- Tiny Tennis
- plan / The game plan
- outline, creating / Creating an outline of game parts
- imports / Section 1 – imports, globals, and drawings
- globals / Section 1 – imports, globals, and drawings
- drawings / Section 1 – imports, globals, and drawings
- score, initializing / Initializing the score
- section, testing / Testing section 1
- paddles, moving / Section 2 – moving the paddles
- increase (-=) value / The increase and decrease value (-= and +=)
- decrease (+=) value / The increase and decrease value (-= and +=)
- paddles, testing / Testing section 2
- ball, moving / Section 3 – moving the ball
- ball, testing / Testing – section 3
- screen, drawing / Section 4 – draw screen and track the score
- player scores, drawing / Section 4 – draw screen and track the score
- render screen / The render screen – show what's happened
- player scores, displaying / Displaying player scores
- program, ending / Ending the program
- playing / Play Tiny Tennis!
V
- values / Key/value pairs in dictionaries
- variables
- about / Variables
- naming, conventions / Naming variables – conventions to follow
- programming, for information memory / What can variables remember?
- strings, building / Strings
- integers / Integers
- floating point numbers (floats) / Floating point numbers (floats)
- strings, combining with integers / Combining strings, integers, and floats
- strings, combining with floats / Combining strings, integers, and floats
W
- while loop
- about / while, Bringing back the while loop
- global variables / Global variables and the quit() function
- quit() function, using / Using the quit() function
- for controlling the program / Using the while loop to control the program
- whitespace / Parts of a function
- Windows
- reference link / For Windows users
- work folder
- creating / Make yourself a work folder
X
- Xcode
- URL / Installing Xcode