summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-13 21:58:57 +0200
committerAki <nthirtyone@gmail.com>2016-05-13 21:58:57 +0200
commit35be9645afbc83146a8e0b7d5d52dcafd136d1d8 (patch)
treee69665a207c98bd024840e3d8d42af1dd2a1293c /main.lua
parent14d7e5e8d94059c377214b578253e75157db3cd7 (diff)
downloadroflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.zip
roflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.tar.gz
roflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.tar.bz2
Scale fix
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.lua b/main.lua
index 71eba7c..bee3ef3 100644
--- a/main.lua
+++ b/main.lua
@@ -19,10 +19,10 @@ function love.load ()
-- Platforms (`Ground`)
Platforms = {}
- table.insert(Platforms, Ground:new(world, 290/2, 180/2, {-91,0, 90,0, 90,10, 5,76, -5,76, -91,10}, "assets/platform_big.png"))
- table.insert(Platforms, Ground:new(world, 290/2+140, 180/2+50, {-26,0, 26,0, 26,30, -26,30}, "assets/platform_small.png"))
- table.insert(Platforms, Ground:new(world, 290/2-140, 180/2+50, {-26,0, 26,0, 26,30, -26,30}, "assets/platform_small.png"))
- table.insert(Platforms, Ground:new(world, 290/2, 180/2-50, {-17,0, 17,0, 17,17, -17,17}, "assets/platform_top.png"))
+ table.insert(Platforms, Ground:new(world, 290/2, 180/2, {-91,1, 90,1, 90,10, 5,76, -5,76, -91,10}, "assets/platform_big.png"))
+ table.insert(Platforms, Ground:new(world, 290/2+140, 180/2+50, {-26,1, 26,1, 26,30, -26,30}, "assets/platform_small.png"))
+ table.insert(Platforms, Ground:new(world, 290/2-140, 180/2+50, {-26,1, 26,1, 26,30, -26,30}, "assets/platform_small.png"))
+ table.insert(Platforms, Ground:new(world, 290/2, 180/2-50, {-17,1, 17,1, 17,17, -17,17}, "assets/platform_top.png"))
-- Nauts (`Player`)
Nauts = {}
@@ -59,7 +59,7 @@ function love.keypressed (key)
end
--
if key == "z" then
- camera.scale = (camera.scale % 2) + 1
+ camera.scale = (camera.scale % 4) + 1
end
-- Players
for k,naut in pairs(Nauts) do