This is my second entry: Star Fighter 4K, a simple shooter game.
Webstart: [url]http://www.dcc.uchile.cl/~rcarvall/j4k/2006/StarFighter4K.php[/url]
Download: [url]http://www.dcc.uchile.cl/~rcarvall/j4k/2006/StarFighter4K.jar[/url]
It's 4144 bytes, but has not been optimized (Need to install an obfuscator)
Feedback and bugs here!!
Rafael.-
That highscore bit doesnt seem to work… its always 0. And the text isnt centered at all… the default font for graphics/graphics2d is a logical one (Dialog.plain), which looks different everywhere. So, if you want something centered or right aligned you need to use font metrics :-\
Would be nice if you could squish some enemy behaviour in or parallaxing stars. And mmh… I would draw the ship on top of the bullets… this way you can still spawn em in the middle, but it looks more like they are coming out of the front of the ship (smoke and mirrors… smoke and mirrors ;)).
edit: mmh. The frame is resizable, there is no way to exit is (right?) and the stars are sometimes too uneven distributed.
The enemies & bullets work nicely. All it really needs is a bit of polishing - Make the window close box exit the game (*) and improve player control which is a touch awkward (**).
Alan
(*)Found that Excape exits, although this is not stated. Alternatively, you could test for isVisible()==false & do a System.exit() to make the close box work.
(**)Sometimes a key appeared to stop working and I had to press one of the other keys before function was restored. Odd.
/Edit: Just looked at f.l.x’s post - now I understand why the steering was odd
I have been tweaking a bit the game to present the (I think) final version of Star Fighter 4K.
Features:
4 kinds of enemies (Dumb, Drunk, Hunter & Fighter).
7 Stages of increasing difficulty.
Bosses.
The ship has three lives (gets extras each 2000).
Really cool game. But the sensitivity on the controls is way too much, pressing either of the arrow key rotates the ship way too much and it’s pretty hard to get a decent aim on the enemy.
I think this is an awesome game!! I have played it for a while and the only issue I had was that I had a hard time telling when I hit the boss, but that’s not really that big of a problem! Very good job!!!
The angles are indices to a table of sins and cosins…
The table has 32 entries, so each rotation is in PI/16 radians.
It was implemented this way to use it in the other control scheme (Time Pilot Style)
If the bullets dissapear! they hit the boss… (I could try to make it explode)
Rafael.-