summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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