MRPAS field of view algorithm & live demo

117 views
Skip to first unread message

Domas Lapinskas

unread,
Feb 4, 2013, 6:22:19 PM2/4/13
to gam...@googlegroups.com
Hey guys,

I ported MRPAS field of view calculation algorithm to javascript for a rougelike I'm working on.
It's used to calculate what a character can see in a 2d, tile based game.
Couldn't find anything  similar in javascript, so I thought it might be useful to someone else. 

Live demo using gamejs:

Source:

In-detail about the algorithm:

si...@nekapuzer.at

unread,
Feb 5, 2013, 3:13:37 PM2/5/13
to gam...@googlegroups.com
hi domas,
i like it, certainly a bit more readable then the original. and it's so fast. all the crappy self-made FOVs I did were dead slow :P

can't say i grok the algo yet.

simon
> --
> You received this message because you are subscribed to the Google Groups "GameJs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gamejs+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Domas Lapinskas

unread,
Feb 5, 2013, 3:28:45 PM2/5/13
to gam...@googlegroups.com
I don't either, I just translated it from python :P
--
Domas
Reply all
Reply to author
Forward
0 new messages