Heatmap and resources

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wobbly
    Prophet
    • May 2012
    • 2631

    Heatmap and resources

    How expensive is the heatmap used for pathing? Obviously, not to bad, but I'm interested in what happens if you use 2, 3 or 4 etc.
  • Pete Mack
    Prophet
    • Apr 2007
    • 6883

    #2
    It'll be very expensive if you make one for PASS_WALL/KILL_WALL, when every single square needs to be included. (Maybe you can make one that only has computed values when adjacent to perma-wall. Maybe.)

    Comment

    • wobbly
      Prophet
      • May 2012
      • 2631

      #3
      Thanks. I was considering passwall so I can weigh rock differently to open space. Perhaps I can bubble it? Only compute 15 wall squares round the player? 30*30 or 900 squares?

      Comment

      • Pete Mack
        Prophet
        • Apr 2007
        • 6883

        #4
        I was thinking of one only on squares adjacent to PERMA_WALL. Otherwise go straight towards the player.

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎