JavaGaming.org

July 30, 2010, 09:44:48 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: [1] 2   Go Down
Print
Author Topic: Legend of the Chambered  (Read 6817 times)
0 Members and 1 Guest are viewing this topic.
Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2083


Mojang Specifications


View Profile WWW
« on: May 24, 2008, 04:24:39 pm »

Legend of the Chambered!
(This isn't a game at all yet, but rather an early version of an engine for a game)


Play now! (Applet, 210KB)

The game runs at 320x240 pixels, and is scaled up to 2x for enhanced playability. Full mouse picking support is implemented, so I can detect exactly what pixel on any surface (wall, floor, sprite) the mouse pointer is currently hovering. The engine supports non-orthogonal walls with no slowdown, but I kinda like the blocky look. Wink

I really, really want to finish this game, so I decided to not use any placeholder graphics, but rather draw everything myself (mostly in paint.net), and it's going better than I hoped. Obviously, those monsters aren't final, but I like the look of the rest.


Let me know if it works!
« Last Edit: May 30, 2008, 06:15:34 pm by Markus_Persson » Logged

Play Minecraft!
kevglass
Guest
« Reply #1 on: May 24, 2008, 04:43:59 pm »

Very cool, works perfectly here no speed or rendering issues. Feels a lot like dungeon master (yes, I know it was 90 degree turns but still). Yay! Win! Smiley

Look forward to seeing where this goes to.

Kev
Logged
Morre
Sr. Member
****
Offline Offline

Gender: Male
Posts: 460


Apocaquatic syntomy.


View Profile WWW
« Reply #2 on: May 24, 2008, 04:50:04 pm »

Doesn't seem to accept input in opera 9.5. :/
Tried it in Firefox, works great. Feels very solid. Movement - and the little bouncing up and down - feels just perfect. I admit to thinking "oh, another columns-raycasting game..." when I saw the screenshot, but it has a great feel to it. Slightly too dark for my taste, and you might want some sky for the woods Wink

In any case, great stuff. Looking forward to seeing more of this.
« Last Edit: May 24, 2008, 04:53:50 pm by Morre » Logged

Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2083


Mojang Specifications


View Profile WWW
« Reply #3 on: May 24, 2008, 04:52:09 pm »

Even after clicking it? I tried to keep the input handling as simple as possible, but I guess I failed. I'll investigate!
Logged

Play Minecraft!
Morre
Sr. Member
****
Offline Offline

Gender: Male
Posts: 460


Apocaquatic syntomy.


View Profile WWW
« Reply #4 on: May 24, 2008, 04:55:39 pm »

Aye, even after focusing it. Sorry!

I updated my post above while you were writing your response, have a look. Oh, and you really should switch that screenshot - since they'll never see the dynamics again, screenshots should always show as much as you possibly can to attract interest - that's my opinion, in any case Smiley

EDIT: Also, I never understood why these games always have so low ceilings... :> Why not make it a head or two higher?

EDIT2: Personally I'd switch Q/E for A/D (turn with A/D) since turning is the primary movement option... but if you're going to incorporate mouse turning somehow then stick with it the way it is.

EDIT3: I'm on the latest weekly build of opera in case it matters. JRE 6 something, methinks. XP SP2.
« Last Edit: May 24, 2008, 05:04:41 pm by Morre » Logged

CommanderKeith
JGO Neuromancer
*******
Online Online

Gender: Male
Posts: 1230


View Profile
« Reply #5 on: May 24, 2008, 06:09:20 pm »

Works great here, WinXP & Firefox, java 6.

I made it to the woods and saw some bad dudes dancing around.

Why don't you use mouse look?
Logged

kingaschi
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 685


Age of Conquest makes your day!


View Profile WWW
« Reply #6 on: May 24, 2008, 07:43:10 pm »

Very cool :-D
Logged

steveyO
Full Member
***
Offline Offline

Gender: Male
Posts: 223



View Profile WWW
« Reply #7 on: May 25, 2008, 01:44:12 am »

Very cool (and smooth too, Firefox).. :-)
Logged

www.bullsquared.com   Play games, make friends, talk Bull!
gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2354


TUER


View Profile WWW
« Reply #8 on: May 25, 2008, 02:04:04 am »

It is an excellent start! It is fast! I will put this in the incubator in the Java(tm) Game Tome, it will be transfered in the list of games when it is more complete. Keep it up! I'm very happy to see a new project of 3D game written in Java!

The first news posted on the Tome will speak about your game. Please let me know the following information:
- who work on this project (full name)?
- what are the technologies involved in the project? Which API? Which engine? Which algorithms for rendering (hardware, software: raycasting, raytracing...) ?
- what is the category of the game?
- what is the story?

If you prefer, write this article and I will post it when the news system is ready. See this as an encouragement.

Just one point, please check if it works fine under Opera. It works fine under Firefox and Iceweasel as far as I know.
« Last Edit: May 25, 2008, 02:39:54 am by gouessej » Logged

Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2083


Mojang Specifications


View Profile WWW
« Reply #9 on: May 25, 2008, 05:01:55 am »

Thanks for all the feedback. =)

I've uploaded a new version with some additional tile types, mouse look support (since it's an applet, I can't recenter the mouse, though..), and a sky in the woods!

I'm going to keep the ceiling that close to the head, though, as I'm trying to make the game feel like a mix between Dungeon Master, Eye of the Beholder, and Ultima Underworld


gouessej:
Neat!

- who work on this project (full name)?
Markus Persson, under the alias Mojang Specifications

- what are the technologies involved in the project? Which API? Which engine? Which algorithms for rendering (hardware, software: raycasting, raytracing...) ?
It uses 100% pure java. I'm going for a definite retro feeling (see the screenshots above), so the game is designed for 320x240 pixels, plus it really helps the framerate.
The rendering:
The floor is a rotozoomer, with some really slow perspective math. It's fast enough, though. Wink
The walls, like in Doom, heavily abuse the fact that they're always aligned to the screen in the y-axis. To get perspective long x, I interpolate over 1/z (which is linear in screen space, yay), and over u*z, which also happens to be linear in screen space.
Sprites are basically just scaled images checked against the zbuffer.
So far, the only thing written to any buffers has been color information, z depth information, and a brightness value per pixel. This brightness is only used for shading walls, and might get optimized away in the future.
When everything has been written, I iterate over the entire screen, calculating true distance based on the z depth information, multiply that by the brightness and the color, then write that to the pixel buffer. I do things this way to avoid having to do the fairly heavy lighting math for each pixel, reducing overdraw, and to keep all the lighting math in a single place.

Walls closest to the player gets rendered first, and there's NO overdraw and NO z-buffer checking at all when rendering walls, thanks to some seriously heavy culling.
Sprites, however, cause quite a bit of overdraw.

- what is the category of the game?
It's a Role Playing Game, meant to feel something like a mix between ultima underworld, eye of the beholder, and dungeon master/dungeon master 2, except possibly a bit more modern.

- what is the story?
I haven't come up with a non-embarrassing story, yet. Probably something about fetching something important, hehe.
Logged

Play Minecraft!
SimonH
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 685



View Profile WWW
« Reply #10 on: May 25, 2008, 05:30:35 am »

Java 1.6? *sigh* I s'pose I should upgrade...
Logged

If you don't try Dungeonsmith,
Then try Bloodridge
erikd
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2439


Maximumisness


View Profile WWW
« Reply #11 on: May 25, 2008, 06:10:48 am »

Really cool, I've always been a fan of Dungeon Master and this looks like it's going to be an enhanced, more action oriented version.
Input also doesn't work here on opera, and there seems to be a bit of flickering sometimes. Works great on IE though.
Logged

irreversible_kev
Full Member
***
Offline Offline

Posts: 172



View Profile
« Reply #12 on: May 25, 2008, 08:07:12 am »

wow this engine looks absolutely awesome!

What I liked about it most is that it was really fun to explore and find the particles, woods, dancing monsters etc...

I really hope it gets a long adventure story with lots of interesting areas to explore so that it feels like a real little world (because I really see so much potential)...

Love it.

(After switching between tabs on firefox I could not reuse the w,a,s,d keys but the mouse still worked)

PS. I think the game closest to this genre I have ever played is Shadowgate Classic on the GB Color
Good memories http://www.youtube.com/watch?v=IfsMtL5cnJA
« Last Edit: May 25, 2008, 08:21:43 am by irreversible_kev » Logged
brackeen
Full Member
***
Offline Offline

Posts: 247


View Profile WWW
« Reply #13 on: May 25, 2008, 09:40:29 am »

Very cool! I like the way the trees sway in the wind. Great lighting, too.

It looks like it doesn't work on Java 5 (java.lang.UnsupportedClassVersionError) - which means it doesn't work on the Mac Sad

EDIT2: Personally I'd switch Q/E for A/D (turn with A/D) since turning is the primary movement option... but if you're going to incorporate mouse turning somehow then stick with it the way it is.
I agree - switch the keys and then you've got WoW-style controls.
Logged

gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2354


TUER


View Profile WWW
« Reply #14 on: May 25, 2008, 01:49:19 pm »

Very cool! I like the way the trees sway in the wind. Great lighting, too.

It looks like it doesn't work on Java 5 (java.lang.UnsupportedClassVersionError) - which means it doesn't work on the Mac Sad
I agree - switch the keys and then you've got WoW-style controls.
On Apple.com:
"Java for Mac OS X 10.5, Update 1 is now available via Software Update.  This update adds Java SE 6 version 1.6.0_05 to 64-bit Intel Macs."

Get Java 1.6 on Apple ADC as my teacher did last year if you can't get it via software update. If Java 1.6 hadn't worked on Mac, my teacher would have been unable to test my project and I would have got a pretty 0/20.
Logged

brackeen
Full Member
***
Offline Offline

Posts: 247


View Profile WWW
« Reply #15 on: May 25, 2008, 02:13:18 pm »

On Apple.com:
"Java for Mac OS X 10.5, Update 1 is now available via Software Update.  This update adds Java SE 6 version 1.6.0_05 to 64-bit Intel Macs."

Get Java 1.6 on Apple ADC as my teacher did last year if you can't get it via software update. If Java 1.6 hadn't worked on Mac, my teacher would have been unable to test my project and I would have got a pretty 0/20.
I guess I should have said, "it doesn't work for the average Mac user."

Java 6 applets on Mac OS X require a 64-bit browser and a user savvy enough to change the default from Java 5. (Or a user savvy enough to use appletviewer). My Mac stats from the past few weeks are showing 10% Java 1.4, 90% Java 5, 0% Java 6. Something to keep in mind when you want to target a wide audience.


« Last Edit: May 25, 2008, 02:58:45 pm by brackeen » Logged

gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2354


TUER


View Profile WWW
« Reply #16 on: May 25, 2008, 03:44:34 pm »

I guess I should have said, "it doesn't work for the average Mac user."

Java 6 applets on Mac OS X require a 64-bit browser and a user savvy enough to change the default from Java 5. (Or a user savvy enough to use appletviewer). My Mac stats from the past few weeks are showing 10% Java 1.4, 90% Java 5, 0% Java 6. Something to keep in mind when you want to target a wide audience.



You're right, only 4 different mac users succeeded to launch my game as far as I know but you should have said "it doesn't work for the average Mac user.". Nevertheless, maybe the author has some particular reasons to use Java 1.6, I know it is my case and I don't use Java 1.6 to bother mac users.
Logged

Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2083


Mojang Specifications


View Profile WWW
« Reply #17 on: May 26, 2008, 01:59:20 am »

I don't actually use any java 1.6 specific code, so this should be pretty easy to fix. =) In fact, other than generics (which are only compile time), it's all 1.4 compatible.
Logged

Play Minecraft!
Bonbon-Chan
Sr. Member
****
Offline Offline

Posts: 273



View Profile
« Reply #18 on: May 26, 2008, 02:25:50 am »

I don't know why but keys didn't work the fisrt time (while i can rotate with the mouse  Huh). Second time, everything works fine (The graphic style remember me Eyes of the beholder  Grin great !).

But... keys are mess up with my azerty keyboard  Wink

Windows XP SP 2, Java 1.6.05, Firefox 2.0.0.14
Logged
ben
JGO n00b
*
Offline Offline

Gender: Male
Posts: 27



View Profile WWW
« Reply #19 on: May 26, 2008, 03:25:37 am »

Wow, this is great!

It really does remind me of Ultima Underworld.

I would love to see this developed further into a full game.

The swaying trees were a very nice touch too.

Keep it up.

Ben.
Logged
Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2083


Mojang Specifications


View Profile WWW
« Reply #20 on: May 26, 2008, 04:06:08 am »

Hihi, found test render of an earlier version of the engine, with placeholder art stolen from google somewhere, and a really hacked together ball particle engine:



The engine supports rendering to disk at 30 fps regardless of actual framerate. If you've got lower fps than 30, it'll still render (exactly) 30 fps to disk. The game will obviously run at lower than normal speed when that happens, but playing back the video will show it at full speed. Cheesy
Logged

Play Minecraft!
Orangy Tang
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2557


Monkey for a head


View Profile WWW
« Reply #21 on: May 26, 2008, 04:13:35 am »

Doesn't accept input in Opera here, even after frantic clicking and switching between tabs. Sad
Logged

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2354


TUER


View Profile WWW
« Reply #22 on: May 26, 2008, 07:56:15 am »

I don't know why but keys didn't work the fisrt time (while i can rotate with the mouse  Huh). Second time, everything works fine (The graphic style remember me Eyes of the beholder  Grin great !).

But... keys are mess up with my azerty keyboard  Wink

Windows XP SP 2, Java 1.6.05, Firefox 2.0.0.14

You're right Bonbon-Chan, it would be better to handle this case as I did in TUER, I used a solution that is fine with an azerty and a qwerty keyboard.
Logged

Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2083


Mojang Specifications


View Profile WWW
« Reply #23 on: May 26, 2008, 02:27:13 pm »

New version up, seems to accept keyboard input in opera, although you might have to click the applet TWICE (for some reason..) first. And the framerate REALLY sucks in opera. :-( [edit:] No, it doesn't, nevermind. Wink

There are items you can pick up now. =D Check out the woods.

Oh, and I've added some more keys for moving around; the arrow keys and the numpad. Also, it should work on java 1.5 now.
« Last Edit: May 26, 2008, 02:39:02 pm by Markus_Persson » Logged

Play Minecraft!
SimonH
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 685



View Profile WWW
« Reply #24 on: May 26, 2008, 05:29:38 pm »

1.5 works great - love it - Eye of the Beholder in an applet! Especially like the particles & jiving zombies  Grin
I'd slow the walk down a bit though - make 'em scared to turn that corner...
Get it fully functional and here's a very playable game!

Logged

If you don't try Dungeonsmith,
Then try Bloodridge
gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2354


TUER


View Profile WWW
« Reply #25 on: May 26, 2008, 10:23:11 pm »

New version up, seems to accept keyboard input in opera, although you might have to click the applet TWICE (for some reason..) first. And the framerate REALLY sucks in opera. :-( [edit:] No, it doesn't, nevermind. Wink

There are items you can pick up now. =D Check out the woods.

Oh, and I've added some more keys for moving around; the arrow keys and the numpad. Also, it should work on java 1.5 now.
Could you use Z too to walk forward please? It is not used yet and it would be easier for french users.
Logged

Bonbon-Chan
Sr. Member
****
Offline Offline

Posts: 273



View Profile
« Reply #26 on: May 26, 2008, 11:59:41 pm »

Qwerty keyboard :

QWE
ASD
ZXC

Azerty keyboard (french) :

AZE
QSD
WXC

Qwertz keyboard (germany) :
QWE
ASD
YXC

And i don't speak of other keyboards (arabian, korean, ...)

For French user, the Z is free but A and Q are switched
Logged
markus.borbely
Full Member
***
Offline Offline

Posts: 137


View Profile
« Reply #27 on: May 27, 2008, 03:36:33 am »

It worked on Mac os X Leopard, starting it with the appletviewer. Good framerate. This looks really promising. But I know that it is a huge amount of work to build something with a story. I have tried it.

The engine looks nice but the textures could be a little bit more highres. Is it possible? What is the plans? Need help?
Logged
Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2083


Mojang Specifications


View Profile WWW
« Reply #28 on: May 27, 2008, 04:09:43 am »

I LIKE lowres, so I'm going to keep it like that. It's part of the look, plus it helps keep the game small. =)

And I'm going to try to finish this on my own, but thanks.
Logged

Play Minecraft!
thijs
Full Member
***
Offline Offline

Gender: Male
Posts: 183

Lava games rock!


View Profile WWW
« Reply #29 on: May 27, 2008, 01:03:25 pm »

Good call on the lowres, makes it feel cozy! Smiley

What do you use to render the maze? Using an BSP tree ala doom or "raycasting" like wolfenstein does?
Logged

Pages: [1] 2   Go Up
Print
 
Jump to: