Grabable/Draggable/Stackable Objects

Introduction

This is basically an interactive graphics project.

Use graphics.py. It is a simple graphics library. Click HERE for more information. (download, install, documentation, ...)

Project #0

In a graphics window, recreate the image below using squares.

image missing

Project #1

Create a program that allows the user to grab, drag, and stack objects (circles, squares, triangles) in a graphics window.

Project #2

allow the user to

Project #3

Do project #1 or #2 with pygame?

Design thoughts and questions

Just be cause you can think it does not mean you should do it. Keep it simple. (KISS principal)

  1. use a menu or buttons on the screen or both
  2. maintain a list of objects in depth order
  3. when a change is made redraw the objects in the list
  4. don't bother to redraw objects that don't change
  5. what are your thoughts?

Links

Z-buffering (Wikipedia)