Rectangle components in NAT

This commit is contained in:
2022-12-18 05:40:53 +00:00
parent 0ac7156366
commit f23e1ca622
5 changed files with 32 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
(super
playState
->[archive e]
?(or (hasComponent e Name) (hasComponent e Circle))
?(or (hasComponent e Name) (hasComponent e Circle) (hasComponent e Rectangle))
->[archive e pos &opt ui]
(unless (sprites.exists e.id)
(let [sprite (new EntrySprite this _playgroundKey pos archive e controller)]