From 1d67c13e093a59e28985ca9de8017e280172242a Mon Sep 17 00:00:00 2001 From: checamon Date: Wed, 22 Dec 2021 11:36:51 +0100 Subject: [PATCH] update --- .vscode/launch.json | 25 +++++++++++++++---------- launch.json | 19 +++++++++++++++++++ main.lua | 4 ++++ src/Ball.lua | 2 +- 4 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json index c327dde..5857719 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,14 +1,19 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "type": "lua", - "request": "launch", - "name": "Debug", - "program": "${workspaceFolder}/main.lua" - } + { + "name": "Debug Love", + "type": "lua-local", + "request": "launch", + "program": { + "command": "love" + }, + "args": [ + "." + ], + "scriptRoots": [ + "game" + ] + } ] -} \ No newline at end of file + } \ No newline at end of file diff --git a/launch.json b/launch.json new file mode 100644 index 0000000..f9db44b --- /dev/null +++ b/launch.json @@ -0,0 +1,19 @@ +{ + "version": "0.3.2", + "configurations": [ + { + "name": "Debug Love", + "type": "lua-local", + "request": "launch", + "program": { + "command": "love" + }, + "args": [ + "game" + ], + "scriptRoots": [ + "game" + ] + } + ] + } \ No newline at end of file diff --git a/main.lua b/main.lua index c5fdfe9..c66bf46 100644 --- a/main.lua +++ b/main.lua @@ -28,6 +28,10 @@ ]] -- require('mobdebug').start() +if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then + require("lldebugger").start() + end + require 'src/Dependencies' diff --git a/src/Ball.lua b/src/Ball.lua index 224f772..02d5aca 100644 --- a/src/Ball.lua +++ b/src/Ball.lua @@ -60,7 +60,7 @@ function Ball:update(dt,level) end function Ball:render() - love.graphics.setColor(255/255,255/255,255/255,255/255) + love.graphics.setColor(255/255,1/255,1/255,255/255) love.graphics.circle('fill', self.x, self.y, self.width/2) end