2.4.1 – Advanced Sprite
For this project, either resurrect your sprite from Unit 1, or design a new simple sprite. Your program should fulfill the following requirements:
- Use variables for sprite creation values
- Make the design dynamic by altering the values of those variables so the sprite moves smoothly around the screen area
- Use conditionals to constrain the sprite onto the screen (do not let it leave)
- Use conditionals and loops to cause a change in the sprite behavior based on some user input
3.3 Projects
Create an Original Program Using Object-Oriented Programming
This program cannot be similar to the car program. Objects cannot be rectangles and they cannot move across the screen. Anything else is ok. Your program must include the following:
- Have one class and initiate at least 3 objects.
- Each object must have different constructor arguments for x-position, size, speed, and color
- Create at least 2 methods
- Be original – do not copy from another program or student.
- Have clearly commented code explaining all sections of your program.
Challenge: Utilize at least 1 random command in your program and have a simple theme.
Super Challenge: In addition to the challenge, you much create at least 1 addiitonal class with a different shape and at least 2 additional objects.
4.2.1 Arrays of Objects
For this assignment, I would like you to create an array of objects. You might choose to use as a starting point your car_object, or one of my (sample_class or sample_star_class) found on OpenProcessing page.
- Create an array to make a program with at least 10 objects.
- Change at least 1 other thing about the general look of the program.
You must comment your code, especially all of the changes you make to the original program.


0 comments