Super Thundershot

By JL235 - uploaded on 2008-7-15      2504 views (116 in the last 7 days)      13 votes (0 in the last 7 days)

Tags: demo game shooter space

This is currently only in demo form. You are Super Thundershot and it is your duty to stop the Evil Space Armada from invading Earth and destroying all of humanity. Fly your way to victory!

Controls:
move: W, A, S, D or the Arrow keys.
aim: mouse
shoot: left-mouse button

Your orbiting shooter can be used to stop incoming bullets. Destroy the earth supply ships that fly on from the left in order to collect power-ups.

Update - 12/10/2008
Fixed bugs:
login bug where people have to log in to play
danger arrow collision bug, now bullets do not collide with it

I have also changed how it draws the world which will allow me to achieve some effects I have planned easier and with lower overhead.


Your browser is ignoring the <APPLET> tag.
 

kourtney1816 writes (on 2008-8-12):

um how do ya put ur senarios or whatever ya call 'em on this website? Oh and how do you make an actor eat a food???? PEACE #2!!!

 

jcjortiz writes (on 2008-8-15):

awesome

davmac writes (on 2008-9-30):

JL235, did you ever figure out why you must be logged in to the gallery to play this scenario?

 

JL235 writes (on 2008-10-4):

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

 

kenshinakh writes (on 2008-10-17):

Interesting... I like the 3-D effects you have, lol, I'm still trying to figure that out.
Great job.

qnanqing@yahoo.co.id writes (on 2008-10-23):

Amazing !!, how did you get the angle of the shooter with the mouseee ???

 

JL235 writes (on 2008-10-23):

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.

 

Builderboy2005 writes (on 2008-11-9):

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!

See all comments for this scenario.



If you want to leave a comment on this scenario, you must first log in.


The Greenfoot Network:  Greenfoot.org    Greenfoot Gallery   Greenfoot-Discuss

Our sponsors:

University of Kent, Deakin University, and Sun Microsystems