Buy Now from Android Marketplace
Buy Now from Android Marketplace
 Deadly Dungeons Forum :: General Discussion
Welcome Guest   [Register]  [Login]
Welcome   by codezombie on 05-07-2010 01:55:58
 Subject :Do you just detect whether I am within a certain number of squares bef.. 12-11-2011 11:49:14 
Grävling
Dungeon Master
Joined: 04-11-2011 16:46:04
Posts: 96
Location
Subject :Do you just detect whether I am within a certain number of squares before casting a spell at me?

Fright seems to go through doors.

Firebolts go around corners.

 

Assume this layout

M M M  M C M M M

M  M M 1 C C M M

M M 2 M C M C M C

C C C C C C C C C

M  M C M C M C M C

M M M M C M M M

 

where M is solid rock mountain, C is corridor, 1 is me and 2 is an undead mage.

 

the ascii art isn't looking very good.  The map looks like 4 plus signs with  a single empty square connecting the 4, each by one of its arms.  I am in the left arm of the north most plus sign.  The monster is in the north arm of the west most plus sign.

 

I claim that the undead mage can blast me with a firebolt from this position and should not be able to.

 

IP Logged
 Subject :Re:Do you just detect whether I am within a certain number of squares .. 12-11-2011 21:23:27 
codezombie
Zombie Programmer
Joined: 14-06-2010 21:54:27
Posts: 345
Location
Subject :Re:Do you just detect whether I am within a certain number of squares before casting a spell at me?

Well, there is tile distance, but there is also a line-of-sight check. The line-of-sight isn't using the 3d geometry. Rather, it is using the 2d tiles to determine if the creature can hit the player with an attack. For 2d line-of-sight, the general rule is that if a side of the tile is visible, then the tile is visible.
IP Logged
Page # 


Powered by ccBoard