diff options
author | Aki <nthirtyone@gmail.com> | 2016-06-30 03:26:51 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-06-30 03:26:51 +0200 |
commit | 04185862c45a9c6a671b04f238fad4944320f781 (patch) | |
tree | 34b9c337d65f14d4175ecf5da1267a9c94bba916 | |
parent | f1d0a1437595782e568ae263c280804358a3b367 (diff) | |
download | roflnauts-04185862c45a9c6a671b04f238fad4944320f781.zip roflnauts-04185862c45a9c6a671b04f238fad4944320f781.tar.gz roflnauts-04185862c45a9c6a671b04f238fad4944320f781.tar.bz2 |
Sleep, gah! Some hit sounds
-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 |