![bluej game bluej game](http://d2vlcm61l7u1fs.cloudfront.net/media/67c/67c2ff9e-e0e9-46e8-9b1f-8efc950f5e8a/phpmOQtVn.png)
If(!paused & !crashed & started & System.currentTimeMillis() - 75 > lastSmoke) If(!paused & !crashed & started & System.currentTimeMillis() - 100 > last) If(!paused & !crashed & started & System.currentTimeMillis() - 10 > lastCopter) * if(!paused & !crashed & started & System.currentTimeMillis() - 1300 > lastSound) LastDistance = System.currentTimeMillis() Helicopter = new MovingImage("helicopter.GIF",XPOS,270) ("Error: "+i.getMessage()) īackground = new JFrame("Helicopter Game") ītDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) //closes the program when the window is closedītResizable(false) //don't allow the user to resize the windowītSize(new Dimension(818,568)) *Floor is 74 and Ceiling is 72 pixels high private MP3 move = new MP3("HelicopterSound.mp3") Public class HelicopterForm implements MouseListener
#Bluej game how to
Hopefully I can figure out how to get an applet version working soon so you don't have to download it, but I had trouble the last time I tried. jar/.exe.Įnjoy :D And I know it's not as good as the flash version, but I'm proud of it so I want to show it off and there aren't too many java snippets on the site so I thought this would be cool to post. For some reason the sounds messed up the. jar file to make it work even in JCreator so I figured it was unnecessary. The code is pretty messy because we've just been focusing on getting the game working, and also the class files are mashed together below because you can't submit multiple forms on Hawkee for one piece of code.Īll code is by me and my partner except for the MP3 class which we found online and parts of the imagepanel and movingimage classes which were started by a classmate for the rest of us to use, The mp3 class is currently commented out because you need a.
#Bluej game .exe
exe file and the images used in the game here: It's currently unfinished, we (my partner and I) still need to add a crash sequence as well as some modifications to make the game more difficult.Īnyway, you can play this by copying the code below and pasting into JCreator or downloading the. This is my final project for APCS (Advanced Placement Computer Science).