Raycasting Demo (like Wolfenstein3D, just veery basic)
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
- Attachments
-
- raycast5.love
- (3 KiB) Downloaded 216 times
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
awesomes xD
also lol at 10deg/second turn speed
Ignore me, I have nothing constructive to offer. I'm not of the Wolfenstein generation...
also lol at 10deg/second turn speed
Ignore me, I have nothing constructive to offer. I'm not of the Wolfenstein generation...
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
Use mouse.qubodup wrote:awesomes xD
also lol at 10deg/second turn speed
Ignore me, I have nothing constructive to offer. I'm not of the Wolfenstein generation...
I wonder what the original creator would think of us messing with this so actively as a community.
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
I think he'd be fine.Gerrit wrote:Have fun with this demo. Change some parameters, make a maze out of it or try to render textures to the walls If you're done with that, add enemies. And doors. And german shepherds
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
People messing with your forum code is rather flattering, I'd say. Since we don't seem to have a kudos system, I mean.
(USER MIGHT BE BANNED FOR THIS POST.)
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
Wow, some nice additions to the controls here :-)
1) a Z buffer (basically store the ray length in an table) then use it to determine what part of the sprites should be shown (using quads). Then:
2) draw the walls
3) draw the sliced sprites in Z order.
I could also implement some kind of fog effect easily.
I don't have any idea about how to implement billboards in a fast way, though.
Futile? Off course! But soooo funpekka wrote:Neat stuff, though there is a slight element of futility in doing this all in pure Lua with Löve .
Sure!. The sprites shouldn't be too hard to implement.pekka wrote:Since you're intent on doing this, have you though yet about placing billboards and mobile sprites in the scenery?
1) a Z buffer (basically store the ray length in an table) then use it to determine what part of the sprites should be shown (using quads). Then:
2) draw the walls
3) draw the sliced sprites in Z order.
I could also implement some kind of fog effect easily.
I don't have any idea about how to implement billboards in a fast way, though.
Hermaphroditism is not a crime. -- LSB Superstar
All code published with this account is licensed under the Romantic WTF public license unless otherwise stated.
All code published with this account is licensed under the Romantic WTF public license unless otherwise stated.
Who is online
Users browsing this forum: No registered users and 1 guest