Compare commits
No commits in common. "249f3749b9ca2e89f64989a11f6eda7dc1b0e29b" and "4a153e6bdaa0c0a7f4356ba08e57ac4c007da4e7" have entirely different histories.
249f3749b9
...
4a153e6bda
3 changed files with 0 additions and 15 deletions
|
|
@ -21,9 +21,4 @@ function Object:extend() end
|
||||||
---@param mixin table
|
---@param mixin table
|
||||||
function Object:implement(mixin) end
|
function Object:implement(mixin) end
|
||||||
|
|
||||||
---Checks if object is of a specific type
|
|
||||||
---@param object Object
|
|
||||||
---@return boolean
|
|
||||||
function Object:is(object) end
|
|
||||||
|
|
||||||
return Object
|
return Object
|
||||||
|
|
|
||||||
1
main.lua
1
main.lua
|
|
@ -23,7 +23,6 @@ Circle = require 'obj/game/Circle'
|
||||||
function love.load()
|
function love.load()
|
||||||
-- screen setup
|
-- screen setup
|
||||||
love.graphics.setDefaultFilter("nearest")
|
love.graphics.setDefaultFilter("nearest")
|
||||||
love.graphics.setLineStyle("rough")
|
|
||||||
resize(2)
|
resize(2)
|
||||||
|
|
||||||
---@type Room|nil
|
---@type Room|nil
|
||||||
|
|
|
||||||
|
|
@ -24,15 +24,6 @@ function Stage:update(dt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if input:pressed('left') then
|
|
||||||
for _, game_object in ipairs(self.area.game_objects) do
|
|
||||||
if game_object:is(Circle) then
|
|
||||||
---@cast game_object Circle
|
|
||||||
if game_object.mode == "fill" then game_object.mode = "line" else game_object.mode = "fill" end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
self.timer:update(dt)
|
self.timer:update(dt)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue