Skip to main content
deleted 8 characters in body
Source Link
Zaky German
  • 1.1k
  • 2
  • 12
  • 16

Examples of what i'm going to need: enter image description here enter image description here

I'm using cocos2d to draw a CCTMXTiledMap, on those tiles i'll have to draw the LOS trianglecone.

How would i test if the player is within that trianglecone, taking obstacles into account? How would i draw the line of sight area on the map tiles, again taking obstacles into account, like in the examples above?

This is a re-post of a question i've put on stackoverflow.

Examples of what i'm going to need: enter image description here enter image description here

I'm using cocos2d to draw a CCTMXTiledMap, on those tiles i'll have to draw the LOS triangle.

How would i test if the player is within that triangle, taking obstacles into account? How would i draw the line of sight area on the map tiles, again taking obstacles into account, like in the examples above?

This is a re-post of a question i've put on stackoverflow.

Examples of what i'm going to need: enter image description here enter image description here

I'm using cocos2d to draw a CCTMXTiledMap, on those tiles i'll have to draw the LOS cone.

How would i test if the player is within that cone, taking obstacles into account? How would i draw the line of sight area on the map tiles, again taking obstacles into account, like in the examples above?

This is a re-post of a question i've put on stackoverflow.

Tweeted twitter.com/#!/StackGameDev/status/66158077254172672
Source Link
Zaky German
  • 1.1k
  • 2
  • 12
  • 16

top down game - checking, drawing enemy's line of sight area with obstacles

Examples of what i'm going to need: enter image description here enter image description here

I'm using cocos2d to draw a CCTMXTiledMap, on those tiles i'll have to draw the LOS triangle.

How would i test if the player is within that triangle, taking obstacles into account? How would i draw the line of sight area on the map tiles, again taking obstacles into account, like in the examples above?

This is a re-post of a question i've put on stackoverflow.