Quote: "horrible"
NOOO ! iam sad now
Hopefully will it improve later on ?
Quote: "so I'm definitely interested in the progress and how you're doing it."
I will put upp an better explanation when i have improved it some more .
Its extremely rough right now as i have cut alot of the code in pieces! when iam trying to improve it.
But its extremely simple really!
Cast rays towards the segment nodes and the run an check loop to se witch screen segment is closest and then draw it on screen.
I use an closest angle towards the rays angle to do this!
Then adjust the size of them according to its distance towards the player.
You also have to adjust the edges of the raycasting as you will get an wierd wall if not.
Quote: "You can scroll a sprite by changing the UV texture coordinates of each corner (sprites in DBPro are just 3D quad primitives).
You could do it something like this:
(sorry for the DarkGDK code, but the commands are almost the same in DBPro, have a look at the help docs)"
I have hands on dark basic 1-2 books and will cheek them out some more on this command .
iam not sure yet how i will do the texture mapping ?
iam going to experiment some more this weekend.
But one idea is to have the same amount of nodes on the object as its size.
And then cut an image in the same amount as the nodes.
And then if the ray hits node 3 so does the engine know that it should use image 3 from the ones i cut from the first image.
but still abit confused over how i should fix some issues when i get really close to an wall?
Quote: "Say, can we get a new version? - I wanna see how well it's running and analyse visually what's going on."
I will try to put upp the latest version this sunday if its ok?
depends on how much i mess things upp untill then
But dont have to much hope on it more then to see two walls to walk around
Quote: "I don't understand whats going on in each pic?"
Iam simply fooling around with converting 2d space to an fake 3d space where you can walk around in 3d when its actually 2d.
You know about the first wolfensten game or first doom game ?
And iam probably to happy to post images that actually dont make sense to more people then my self on the improvements
But i will try to get better with that
Ps...
thanks kamac
Edited.................
Ok!
Iam ready to be marked as a fool as i have never done anything like this before
But i have included an simple version to show that you can walk around and turn.
But keep in mind that i only have the front side activated on the wall blocks and this code is slow and unoptimized.
And thats why you only see flat walls.
and the view is a bit strange when you move close to a wall and move along it?
And also gets distorted when you get to close.
I will probably rewrite everything later on when i have learned some more
Its to slow in its current version !
Arrow keys to move and turn!
Edited .............
new with improved fps.