Objects Oriented Programming


1a

  • I’ve add in the line 5 and 6 the images which I’ll load them later
  • On first 3 lines I had to import minim library to make my job easier with audio files.
  • Line 11,12 I load the images .
  • In lines 13,14,15 I’ve loaded the audio files , and I made them play into the setup [to run just once when the program is running]
  • In the lines 24,33,38 I made the image to appear in the places I wanted to .

1

  1. Lines 1 to 6  I am loading the Minim library and I made some classes called player 1 to 4 .
  2. In the line 7 I add a array of images which I’ll use them later.
  3. Everything which start with a capital letter is gonna be a class .

Leave a comment