Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Showcase your libraries, tools and other projects that help your fellow love users.
MasterLee
Party member
Posts: 141
Joined: Tue Mar 07, 2017 4:03 pm
Contact:

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Post by MasterLee » Fri Apr 14, 2017 6:19 pm

Could you make an portal? An wall that when hit by ray is not rendered but instead the ray continuous at another wall? So both walls are connected somehow and when the player walks trough the wall he is warped?

User avatar
Davidobot
Party member
Posts: 1126
Joined: Sat Mar 31, 2012 5:18 am
Location: Game-Dev. Land
Contact:

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Post by Davidobot » Fri Apr 14, 2017 7:19 pm

MasterLee wrote:
Fri Apr 14, 2017 6:19 pm
Could you make a portal? A wall, that when hit by a ray is not rendered itself, but instead the ray continues on from another wall? So both walls are connected somehow and when the player walks through the said wall he is warped to the other one?
This is certainly a very interesting idea! It would be doable, and I actually have a version of this raycaster that has "cameras" (basically, just different viewpoints that can be draw). This "portal" mechanic would just mean drawing a "camera" on a wall and having a player teleport trigger when he collides with the specific wall.
I would löve to experiment with this myself, but I'm currently working full-time on another LOVE project, which I would like to finish for an eventual commercial release. Maybe I'll get around to making a Portal-esque game in this raycasting library as my last salute to this. Although it would be severely limited, I can think of a few ways it would be fun to play around with. :)
My library:
LovelyMoon

Check out my current project:
Raycaster

Oh hey, I have a website now!

User avatar
yetneverdone
Party member
Posts: 245
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Post by yetneverdone » Thu Jul 06, 2017 4:33 am

How would you go about making a level? I saw in your code that you have different tables per floor, walls, etc. Do you have a map editor or something?
Also, please make a library for making 3D stuffs like this too. That would really be helpful! Or maybe just document the code :) Awesome work

User avatar
Davidobot
Party member
Posts: 1126
Joined: Sat Mar 31, 2012 5:18 am
Location: Game-Dev. Land
Contact:

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Post by Davidobot » Mon Jul 10, 2017 5:23 am

yetneverdone wrote:
Thu Jul 06, 2017 4:33 am
How would you go about making a level? I saw in your code that you have different tables per floor, walls, etc. Do you have a map editor or something?
So the levels are stored are in the 3 2D arrays that you mentioned. I just punch in the values manually, but it shouldn't be too hard to write a TILED or image importer.
yetneverdone wrote:
Thu Jul 06, 2017 4:33 am
Also, please make a library for making 3D stuffs like this too. That would really be helpful! Or maybe just document the code :) Awesome work
Well, this is pseudo-3D and I've gotten this request multiple times now. I think I should try to make this into a library at some point, but the code is pretty old and I have other projects going on right now. So I'll see how it goes, sorry and thanks.
My library:
LovelyMoon

Check out my current project:
Raycaster

Oh hey, I have a website now!

User avatar
yetneverdone
Party member
Posts: 245
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Post by yetneverdone » Mon Jul 10, 2017 7:41 am

Davidobot wrote:
Mon Jul 10, 2017 5:23 am
yetneverdone wrote:
Thu Jul 06, 2017 4:33 am
How would you go about making a level? I saw in your code that you have different tables per floor, walls, etc. Do you have a map editor or something?
So the levels are stored are in the 3 2D arrays that you mentioned. I just punch in the values manually, but it shouldn't be too hard to write a TILED or image importer.
yetneverdone wrote:
Thu Jul 06, 2017 4:33 am
Also, please make a library for making 3D stuffs like this too. That would really be helpful! Or maybe just document the code :) Awesome work
Well, this is pseudo-3D and I've gotten this request multiple times now. I think I should try to make this into a library at some point, but the code is pretty old and I have other projects going on right now. So I'll see how it goes, sorry and thanks.
Please do so! It will be very helpful

User avatar
4aiman
Party member
Posts: 218
Joined: Sat Jan 16, 2016 10:30 am

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Post by 4aiman » Sun Oct 29, 2017 9:14 am

If anyone would make this in a library then please (!!!) mind Android too.
Currently the latest demo doesn't work on a pretty decent HW (Adreno 530 GPU, 4 Gigs of RAM, 4x2.4GHz core) due to the heavy shader usage (at least I believe that's the root of all problems).

Cheers!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests