CPSC120A
Fundamentals of Computer Science I

Creative Assignment 4

A mouse controlled game.

Games can be used for more than just entertainment. Games that require dexterity can be useful for physical therapy. And games that use the the mouse require dexterity. In this assignment you will create a game that uses the mouse.

Details

Create a Python program that uses the graphics.py module to recreate a mouse controlled video game. Refer to the Mouse Functions section of the graphics module's documentation for information on how to get mouse input from the user. The game can be anything you want, but must do the following:

  1. Use mouse input from the user.
  2. Have more than one image.
  3. Have at least one image that moves.
  4. Display text in the window when the player wins or loses.
  5. Use a while loop for the main loop.
  6. Be impressive.

When the user closes the window the program should end. Do this by setting the main while loop's condition to use the graphics.window_open function. For an example of this see the Examples section of the graphics module's documentation.

Extra

Outstanding games will receive extra credit. I will be the arbiter of whether a game is outstanding .

Submission

Your code should conform to the course’s code conventions and will be graded according the the course’s programming assignment rubric. Submit your code and images as a .zip file on the course Inquire page before class on Friday October 10th.