diff options
-rw-r--r-- | menu.lua | 3 | ||||
-rw-r--r-- | world.lua | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -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 @@ -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 |