Remove outdated Color component and migration system

This commit is contained in:
2022-12-18 04:56:45 +00:00
parent 132a61fc56
commit 3c933e8b0d
5 changed files with 5 additions and 33 deletions

View File

@@ -32,8 +32,8 @@
(let [c (readComponent e Circle)
diam (Std.int (* 2 c.radius))
squareSize (+ diam CIRCLE_THICKNESS)
color (if (hasComponent e Color)
(let [c (readComponent e Color)]
color (if (hasComponent e ColorF)
(let [c (readComponent e ColorF)]
(FlxColor.fromRGBFloat c.r c.g c.b c.a))
CIRCLE_COLOR)]
(makeGraphic squareSize squareSize FlxColor.TRANSPARENT true)