Method: Core::Game::Fog#update

Defined in:
lib/game/map/fog.rb

#updateObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/game/map/fog.rb', line 12

def update
  @x += @sx
  @y += @sy
  if @x > 1024
    @x = 0.0
  elsif @x < 0
    @x = 1024.0
  end
  if @y > 768.0
    @y = 0
  elsif @y < 0
    @y = 768.0
  end
end