Game Development Reference
In-Depth Information
# ...
private
def apply_movement_penalty (speed)
speed * ( 1.0 - @map . movement_penalty(x, y))
end
# ...
end
This makes all tanks move 33% slower on sand.
Search WWH ::




Custom Search