Just a little start

Hi there,

I just made a start with a little retro pseudo-3d game:
http://home.zonnet.nl/duijs24/FSGame.zip

Just unzip and run start.bat.
(Fly through the dukes to get points and avoid the flying windows pc’s :stuck_out_tongue: . [ENTER] = start, [CURSOR] = move, [SPACE] = shoot, though you won’t hit nothing yet)

It’s my very first attempt in making a game instead of emulating them, so don’t expect too much ::slight_smile:
(Later, I’d like to have a go at LWJGL for the 3d stuff)

The collision detection sucks a bit, and the controls seem to behave a little erratic sometimes.

Since it uses full-screen and real-time scaling of images, I’m interested in how it runs on various OS-'s / platforms. (I run it on a P2/450, 128Mb, win98 on which it runs pretty smoothly)

Any comments are welcome :slight_smile:

Greetings,
Erik

[quote]Any comments are welcome
[/quote]
Can’t you make it an applet or webstart app?

I hate d’loading, unzipping, starting…
That is SO exhausting…

I’m a Java guy! I’m lazy!

[quote]I’m a Java guy! I’m lazy!
[/quote]
;D

Okay, okay, I hope to get a web-start version online tonight (with better collision detection). It’ll be my first web-start app, so I don’t know what problems I’ll encounter trying to deploy it…
I’ll let you know when it’s ready.

Erik

Grmbl, my host doesn’t support Web Start >:(
Is it just me, or is this a pretty major drawback of Web Start?
I mean, you can deploy applets everywhere you want but with Web Start, the web server needs to support some obscure MIME type…
I have no control over these things in my own personal web space (and I guess many people don’t) so for me Web Start is pretty useless… :’(

Okay, enough ranting, I’ve put a new version online at http://home.zonnet.nl/duijs24/FSGame.zip with better collision detection.
It’s just a 29k download complete with source and there’s a start.bat to play.
Again, any comments are welcome.

BTW, anyone knows how to get rid of the mouse pointer in full screen apps?

Greetings,
Erik

You can use a .htaccess file to add that MIME type.

His server is Netscape-Enterprise/4.1 . I don’t know if .htaccess will work.

[quote]Grmbl, my host doesn’t support Web Start >:(
Is it just me, or is this a pretty major drawback of Web Start?
[/quote]
No, it’s a major drawback of your web host :smiley: I could be way off on this, but AFAIK most web hosts support .htaccess files. Yours may not, which could be bad. Have you asked your web hosts about adding a MIME type?

Well, I don’t speak this language, but this may get you started:

Laat Xitami lekker draaien maar zet de volgende dingen in de defaults.cfg file die bij Xitami hoort.

[Mime]
jnlp=application/x-java-jnlp-file

I am running Red Hat Linux 7.2 with a Voodoo3 and it worked pretty well. Full Screen Exclusive worked–Cool! 8) Everything was pretty slow though. What kind of fps should I be seeing?

I did have to tr all the *.GIF to *.gif, update the images names in DukeRogers.java and recompile. It seems the new Image() wasn’t liking the gifs to be uppercase extensions, even though the source code had them declared that way also.

Could figure out how to end it either. I just C-c’ed it.

[quote]Well, I don’t speak this language, but this may get you started:

Laat Xitami lekker draaien maar zet de volgende dingen in de defaults.cfg file die bij Xitami hoort.

[Mime]
jnlp=application/x-java-jnlp-file
[/quote]
:o Pretty good for someone that doesn’t speak the language! :o
Thanks a lot! :smiley:

[quote]Everything was pretty slow though. What kind of fps should I be seeing?
[/quote]
On my machine everything is silky smooth (I’m guessing something like 60fps), although there’s the occasional gc hiccup every now and then. Maybe graphics aren’t accellerated on your system?

Erik

Hi erikd

Nice and impressive game to be the first one you do.
I would like to see it in a brower. Keep doing it.

I got it working with Web Start, but on another host at:

http://www.mycgiserver.com/~movegaga/

:smiley: :smiley: :smiley:

Hi all,

I made some changes to my game at http://www.mycgiserver.com/~movegaga/
so you can shoot things too, as well as changes in the jnlp file that should fix performance problems in win32 machines.
I’m very interested to see if things perform better now and if these changes (win32 runtime flags) cause any troubles. So if people could do a quick check, I would be very pleased :smiley: :smiley: :smiley:

Greetings,
Erik

There is a slight flicker in the space ship when moving. Where does it come from?

For the game: maybe the ship shouldn’t occlude the targets you are firing at? Hard to aim this way.

[quote]There is a slight flicker in the space ship when moving. Where does it come from?
[/quote]
I think it’s because there’s a bug somewhere in the depth-sorting/drawing which makes it draw only 1 object that’s on a certain Z-coordinate when there are more. Just didn’t bother to fix it yet.

[quote]For the game: maybe the ship shouldn’t occlude the targets you are firing at? Hard to aim this way.
[/quote]
It kind of reminds me of those mid-80 sega games where things like that also happen (outrun, afterburner, galaxy-force etc).
Just keep moving :wink:

Thanks,
Erik

fun. extremly fast on my machine… is there a fps displayer planned?

[quote]is there a fps displayer planned?
[/quote]
Just press F11.
I also just added online high scores a minute ago. The server can be extremely slow though, but fun nonetheless :slight_smile:

How many FPS are you getting?

Thanks,
Erik

[quote]There is a slight flicker in the space ship when moving. Where does it come from?
[/quote]
Hmmm…
I first thought it was my fault, but now I’m quite certain that it is not and that g.drawImage (especially when scaling) fails to draw sometimes which I’m quite sure is a bug in java2D.
I’ve seen it before in previous projects and I think I’m seeing it again. I’ll try to reproduce it in a small program…
I added a new level system in my game, and there’s one level where there’s lots of things going on on screen and level of flicker is really unacceptable.
I traced and debugged my code, and it really draws everything always, except that java2d doesn’t always actually output it on screen. :-[

Anyone else had problems like this?

I just about had it with java2D >:( >:( >:(
It’s too %&^@*# unreliable…

Going to d/l LWJGL now and hope it will be the answer for my problems…

And if it isn’t, at least the developers are nearby at your service :smiley:

  • elias

[quote]And if it isn’t, at least the developers are nearby at your service
[/quote]
:slight_smile:

Well, so far so good; I got the 3d starfield now working in open gl already! 8)
My 1st impression is that I really like LWJGL (yahoo, a good timer at last :D), I only need to learn open gl much more but fortunately there’s lots of great documentation on that.