From 00b5f301cfc8d78fc2b8b9e6fba3a70d20648ea7 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 20 Jun 2017 02:16:21 -0400 Subject: [PATCH] placing --- main.lua | 2 ++ menu.lua | 15 +++++++++++++++ place.ogg | Bin 0 -> 5839 bytes player.lua | 29 ++++++++++++++++++++++++----- 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 place.ogg diff --git a/main.lua b/main.lua index 8f285e1..a192492 100644 --- a/main.lua +++ b/main.lua @@ -26,7 +26,9 @@ function love.load() love.graphics.setFont(font) + minesound = love.audio.newSource("mine.ogg", "static") + placesound = love.audio.newSource("place.ogg", "static") end diff --git a/menu.lua b/menu.lua index a542746..1346464 100644 --- a/menu.lua +++ b/menu.lua @@ -62,7 +62,22 @@ function menu.draw() love.graphics.setFont(fontmed) love.graphics.setColor(255,255,255,255) love.graphics.print("Score:"..tostring(math.random(0,20000000)), 400,110) + + --debug mining + if player.mining == true then + love.graphics.setColor(255,0,0,255) + love.graphics.print("Mining", 400,180) + love.graphics.setColor(128,128,128,255) + love.graphics.print("Placing", 560,180) + + elseif player.mining == false then + love.graphics.setColor(128,128,128,255) + love.graphics.print("Mining", 400,180) + love.graphics.setColor(255,0,0,255) + love.graphics.print("Placing", 560,180)love.graphics.print("PosX:"..player.playerx.." PosY:"..player.playery, 400,150) + end --debug player's pos + love.graphics.setColor(255,255,255,255) love.graphics.print("PosX:"..player.playerx.." PosY:"..player.playery, 400,150) end diff --git a/place.ogg b/place.ogg new file mode 100644 index 0000000000000000000000000000000000000000..7a05e15e4441d212ad8e28aee5ca227e13e4c8a1 GIT binary patch literal 5839 zcmb7I2{_bU+y7g#r^yzghR6)2jHQes#y<8jBTJHfR}5OG^cX^tWlUnoHe_s(5i05F zLD^CmBAt@NZ&-ZSIr`MTck`rh~Y&UNO@ng9Ji_kHf=ckcU)LtvmY#0&l19A@{) za;ER>c4Bz8@x&gD@(Ct!9`Kk|alRm^ZIFli-NfU-S@}=ntmIH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