Method: Core::Game::MapLoader#update

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

#updateObject



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/game/map/map_loader.rb', line 132

def update
  if !@message
    @objects.each { |obj|
      obj.setup if obj.do_setup?
      obj.update
      if obj.dead?
        @objects.delete(obj)
      end
    }
    @misc.each { |obj|
      obj.update
    }
    @fog.update if @fog
  else
    if Core.window.pressed?(Gosu::KbSpace)
      @message = false
    end
  end
end