update
This commit is contained in:
17
.vscode/launch.json
vendored
17
.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",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"type": "lua",
|
"name": "Debug Love",
|
||||||
|
"type": "lua-local",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Debug",
|
"program": {
|
||||||
"program": "${workspaceFolder}/main.lua"
|
"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()
|
-- require('mobdebug').start()
|
||||||
|
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
|
||||||
|
require("lldebugger").start()
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
require 'src/Dependencies'
|
require 'src/Dependencies'
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ function Ball:update(dt,level)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Ball:render()
|
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)
|
love.graphics.circle('fill', self.x, self.y, self.width/2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user