Author Topic: [Java] Pinball Game!  (Read 3234 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
[Java] Pinball Game!
« on: September 16, 2005, 10:44:27 pm »
This is my first real project in Java. The AP computer programming class is doing it (as a group) and I'd like to give it a shot.

Do I think I'll finish it? No.
Will I give it a good try? Yes.
Does this mean you will never give up? No.

Any questions?

EDIT -
Compiler/Editor: Eclipse

http://www.javaop.com/~joe/jpinball/JPinball.zip
« Last Edit: September 18, 2005, 02:34:53 am by Joe[e2] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Hdx

  • The Hdx!
  • Full Member
  • ***
  • Posts: 311
  • <3 Java/Cpp/VB/QB
    • View Profile
Re: [Java] Pinball Game!
« Reply #1 on: September 16, 2005, 10:59:31 pm »
Ya I got a question.
Can I help? i'm bored.
~-~(HDX)~-~
http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
 [19:59:04.000] <DeadHelp> We don't like customers.
 [19:59:05.922] <DeadHelp> They're assholes
 [19:59:08.094] <DeadHelp> And they're never right.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [Java] Pinball Game!
« Reply #2 on: September 16, 2005, 11:03:13 pm »
AIM, gogo.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [Java] Pinball Game!
« Reply #3 on: September 16, 2005, 11:20:48 pm »
Output.java:

public class Output {
  // Output type constants
  // 0 - Debug
  // 1 - Info
  // 2 - Warning
  // 3 - Critical Error
  // 4 - Raw
 
  public static void main(String args[]) {
    System.out.println("This file is a dependancy only, and can not be run by itself.");
  }
 
  public static void out(int type, String data) {
    switch(type) {
      case 0: //debug
        //if debugging {
          System.out.println("[DEBUG] " + data);
        //}
        break;
      case 1: //info
        System.out.println("[INFO] " + data);
        break;
      case 2: //warning
        System.out.println("[WARNING] " + data);
        break;
      case 3: //crit error
        System.out.println("[ERROR] " + data);
        break;
      case 4: //raw
        System.out.println(data);
        break;
    }
  }
}


TODO:
Finish debug-enabled checking
Add constants
Inherit needed stuff (the propertybag)
Set a package, etc

Comment.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: [Java] Pinball Game!
« Reply #4 on: September 18, 2005, 02:31:30 am »
I gave up on the "pencil and paper" approach of UltraEdit-32 and javac. Using Eclipse now.
I'd personally do as Joe suggests

You might be right about that, Joe.