mirror of
https://github.com/brendanhaines/ProcessingSketches.git
synced 2024-12-25 18:38:08 -07:00
adds note about sound effects
This commit is contained in:
parent
e4aa42e60e
commit
a84f6f9d69
|
@ -1,5 +1,10 @@
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// PLEASE NOTE: FOR THIS GAME TO FUNCTION CORRECTLY, YOU MUST PLAY THIS VIDEO IN THE BACKGROUND: //
|
||||||
|
// https://www.youtube.com/watch?v=npOpr7juN1Y //
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
final int BACKGROUND_COLOR = 10;
|
final int BACKGROUND_COLOR = 10;
|
||||||
final int WALL_COLOR = 0xCCCCCC;
|
final int WALL_COLOR = 0xCCCCCC;
|
||||||
final int PACMAN_SPEED = 2;
|
final int PACMAN_SPEED = 2;
|
||||||
|
@ -40,6 +45,7 @@ void setup() {
|
||||||
fill( 255, 0, 0 );
|
fill( 255, 0, 0 );
|
||||||
text( "START", 260, 250 );
|
text( "START", 260, 250 );
|
||||||
|
|
||||||
|
options.setBounds( 700, 50, 10, 10 );
|
||||||
options.getContentPane().setLayout( new BoxLayout( options.getContentPane(), BoxLayout.Y_AXIS ) );
|
options.getContentPane().setLayout( new BoxLayout( options.getContentPane(), BoxLayout.Y_AXIS ) );
|
||||||
options.setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
|
options.setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
|
||||||
redGhost.setSelected( true );
|
redGhost.setSelected( true );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user