Skip to content

Commit

Permalink
Switch to 32x32 and make map fit display everytime
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK32 committed Dec 16, 2012
1 parent 87e82ca commit f162a5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf.lua
Expand Up @@ -3,6 +3,6 @@ function love.conf(c)
c.title = "Kollum: The Pressure Valve - " .. game.version
c.author = "Thomas R. Koll"
c.screen.width = 1024
c.screen.height = 576
c.screen.height = 640
end

6 changes: 4 additions & 2 deletions level.lua
Expand Up @@ -5,8 +5,10 @@ function Level:initialize(level, seed)
self.level = level
self.seed = seed
SimplexNoise.seedP(self.seed + self.level)
self.map = Map(40, 23)
self:placeExit({self.level + 1, self.level - 1}, self.seed)
self.map = Map(
math.floor(love.graphics.getWidth() / MapView.tile_size.x)-1,
math.floor(love.graphics.getHeight() / MapView.tile_size.y)-1)
self:placeExit({self.level + 1}, self.seed)

self:placeHero()
self:placeVillain()
Expand Down
2 changes: 1 addition & 1 deletion views/map_view.lua
Expand Up @@ -2,7 +2,7 @@
MapView = class("MapView", View)
MapView:include({
map = nil,
tile_size = {x = 24, y = 24},
tile_size = {x = 32, y = 32},
cursor_position = { x = 14, y = 11 },
top_left = { x = 0, y = 0 }, -- offset
draw_cursor = false,
Expand Down

0 comments on commit f162a5d

Please sign in to comment.