switch circle modes with left
This commit is contained in:
parent
8aff822362
commit
249f3749b9
1 changed files with 9 additions and 0 deletions
|
|
@ -24,6 +24,15 @@ 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