This commit is contained in:
2021-12-22 11:36:51 +01:00
parent 63bd4c6158
commit 1d67c13e09
4 changed files with 39 additions and 11 deletions

19
.vscode/launch.json vendored
View File

@@ -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",
"name": "Debug Love",
"type": "lua-local",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/main.lua"
"program": {
"command": "love"
},
"args": [
"."
],
"scriptRoots": [
"game"
]
}
]
}
}

19
launch.json Normal file
View File

@@ -0,0 +1,19 @@
{
"version": "0.3.2",
"configurations": [
{
"name": "Debug Love",
"type": "lua-local",
"request": "launch",
"program": {
"command": "love"
},
"args": [
"game"
],
"scriptRoots": [
"game"
]
}
]
}

View File

@@ -28,6 +28,10 @@
]]
-- require('mobdebug').start()
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
require("lldebugger").start()
end
require 'src/Dependencies'

View File

@@ -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