switch circle modes with left

This commit is contained in:
yuki 2025-11-10 03:51:08 -03:00
parent 8aff822362
commit 249f3749b9

View file

@ -24,6 +24,15 @@ function Stage:update(dt)
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)
end