View Single Post
  #28  
Old 08-27-2010, 05:49 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by salesman View Post
Era's movement system could use some serious optimization. Last I saw it there was a lot of redundancy in the onWall() checks which is probably what's causing the slowdown (srry i was 2 lazy 2 fix).
No redundancy. Four calls. One for stuff directly in front of the player, one for non-blocking tiles a bit ahead of the player (to get out of walls if stuck), and these two repeated with my own function to check for tiletypes 9 and 10 as "walls" (which you can shoot through, but not walk through).
Reply With Quote