User Tools

Site Tools


jill:algo:bees

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
jill:algo:bees [2014/09/01 13:41]
emeric Add comment to moveY
jill:algo:bees [2014/09/09 12:28] (current)
emeric [Algorithme to move bees :] update moveY
Line 20: Line 20:
  
 ^ c ^ 0-3 ^ 4-10 ^ 11-14 ^ 15-26 ^ 27-30 ^ 31 ^ Comment ^ ^ c ^ 0-3 ^ 4-10 ^ 11-14 ^ 15-26 ^ 27-30 ^ 31 ^ Comment ^
-| moveY | -3 to 3 | -4 to 4 | -3 to 3 | 0 | -1 to 1 | -2 to 2 if player is on same Y. If not, use  sign to goto palyer ​|+| moveY | random(0-3random(0-4random(0-3| 0 | random(0-1random(0-2If player is not on same Y, use sign to go to player. If player is on same Y, use sign inverted last yd. |
 | moveX | 1 | 0 | 1 | random(2-4) | random(2-4) | random(2-4) | | | moveX | 1 | 0 | 1 | random(2-4) | random(2-4) | random(2-4) | |
  
 Now : Now :
 <​code>​ <​code>​
-//iYD// = random(moveY[c])+//iYD// = moveY[c]
 //iXD// = moveX[c] //iXD// = moveX[c]
 </​code>​ </​code>​
jill/algo/bees.txt ยท Last modified: 2014/09/09 12:28 by emeric