Game

Design and create a Java game applet. The game must be interactive (i.e. use mouse, keyboard, or other events) and non-trivial.

You will be graded on a combination of

a/ how well the applet works - The applet must correctly function in a web page in Internet Explorer.

b/ level of complication - The applet must be interactive. It's recommended that you use a combination of components such as buttons and listeners. The applet can make use of objects from other classes that you've created and stored in the project folder (e.g. see StickMan/StickMen example from lecture notes). Score-keeping, collision detection, the level of animation, the number of objects or figures on the screen, use of random numbers, cheat detection, user-friendliness and practically anything else that you've studied in Visual Basic or Java at Wyomissing can help this part of your grade.

c/ originality - If you submit an applet that looks suspiciously close to an online example or something an experienced Java game programmer might have created, you will be questioned. If you rework a classic game such as Tic Tac Toe make sure that you've added something interesting and novel. You will lose points if a significant portion of your code is similar to a class example, another present or former student's applet, or an example from the Web or a textbook. You must document the code segments that you used from any sources other than Mr. Minich's demos by typing the exact web page URL address into your source code. You may use techniques illustrated in such examples but the combination of techniques must be original. You must be able to explain every line of code in your applet. The instructor's decision is final, so consult him with questions and/or ideas if you want to be sure that he considers your code to be original. Graphics and sounds will make your applet stand out from others.

d/ algorithm efficiency - Follow the principles of object-oriented programming and basic program efficiency. Variables should have the right acces level (i.e public vs private) and scope. Loops and if statements should be logically sound and efficient.

e/ Coding Standards - Above all, make sure that add enough internal documentation so the instructor can understand how your applet works.

f/ classroom productivity - You will lose points if you are not productive on the days that class time is used to work on this assignment. The instructor has sole discretion in this judgement.

The game may be uploaded to a school Web server so make sure that there are no references to students or faculty and that the game is appropriate for the public. Do not display your whole name anywhere in the applet, just your first name and last initial.

Name your Java applet project JohnDoeJavaGamePong (substitute your name for "JohnDoe" and a word that reflects the title or purpose of the game for "Pong") in the root of your network folder. So your game program's .java source code file(s), the .class bytecode file(s), and the .html Web page file(s) will be in the project folder. If your game makes use of image or audio files, make sure that they are saved them to the folder as well.

Preconditions:

You must hand in the following on separate pages stapled in this specified order:

    1. The source code for the applet class.
    2. The source code for any other classes.
    3. The printscreen of your browser window.