From 04185862c45a9c6a671b04f238fad4944320f781 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 30 Jun 2016 03:26:51 +0200 Subject: Sleep, gah! Some hit sounds --- menu.lua | 3 ++- world.lua | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/menu.lua b/menu.lua index e7841a2..f4195c8 100644 --- a/menu.lua +++ b/menu.lua @@ -72,6 +72,7 @@ function Menu:draw() love.graphics.setFont(Bold) love.graphics.printf("ROFLNAUTS2",(w/2)*scale,(30)*scale,336,"center",0,scale/2,scale/2,168,12) love.graphics.setFont(Font) + love.graphics.printf("Game made by Awesomenauts Community\nAyy lmao\n0123456789\nBased on game by Vlambeer and so on...", (w/2)*scale, (h-30)*scale, 336, "center", 0, scale, scale, 168, 4) end function Menu:update(dt) @@ -148,4 +149,4 @@ end function Menu:startGame() local world = World:new("default", self:getNauts()) changeScene(world) -end \ No newline at end of file +end diff --git a/world.lua b/world.lua index 86a8ab1..2207e00 100644 --- a/world.lua +++ b/world.lua @@ -361,6 +361,9 @@ function World.beginContact(a, b, coll) b:getUserData().jumpdouble = true b:getUserData().salto = false b:getUserData():createEffect("land") + end + local vx, vy = b:getUserData().body:getLinearVelocity() + if math.abs(x) == 1 or y == -1 then b:getUserData():playSound(3) end end -- cgit v1.1