Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3409fdfa73
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.588 kB
require 'level'
require 'map'
require 'generators/map_generator'
require 'views/map_view'
require 'entities/entity'
require 'entities/beach'
require 'entities/wave'
MapState = class("MapState", GameState)
function MapState:initialize()
self.level = Level(1, 1)
self.view = MapView(self.level.map)
game.renderer.map_view = self.view
self.view:update()
self.view.map = self.level.map
end
function MapState:draw()
self.view:draw()
love.graphics.print("FPS: "..love.timer.getFPS(), 10, 20)
end
function MapState:update(dt)
self.level:update(dt)
self.view:update()
end
Jump to Line
Something went wrong with that request. Please try again.