mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
Rename Hitbox mixin to HasHitboxes (#1060)
This commit is contained in:
@ -14,7 +14,7 @@ circle both of them will change color.
|
||||
''';
|
||||
|
||||
class MyCollidable extends PositionComponent
|
||||
with HasGameRef<Circles>, Hitbox, Collidable {
|
||||
with HasGameRef<Circles>, HasHitboxes, Collidable {
|
||||
late Vector2 velocity;
|
||||
final _collisionColor = Colors.amber;
|
||||
final _defaultColor = Colors.cyan;
|
||||
|
||||
@ -25,7 +25,7 @@ direction.
|
||||
enum Shapes { circle, rectangle, polygon }
|
||||
|
||||
abstract class MyCollidable extends PositionComponent
|
||||
with Draggable, Hitbox, Collidable {
|
||||
with Draggable, HasHitboxes, Collidable {
|
||||
double rotationSpeed = 0.0;
|
||||
final Vector2 velocity;
|
||||
final delta = Vector2.zero();
|
||||
|
||||
Reference in New Issue
Block a user