Pseudo Code
Array of cars;
Array of images;
Motorcycle class;
Images;
boolean timer
Void Setup(){
size(500,700);
load images
load arrays ( LOOPS)
}
Void Draw(){
background()
loops for arrays
load timer for new cars coming every 3-5 seconds
Motrocycle.display();
Motrocycle.collitionTest();
}
Class Motrocycle{
Dislplay()
Collition()
Move(If left or right arrow press, then x++ or x–)
Class Cars{
Display()
Move()