From ggc
|
01 packagepackage is used to name the directory or folder a class is in Matt.arcade;
02
03 importimport means to make the classes and/or packages available in this program arcade.*;
04 importimport means to make the classes and/or packages available in this program wiki.Wiki;
05
06 /**
07 * All about my game here.
08 * @authornull Mcrauswe
09 */
10 publicpublic is used to indicate unrestricted access (any other class can have access) classclass is a group of fields and methods used for making objects ArcadeGames extendsextends means to customize or extend the functionality of a class ArcadeGame
11 {open braces start code blocks and must be matched with a close brace
12 publicpublic is used to indicate unrestricted access (any other class can have access) ArcadeGames()
13 {open braces start code blocks and must be matched with a close brace
14 setName("Matt's Arcade");
15 addArcadeLevel(newnew is used to create objects by calling the constructor MattC.WackadotLevel());
16 addArcadeLevel(newnew is used to create objects by calling the constructor MattC.MakeADealLevel());
17 addArcadeLevel(newnew is used to create objects by calling the constructor MattCrauswell.InteractiveArtLevel());
18 addArcadeLevel(newnew is used to create objects by calling the constructor MattC.BreakoutLevel());
19 addArcadeLevel(newnew is used to create objects by calling the constructor KMM.FinalProjectLevel());
20 }close braces end code blocks and must match an earlier open brace
21 }close braces end code blocks and must match an earlier open brace
|
Compiler Errors:
----------
1. ERROR in MattC/WackadotLevel.java (at line 26)
sprite=new ImageSprite(Wiki.getMedia("Jam1.gif"));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The constructor ImageSprite(URL) is undefined
----------
2. ERROR in MattC/WackadotLevel.java (at line 27)
sprite=new ImageSprite(Wiki.getMedia("Jam2.gif"));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The constructor ImageSprite(URL) is undefined
----------
18 problems (18 errors)
Download/View Matt/arcade/ArcadeGames.java