update
This commit is contained in:
25
.vscode/launch.json
vendored
25
.vscode/launch.json
vendored
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
19
launch.json
Normal file
19
launch.json
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
4
main.lua
4
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'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user