Report as inappropriate.

Master_chief_avatar_thumb

JL235 presents ...

2008/7/15

Super Thundershot

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.

5365 views / 12 in the last 7 days

20 votes | 0 in the last 7 days

Tags: space game shooter demo

This scenario is a member of: Scenario showcase


Your browser is ignoring the <APPLET> tag.
No_avatar_thumbjcjortiz

2008/8/15

awesome
Smalldav_thumbdavmac

2008/9/30

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

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
No_avatar_thumbkenshinakh

2008/10/17

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

2008/10/23

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

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.
Avatar-1940Builderboy2005

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!
Libertarian_freedom_thumblimefortheworld

2009/5/21

ty with the aid in trig code!

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Photo_on_2011-09-18_at_18 Greenfootgalleryimage2_thumb Person_thumb Image008_thumb Libertarian_freedom_thumb No_avatar_thumb Supernovared_thumb Supertuxsquare_thumb Aaaargh_thumb No_avatar_thumb No_avatar_thumb No_avatar_thumb No_avatar_thumb No_avatar_thumb No_avatar_thumb Mesepia200x200_thumb No_avatar_thumb No_avatar_thumb Small_thumb Humphreybogart-1_thumb