Programming Resources
For Fun and Learning
Charles Cusack
Computer Science
Hope College
main

Python
C++

JAVA


PHP
SQL
Alice

TargetGame


Description

Run it
Download jar file (Right click)

ABullet.java
AClip.java
AClipGun.java
ATarget.java
AppletStarter.java
BulletTimer.java
GameTimer.java
LSBullet.java
LSClip.java
LSGun.java
ResetButton.java
TargetGame.java
TargetTimer.java

ResetButton.java

import aLibrary.AButton;
import java.awt.event.*;


public class ResetButton extends AButton {
  TargetGame myGame;

  public ResetButton(int x,int y,TargetGame d) {
      super(x,y,75,25);
      setText("Reset");
      myGame=d;
  }

  public void actionPerformed(ActionEvent e) {
      myGame.reinit();
  }
}