Star Fighter 4K

Hi all,

 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.-

Need to install an obfuscator

Get jarg for starters:
http://jarg.sourceforge.net/
(java -jar jarg.jar in.jar out.jar)

And kzip for repacking:
http://advsys.net/ken/utils.htm

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.

great game, but it’s too dificult to control, i miss relative steering for the ship :slight_smile:

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 :slight_smile:

Yeah, the controls are not intuitive, the frame title says something weird, I had to kill the process. Needs ALOT of work.

pretty decent shooter, I like the fact that it scrolls instead of being bound to the window size.

some suggestions:

  • relative steering control (see Asteroids 4K for example)
  • add an explosion effect when you kill an enemy. having them just dissappear from the screen isn’t very rewarding

Hi,
Thanks for the feedback, this is an update.

It’s a line of code… will fix in the next release

Can wait

Escape to exit… is the cheapest way. Using awt.Frame, there is no behavior in the close button.

Ok, seems like none of you played the early shooter TimePilot… But for your pleasure, there is now “Relative Steering”

Oh! Blocky Miner… Another concept… title fixed.

Ships explode.

And now is 4014 bytes, without optimnimzations.

   Rafael.-

Hi all,

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).

Webstart: http://www.dcc.uchile.cl/~rcarvall/j4k/2006/StarFighter4K.php
Download: http://www.dcc.uchile.cl/~rcarvall/j4k/2006/StarFighter4K.jar

Feedback and bugs here!!

  Rafael.-

But for your pleasure, there is now “Relative Steering”

I liked the old controls more.

(I really dislike those RC-car controls :slight_smile:

With only 3 bytes left, don’t think I can put both controls.
But I’ll try…

The relative controls… can be put on ‘.’ and ‘,’ keys?? (as quake’s default strafe bindings)

  Rafael.-

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.-