LEARNING OBJECTIVES:

  1. Work with functions
  2. Work with existing code libraries
  3. Get started on your Project.

You should use the Project 1 starter code as the basis for this project. In this homework assignment, your job is to just complete Parts 1 through 3 and one element part 4 for Project 1.


Part 0. Read

The first thing you need to do is read through the project specification.


Part 1. Creatures and Landscape Objects

Complete parts 1 and 2 of the project.

Your completed file should have an appropriately defined creature function and an appropriately defined landscape_object function (like your creature it should be made up of at least 5 basic shapes). The function definitions should be in the appropriate sections of the template! Then you should draw to the screen at least 5 different versions of your creature (i.e. use the different inputs of your function in 5 different function calls) and at least 5 different versions of your landscape object (i.e. same thing with the other function). You can either place them randomly on the screen, or you can purposefully place them as they will be in your final project submission.

All of these function calls should be placed in your setup function's body and they should be assigned unique tags.


Part 2. A Mouse Event Handler

Your last task is to implement a simple event handler for the "LEFT-CLICK" event. It must be handled by a function named exactly left_click_handler and this function must create a shape (or compound shape like car, creature, etc.) with a unique tag. In other words, if you click on the screen multiple times, it should spawn the chosen shape multiple times, each with a unique tag.

</th>
P1 Module Docs edSTEM Hints Megathread

What to Submit

If your functions are working correctly (make sure you use the function names and parameter names defined in the project assignment) you’ll see 5 of your creature and 5 of your landscape object! Make sure to submit ONLY your project1.py file to Canvas by the deadline. DO NOT SUBMIT THE UTILITIES FILE.


Submission Details

Remember, close IDLE before you submit to ensure that you’ve saved your latest work. Once you’ve successfully submitted you should receive feedback from the autograder in 30 or so minutes. If you fail one of the checks, you’re welcome to resubmit (up to the Canvas resubmit limit for that assignment). If you’re confused on how to fix one of the checks, then bring your submission and the test results to office hours!

Submission FAQ
Late Penalty Waiver