Hey, Java games are highly portable - they work on nearly ANY PC on the world.
Given Windows is installed of course…
;D
Hey, Java games are highly portable - they work on nearly ANY PC on the world.
Given Windows is installed of course…
;D
Everyone:
Opps, sorry about the broken zip file, I’ll put up another version tonight when I get home. I’ll test it first.
Matzon:
Yeah basically the only reason this won’t work on Linux is performance. The sound system would work but I didn’t include the native libs you need for Linux in the zip.
Also, since I can’t even get it to work on Windows in windowed mode, when using a BltBufferStrategy, at a decent FPS I don’t hold much hope that Linux will ever handle it. There just doesn’t seem to be any point in windowed mode if you have to have all of the flashing going on.
Actually this is very frustrating, I hope the OSX 1.4 SDK will not have these issues. Otherwise why am I bothering with Java?
Had an idea for a power up this morning on the way to work, napalm. It will hit and destroy everything in a several tile radius.
I have never been very happy with Sun’s attempt in either 2D or 3D API’s. Luckily theres people working on projects to improve this situation for gaming with projects like LWJGL.
[quote]Had an idea for a power up this morning on the way to work, napalm. It will hit and destroy everything in a several tile radius.
[/quote]
Ouch, very bad association with just the word ‘napalm’. Wouldn’t do that…
Okay, once again sorry for the broken archive. Here we go with jeeps, bridges, boats, lights,etc:
http://www.scottshaver2000.com/temp/f15strike_test1.zip
Had something really strange going on on my system so I had to go back to test1 as the filename.
Went through the older posts and pointed them all at this archive.
Okay for all those that were getting crappy frame rates with the F15-Strike program, please try again with this version. Note I’ve taken the music back out, and although windowed mode flashes quite a bit is should work on Linux again.
http://www.scottshaver2000.com/temp/f15strike_test1.zip 849k
Hi zparticle, I’ve tried running the game but it will only work in windowed mode (I’m using Linux).
You’re probably checking if my system supports full screen mode by calling the isFullscreenSupported method (or whatever it’s called). But that method returns an invalid value on my system (I’m writing a full screen game myself).
Perhaps you could provide a command line option that overrides this. For example running with “–fullscreen” uses full screen mode no matter what (at user’s own risk).
It works in windowed mode with a lot of flickering and at a very bad framerate (15 FPS) but that’s not your fault. The hardware acceleration is very bad under Linux but it should improve with Java 1.5.
Lars
I’ll put in switch tonight when I get home. I didn’t realize full screen was ever possible with Linux. Is there any programatic way I can tell if a Linux box can do full screen mode?
You are correct that I’m currently using the API call to determine this and it returns false on your machine.
[quote]Is there any programatic way I can tell if a Linux box can do full screen mode?
[/quote]
I Haven’t found one yet, unfortunately.
Okay,
same link new batch file and switch.
forcefullscreen
Let me know how it goes, hope I got it right.
It still gives the same message. The jar file in the zip file is dated Jan 22. I used the link at the top of this page (first post of this page), is that the correct one?
[quote]Okay for all those that were getting crappy frame rates with the F15-Strike program, please try again with this version. Note I’ve taken the music back out, and although windowed mode flashes quite a bit is should work on Linux again.
http://www.scottshaver2000.com/temp/f15strike_test1.zip 849k
[/quote]
size is 999kb
error-msg: unexpected end of archive
downloaded it 3 times… seems to be b0rked
[quote]Is there any programatic way I can tell if a Linux box can do full screen mode?
[/quote]
Can’t you use GraphicsDevice.isFullScreenSupported?
I’m afraid not.
On my system GraphicsDevice.isFullScreenSupported returns false, but full screen mode works fine.
What happens is that Java emulates full screen mode when it is not available. It does this by creating a large window (as a result you’re not really in full screen “exclusive” mode). The good/bad thing is that this all goes automatically so you still need to switch to full screen mode on systems like mine if you want to get the same effect even though they don’t support it.
Alright, again the same link. You should see:
Forcing fullscreen mode.
Entering Video Mode: 640x480x16@0
if you are using the forcefullscreen switch.
runs fine
FPS Fullscreen - 60 (steady’n’smooft @ 60hz)
FPS Fullscreen² - 61-83 (jerky @ 85hz)
FPS Windowed - 20-25
GeForce2MX
98SE - Athlon K7 500 (with 128mb)
just some hints:
-u have all images as gif and png… why?
-there is even one psd :x
-check this article:
http://www.javage.net/cgi-bin/showArt.cgi?index=11
(Pixel accurate collision detection in Java)
-add powerups
-add smartbombs
-add sounds
-add stuff
-u have all images as gif and png… why?
I used to use only PNGs but decided to go for GIFs in the tile map because it improved the drawing performance. The PNGs that remain are there because it allows me to use alpha blending to make the edges of objects softer. Look at the plane sprite.
-there is even one psd :x
Opps, that isn’t supposed to be there.
-check this article:
http://www.javage.net/cgi-bin/showArt.cgi?index=11
(Pixel accurate collision detection in Java)
I have my own pixel perfect collision detection routines that are quite fast. I’m not using them in this program yet because most of the time it isn’t needed.
-add sounds
I had music in it but I took it out, I haven’t decided if I like music or sound F/X.
-add powerups
-add smartbombs
-add stuff
Yeah there are a number of things I would like to add but until I can figure out exactly what the graphics are going to end up looking like I’m not worried about those things. I’m not happy at all with the current graphics.
Results:
FPS Fullscreen: between 68 and 85, mostly ~80, pretty smooth.
FPS Windowed mode: 9, steady (crap :P)
Shooting doesn’t seem to influence it.
I’m using the updated version of the game.
My system:
WinXP, AMD 1.0GHz, 896MB SDR, Radeon 9000 Pro 128MB DDR
Full screen: 12-15 FPS
Windowed: 12-15 FPS
Nvidia GForce 2
Athlon T-bird 1Ghz
512 MB DDR RAM
Gentoo Linux 1.4
Sun should really do something about that.
I couldn’t agree more.