FOV engine

Post your own tutorials, guides and demos.

Post » Tue Jun 29, 2010 10:08 pm

Here is an example of a field of view engine using the image manipulator. I just used over sized pixels for the example but it is easy enough to use sprites instead. The advantage of using the image manipulator as opposed to a canvas is a very small amount of memory is used (a 20x30 pixel image for a 640x960 pixel layout with 32 pixel tiles).

Enjoy
B
85
S
27
G
78
Posts: 5,011
Reputation: 54,256

Post » Wed Jun 30, 2010 12:26 am

That's quite cool. 8) I tried it as far out as a 5-tile radius (range 160), and it performed nicely, with relatively few artifacts.

I like the use of the image manipulator, too.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest