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
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

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 2 guests