Week 11
Friday
Activity: Fun with GUIs, Games, and Simulations
The purpose of this activity is to help you get started on your final project by exploring new code that you haven’t seen before, so that you have a sneak peak of what you are capable of doing. The final project involves exploration into new python topics.
Here is a collection of examples. Try to run some of the example code. Save them (some include multiple files and will need unzipped) to your cs100/examples folder.
Run the following examples. Pick ONE to play with and change something. For example, change background color, add a new feature, make the simulation run longer, add a new functionality, add more aliens/bears/fish/turtles (depending on the game), change the color of the players, anything you can think of! Your imagination is your only limit. Discuss with your group which project might be most relevant to your final project – consider features/ideas you can take from.
- Small Class: Basic Car Simulation
- Ch. 10: Solar System Simulation
- Ch. 11: Bear Fish Simulation
- Ch. 13: Etch A Sketch Game
- Ch. 13: Moving Turtles Simulation
- Ch. 13: Space Invaders Game
- tkinter: Converter GUI
- tkinter and pillow: Example button with image
- pygame: Example with box player
Note: A couple of these projects may create an error upon closing the window if you run it in Thonny. Please ignore those errors; they are actually caused by Thonny, not by the source code. The program itself will run correctly.
When you finish
For the remainder of class time, work on your final project with your group. Decide when your group will meet next (over the weekend? after class on Monday?) and what work each of you will accomplish for that next meeting.
How to submit
For whichever item(s) you modified for the activity, submit all source code and images used to Moodle. Write in the comment section in Moodle what you changed so that I know what to look for.