summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-06-30 03:26:51 +0200
committerAki <nthirtyone@gmail.com>2016-06-30 03:26:51 +0200
commit04185862c45a9c6a671b04f238fad4944320f781 (patch)
tree34b9c337d65f14d4175ecf5da1267a9c94bba916
parentf1d0a1437595782e568ae263c280804358a3b367 (diff)
downloadroflnauts-04185862c45a9c6a671b04f238fad4944320f781.zip
roflnauts-04185862c45a9c6a671b04f238fad4944320f781.tar.gz
roflnauts-04185862c45a9c6a671b04f238fad4944320f781.tar.bz2
Sleep, gah! Some hit sounds
-rw-r--r--menu.lua3
-rw-r--r--world.lua3
2 files changed, 5 insertions, 1 deletions
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