Java Fighter

http://hem.bredband.net/b255555/jf.jpg

My first attempt, except for some simpler board games. Made merely as a programming challenge for me :slight_smile: No more time to work on this project since school is starting again. Yes there are things missing and the code is a bit messy at places…just glad for completing it (almost anyway).

Lack of time made me skip the JWS part (which I know is ideal)…instead it comes as a simple installer. Windows required aswell as a gamepad with 2 analog sticks and JRE 1.5+ installed. Tested on Windows XP SP2 with Logitech Dual Action 11 buttons + 2 analogs, aswell as on Windows Vista with unknown (my memory…) gamepad. Works as expected.

If you have some time, please try it out :slight_smile: Thanks!

http://hem.bredband.net/b255555/javafighter_v1.0.rar

/ Anders

Well, I’m on a Mac so I can’t test it out.

Sorry. :frowning:

Ok!

I get that this could be insulting to non-Win users. But: I wanted to create a complete game, which was never intended for all platforms; the challenge for me was to make it work at all. Since I’m on Windows I took that simple route. That said, I still hope for some constructive feedback from Win users, being my first game and all :slight_smile: I want to improve in future projects and getting help/comments from you all would be great.

Btw, I used JInput for gamepad support, other than that it’s std Java.

/ Anders

Why is it Windows-only if you wrote it in Java, though? Can’t you just make a JAR or JNLP?

Er, started downloading, but realized I do not have gamepad? (But I do have windows…)

Any chance of keyboard support…?

(sadly all my xbox controllers are the wireless, not usb…)

  1. Keyboard is currently not supported because the overall feel (if I managed to achieve any) when moving/attacking would be lost. Much smoother imo when playing with gamepad. Again, I know I might have shot myself in the shot in doing so; not all have gamepads (or Windows ;)). My main focus was to challenge myself: I wanted to create a functional game with gamepad support, nothing more. Bear with me as I have not done this before…

  2. The JAR is inside the installer. The “Win-only” restriction is because I have only taken advantage of the Win part of JInput. This fact is mostly due to time issues, and also because it was the easy (lazy?) way out to accomplish what I set out to do :slight_smile:

Future projects will not just be an experiment like this one; then I’d know more what to do. And why. Thanks for your replies, anyone got it to run? :slight_smile:

/ Anders

JInput supports multiple operating systems - if you just include the system resource files correctly then it’s no problem. Webstart makes it very easy to do that as well.

I hear what you’re saying :slight_smile: I have used Webstart before, just thought I would run out of time when trying to make it work with JInput (more specifically, the natives…). Yes I know JInput supports multiple OS; a bit uncertain though about the old (very: 2004) version I’m using in my code?

This and above are my reasons for creating my game this way…it’s a first try and I thought I’d get away with it 8) Thanks for your advice! I will surely look into the JWS detail soon.

/ Anders