Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm curious as to how games like Prelude of the chambered handle graphics. If you play for a bit you will see what I mean. It made me wonder how it works. (it is open-source so you can get the source on This page) I did find a few tutorials but I couldn't undertand some of the stuff but it did help with some things. However, I don't like doing things I don't understand. Does anyone know of any good sites for this kind of 2.5D? Any help is appreciated. After all I've been googling all day. Thanks :)

share|improve this question
Have you taken a look at the orginal 'Doom' source code? It uses a similar technique. – Vaughan Hilts Jul 28 '12 at 23:16
@Vaughan Isn't doom a ray caster? I don't think the game I linked is a ray caster. I don't know where I could get the code anyway. And I probably wouldn't understand it either. – Aidan Mueller Jul 28 '12 at 23:33
It -is- a Raycaster, but it does achieve a similar effect to what you want. I added it as a comment simply because it might be something you'd like to look at. However, I've added an answer below that might help some more. – Vaughan Hilts Jul 28 '12 at 23:42
Great question +1 for helping clear this issue up – Arthur Wulf White Sep 27 '12 at 8:33

4 Answers

There are a couple of (very) old tutorials on Wolfenstein-style raycasting written by Peroxide. Search for "pxdtut7.zip" and "pxdtut8.zip". The code is written in Pascal but the concepts are explained very well.

share|improve this answer
1  
Links would be nice, otherwise searching for these files will most probably show Stack Exchange and other programming sites in future. That's what I found: programmersheaven.com/download/6287/ZipFileList.aspx , findthatzip.com/search-500950-fZIP/… – Markus von Broady Oct 14 '12 at 14:31

Here's a very detailed tutorial: Creating pseudo 3D games with HTML 5 canvas and raycasting. The key search term is "pseudo 3d game."

enter image description here enter image description here


Also I posted the text of the tutorials scgrn mentioned. (I think I read these a long time ago. I remember the ASCII diagrams!)

share|improve this answer

http://www.permadi.com/tutorial/raycast/index.html

Best tutorial on raycasting i could find when i was researching the topic a couple years back. It's pure theory, no programming. Other than that i suggest you read about the Doom engine and the Build engine. Reading the source code is IMHO far too time consuming (it's pure C and ASM, plus plenty of irrelevant technology quirks) if you just want to understand raycasting. Reading ABOUT the engines however can give you ideas on how to solve advanced issues like doors (as funny as that sounds), check the wiki first.

Here's a great code review by Fabien Sanglard: http://fabiensanglard.net/doomIphone/doomClassicRenderer.php

share|improve this answer

I'm not sure on the specifics, but I got a few ideas just by browsing through the source-code of the game @ https://github.com/skeeto/Prelude-of-the-Chambered/tree/master/src/com/mojang/escape

Maybe you can find some things there that will help you.

EDIT: I noticed you had linked to the page, but I meant to specifically link to this file: https://github.com/skeeto/Prelude-of-the-Chambered/blob/master/src/com/mojang/escape/gui/Bitmap3D.java

share|improve this answer
I've already seen that file but I don't get it! I just need an understandable resource which explains this. Thanks for trying though. And if you do find something please let me know :) – Aidan Mueller Jul 29 '12 at 0:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.