I don't know why and it might just be me, but this didn't work until I logged in :S
Apart from that, amazing graphics, looks really 3D (especially the rocks) and a great game!
Awesome! Really really difficult to play with a trackpad though.
I have the same problem as mjrb4 though. Joe, I have send you some debug info via email.
Thanks for the comments. I plan to add sound for the final version, some more enemies and a boss. I'm pretty sure I now know why it doesn't work unless your logged in and am working on a temporary fix.
Yes, it's to do with the security manager and the GreenfootImage class. I am using reflection to change the BufferedImage used internally by the GreenfootImage. As standard GreenfootImages have full alpha support and I was replacing the BufferedImages with one that only had partial or no alpha support, as these were far faster.
I had originally presumed that the security exception wasn't being caught by my code. My original solution was to catch it and so not have the images changed. It would be a lot slower if your not logged in, but would work. However it appears my code is catching it, so I'm still unsure why it fully breaks.
I do however have a new fix which I might try implementing today (and actually do it too). I still plan to finish Super Thundershot but after I have finished my current game, Sokoban Supreme (comming soon).
A new version of this scenario was uploaded on Sat Oct 11 14:39:26 UTC 2008
A new version of this scenario was uploaded on Sat Oct 11 16:05:07 UTC 2008
The angle is found through triginomety. You can create a triangle from the shooter to the mouse cursor. One side is the difference between both points on the x-axis, another side is the difference along the y-axis. These allows you to find the angle from the shooter to the mouse cursor. This is the code:
double angle = Math.atan2(mouseY-getY(), mouseX-getX());
setRotation((int)Math.toDegrees(angle));
I also have my own class that wraps around the Mouse interface to offer an interface which I much prefer (and performs some internal error check for me). I also use the angle for setting the angle of the shot it creates.
You might want to consider changing the background to something less sporatic and consuming. I found it distracting and degrading on the speed.
Constructive Criticism aside: This is a fantastic game, with good effects, playability, and Fun!
2008/7/15
2008/7/15
2008/7/15
2008/7/15
2008/7/16
2008/7/16
2008/7/16
2008/7/22
2008/8/1
2008/8/3
2008/8/12
2008/8/12
2008/8/15
2008/9/30
2008/10/4
2008/10/17
2008/10/23
2008/10/23
2008/11/9
2009/5/21