diff --git a/conf.lua b/conf.lua index 53fd19b..51851f2 100644 --- a/conf.lua +++ b/conf.lua @@ -5,7 +5,7 @@ function love.conf(t) t.modules.joystick = false t.window.title = "Fysplane" - t.window.width = 1024 + t.window.width = 1280 t.window.height = 768 t.window.resizable = false diff --git a/level.lua b/level.lua index ea0abdc..53eeaa7 100644 --- a/level.lua +++ b/level.lua @@ -50,8 +50,8 @@ Level = Class{ insertGround = function(self) groundImg = love.graphics.newImage('tiles/grasstop.png') - for i = 0, 64, 1 do - Rectangle(i * 16, 768, self, "static", 0, 16, 16, 0, groundImg) + for i = 0, love.window.getWidth() / 16 + 1, 1 do + Rectangle(i * 16, love.window.getHeight(), self, "static", 0, 16, 16, 0, groundImg) end end; }