diff options
author | ubq323 <ubq323@ubq323.website> | 2023-06-19 05:36:12 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-06-19 05:36:12 +0100 |
commit | abc57f1c5a4fcf90acc650989f3dbf52b7609e9a (patch) | |
tree | bebee9469fae4aaf26216478ab66b7c332cde1d3 /client/game.lua | |
parent | 16f350963e8b696690534cab2fd3b6eb681731c1 (diff) |
fix trailing whitespace
Diffstat (limited to 'client/game.lua')
-rw-r--r-- | client/game.lua | 80 |
1 files changed, 38 insertions, 42 deletions
diff --git a/client/game.lua b/client/game.lua index 081bcb7..1a6cd54 100644 --- a/client/game.lua +++ b/client/game.lua @@ -95,7 +95,6 @@ function SCENE.keypressed(key,scancode,isrepeat) if boffs then this_chatmsg = this_chatmsg:sub(1,boffs-1) end - end end end @@ -263,7 +262,6 @@ local function update(dt) map:remove_chunk(cp) end end - handle_net() end @@ -271,7 +269,7 @@ end local function draw() love.graphics.clear(1,1,1) love.graphics.origin() - + camera.pos = local_player.pos camera:apply_trans() @@ -306,7 +304,6 @@ local function draw() love.graphics.polygon("line",verts) end - love.graphics.origin() -- selected tile (temp) @@ -316,45 +313,44 @@ local function draw() if _G.debugmode and local_player then util.print_good(table.concat({ - "ms "..tostring(sm), - "mw "..tostring(wm), - "mh "..tostring(hm).." "..tostring(hm:round()), - "", - "pw "..tostring(local_player.pos), - "ph "..tostring(local_player.pos:to_hex()).." " + "ms "..tostring(sm), + "mw "..tostring(wm), + "mh "..tostring(hm).." "..tostring(hm:round()), + "", + "pw "..tostring(local_player.pos), + "ph "..tostring(local_player.pos:to_hex()).." " ..tostring(local_player.pos:to_hex():round()), - "", - "voob "..tostring(camera.zoom), - "", - "fps "..tostring(love.timer.getFPS()), - "ping "..tostring(peer:round_trip_time()), - "", - "res"..W.."x"..H, - - },"\n"),10,10) - end - - if show_controls then - util.print_good(help_text,"center","center") - end - - msgbox.draw() - - if ui_mode ~= "normal" then - util.print_good(ui_mode, -20,10) - end - - if ui_mode == "chat" then - chatmsg_text:set("- "..this_chatmsg) - local tw,th = chatmsg_text:getDimensions() - local y = H-th-30 - love.graphics.setColor(0,0,0,0.8) - love.graphics.rectangle("fill",0,y,W,th) - love.graphics.setColor(1,1,1) - love.graphics.draw(chatmsg_text,0,y) - love.graphics.setColor(0.8,0.8,0.8) - love.graphics.line(tw,y,tw,y+th) - end + "", + "voob "..tostring(camera.zoom), + "", + "fps "..tostring(love.timer.getFPS()), + "ping "..tostring(peer:round_trip_time()), + "", + "res"..W.."x"..H, + },"\n"),10,10) + end + + if show_controls then + util.print_good(help_text,"center","center") + end + + msgbox.draw() + + if ui_mode ~= "normal" then + util.print_good(ui_mode, -20,10) + end + + if ui_mode == "chat" then + chatmsg_text:set("- "..this_chatmsg) + local tw,th = chatmsg_text:getDimensions() + local y = H-th-30 + love.graphics.setColor(0,0,0,0.8) + love.graphics.rectangle("fill",0,y,W,th) + love.graphics.setColor(1,1,1) + love.graphics.draw(chatmsg_text,0,y) + love.graphics.setColor(0.8,0.8,0.8) + love.graphics.line(tw,y,tw,y+th) + end end local connected = false |