Frag4k

You find yourself in an infernal 3D maze, inhabited by bug-eyed monsters. Explore the maze and kill the monsters. There are ten per level. The maze is different on each level and the monsters move faster at higher levels.

Movement: Cursor Keys
Fire: Space Bar
Start: Enter Key

The window is now resizeable for the best screen area/framerate compromise.

Play Frag4k

Notes:

  • Tested on Windows XP, OS X & Linux. (Thanks to Kapta for the linux test)

Enjoy
Alan :slight_smile:

Hey, cool! I have a feeling 3D is going to be a theme this year :slight_smile:

Kev

you can add tested on linux too now, it works nice.

woohoo nice 3d, truely dazling experiance!

This is amazing. The best part is the mini-map and the other best part is the baddies. I’m very impressed. Plus multiple levels. Wow. ;D

Stunning! Although I’ve never been a maze-solver sort of person, the graphics, minimaps, and monsters of this are just stunning! An excellent 4k game - fantastic work.

That’s excellent! Is the texture generated procedurally, or are you loading a single image?

Any chance we could get a full screen version of it? Windowed mode just isn’t the same for immersion. :wink:

Very cool! - The blue guys are even a bit scarry if you turn a corner and get this blue blob in your face :smiley:

Everything is procedural. The wall pattern is a function the product of x & y within each wall segment.

I’ll take a quick look at full screen (but no time till late friday). However I’ve scrubbed over the code so many times to reduce size, it’s a bit doubtful whether the extra OS calls could be fitted in, particularly as windowed/full screen toggle is advisable, since some Linux installations balk at full screen. (Edit: After a quick hack, concluded that it’s just not going to fit - sorry)

Alan :slight_smile:

nice! :slight_smile:

Neat! ;D

Hey! That was fun! You even have map displayed, thats big + I think. If only I could strafe :’(

Nice entry !

About fullsreen, you could just use setUndecorated(false) and setExtendedState(6) …

Lilian

Thanks for the hint. Currently the game renders 400x400 pixels, but could need to render 1280 x 1024 plus by going fullscreen in the current mode. i.e. about 8 times more, call it 10 in round numbers. A fast PC can render the 400x400 frame in around 3ms, so we’d be looking at around 30mS/frame on a good PC at full screen, which is a bit marginal. I’ll try putting a 30mS sleep in the code at the current resolution to get a feel for it :slight_smile:

/Edit: Putting in a 10mS sleep, actually got me a frame time of 15ms (~60fps) which was still nice and smooth. Putting in a 30mS sleep actually got a frame time of 32ms (~31.25fps). However it was noticeable jerky when rotating. So, probably could increase the display area by a factor of 2 and still have decent performance on slower PCs. i.e. VGA full screen would look nice, but SVGA & XGA would only work on top end hardware. It might be worthwhile to recode to allow the window to be resized, although even this is a challenge as regards code size. :slight_smile:

/Edit 2: Modified game to run at any size window (Not released yet). Getting 20mS frame time at XGA resolution on 2.8GHz PC. Code at 4112 bytes. Maybe start with small frame, but allow manual maximising. Worth persevering :slight_smile:

/Edit 3: The maximise/minimise buttons on the window now work. Additionally the window is resizeable. Thus on a fast machine you can get almost the fullscreen experience. Oh, and were back under 4k again :smiley:

Performance under Mac OS X now fixed. That is the default size of 400x400 is playable again. Maximised the game still runs slow on my Powerbook G4. I tried changing the double buffer type from INT_RGB to INT_ARGB_PRE, but there was no improvement. I guess I’ve just maxed out my mac :slight_smile:

on MacOs -> I can’t see the scary blue monsters ! (yet they can kill me)… :frowning:

fps is smooth (not that fast, but not jerky either) even maximized at 1400*900 (G5 1.8Ghz)

Lilian

If you let the monster get right on top of you, it sometimes is slightly behind you and isn’t drawn. Or do you mean that you can’t see the monsters at all (ever?). It could happen, if I’ve mucked the transparancy up as it’s all being done by manipulating bytes directly. I have to go to work now and will look again at this in the evening.

Thanks
Alan

P.S. Glad it works on the G5 :slight_smile:

I can’t see it, but it’s clearly in frnt of me if I refer to the map, at to myself dying…

Lilian

I’ve modified both the monster transparency logic and made the monsters stand off from you very slightly when they attack and am hoping that one of these changes will help although I’ve been unable to replicate the fault. :smiley:

Alan

How many levels are there? I think I beat level 8 and then it went to level 8 again in a different color… Or I am just crazy! :stuck_out_tongue:

I’ve got to Level 13 so far. Play gets a bit strategic, since if you come out of a tee-junction facing the wrong way, there’s no hope :wink: The levels are generated from random numbers, using the Depth-First maze generation algorithm, so there’s no shortage of levels :slight_smile: Some levels are a bit similar to others by chance, which probably accounts for the level 8 thing.