recursive shadowcasting FOV in ascii rogue

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
pch
Prole
Posts: 32
Joined: Sun Mar 04, 2012 5:17 pm
Location: poland

recursive shadowcasting FOV in ascii rogue

Post by pch »

hello

that's just a demo of WORKING fov- I followed a tutorial and managed to make it work:)

enter - generate a new level
arrows - move
esc - quit

pls post any comments: bad and good :)
Attachments
game_12-mar.love
(189.67 KiB) Downloaded 334 times
Last edited by pch on Thu Mar 15, 2012 9:29 am, edited 4 times in total.
User avatar
teh8bits
Citizen
Posts: 52
Joined: Fri Mar 09, 2012 9:18 pm
Location: The Matrix
Contact:

Re: recursive shadowcasting FOV in ascii rogue

Post by teh8bits »

:O
Vury nice
User avatar
pch
Prole
Posts: 32
Joined: Sun Mar 04, 2012 5:17 pm
Location: poland

Re: recursive shadowcasting FOV in ascii rogue

Post by pch »

thanks, but I just found a small problem :( - need to fix it
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: recursive shadowcasting FOV in ascii rogue

Post by coffee »

Nice, seems working well but ambient is limited. Trying to find flaws. Do you mind add some columns to your rooms? :)
User avatar
pch
Prole
Posts: 32
Joined: Sun Mar 04, 2012 5:17 pm
Location: poland

Re: recursive shadowcasting FOV in ascii rogue

Post by pch »

if you want to change the size of whole level:
main.lua: mapH, mapW

if more rooms needed:
main.lua: generateMap(a,b,c)
a - how many times the map will be divided
b - min room size including walls
c- not used

this generateMap is called twice in main.lua: in love.load and in keyPress Enter

eta:
COLUMNS!! - sorry but after writing that for the whole day my brain seems to slow down a bit:)
I'll try to.
Last edited by pch on Wed Mar 14, 2012 11:46 pm, edited 1 time in total.
User avatar
teh8bits
Citizen
Posts: 52
Joined: Fri Mar 09, 2012 9:18 pm
Location: The Matrix
Contact:

Re: recursive shadowcasting FOV in ascii rogue

Post by teh8bits »

You should load maps from a txt file, that would be awesome ;P
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: recursive shadowcasting FOV in ascii rogue

Post by coffee »

pch wrote: COLUMNS!! - sorry but after writing that for the whole day my brain seems to slow down a bit:)
I'll try to.
lol, np. I think why know why I'm suggesting add them. your rooms were too open and haven't real obstacles so we could see the view intersections with various blocked objects. take your time and go sleep first... :)
User avatar
pch
Prole
Posts: 32
Joined: Sun Mar 04, 2012 5:17 pm
Location: poland

Re: recursive shadowcasting FOV in ascii rogue

Post by pch »

well, columns are already implemented (not in attachement yet) but there is a problem with algoritm now.
it was much better without collumns:)

will update it tommorow.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: recursive shadowcasting FOV in ascii rogue

Post by coffee »

pch wrote:well, columns are already implemented (not in attachement yet) but there is a problem with algoritm now.
it was much better without collumns:)

will update it tommorow.
You do well. Get some rest.
I bet it looks better without columns but with them you could notice eventual sight problems.
It's about your FOV be too 45 angle degrees? I noticed that usually rogue FOV's are more "streched"...
User avatar
pch
Prole
Posts: 32
Joined: Sun Mar 04, 2012 5:17 pm
Location: poland

Re: recursive shadowcasting FOV in ascii rogue

Post by pch »

visible area is divided by 8 (so 45 deg each) - you can see the borders (overlapping "O"make the lines brighter)
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Nikki and 2 guests