Search found 3 matches

by nulldorf
Wed Feb 25, 2009 4:28 am
Forum: Support and Development
Topic: Raycasting help
Replies: 7
Views: 2606

Re: Raycasting help

Thanks for the advice! The raycasting sample posted above proved just how much of a begginer I am at Love. That code is quite elegent compared to mine...and a lot shorter. But progress is being made! Rather than drawing every pixel, it is much easier to use love.graphics.draws to take a slice of a t...
by nulldorf
Tue Feb 24, 2009 7:20 pm
Forum: Support and Development
Topic: Raycasting help
Replies: 7
Views: 2606

Re: Raycasting help

Thanks for the tip. I wasn't doing that before. I changed the code and got a 50% fps increase when flush with a wall (so that the rendering algorithm is literally drawing every pixel on the screen) unfortunately 50% was a bump from 4 to 6. It's a start though. I haven't worked with c since college, ...
by nulldorf
Tue Feb 24, 2009 6:08 pm
Forum: Support and Development
Topic: Raycasting help
Replies: 7
Views: 2606

Raycasting help

Hey guys! First post and glad to be here. Love2D is awesome, but I have some questions. I've written a simple raycasting engine in Love, and now I'm working on adding textured walls. In order to texture the walls I have to compare the image for the wall and the pixels in the wall itself, figure out ...