refactor: added bottom wall coloured asset and fixed position and priority with dino bottom wall

pull/203/head
RuiAlonso 3 years ago
parent 4e5ee41b5e
commit 417416d179

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 283 KiB

@ -26,10 +26,10 @@ class _BottomBoundary extends BodyComponent with InitialPosition {
/// {@macro bottom_boundary}
_BottomBoundary()
: super(
priority: 1,
priority: Ball.boardPriority + 2,
children: [_BottomBoundarySpriteComponent()],
) {
renderBody = false;
renderBody = true;
}
List<FixtureDef> _createFixtureDefs() {

@ -221,6 +221,6 @@ class _DinoBottomWallSpriteComponent extends SpriteComponent with HasGameRef {
);
this.sprite = sprite;
size = sprite.originalSize / 10;
position = Vector2(23.8, -9.5);
position = Vector2(23.6, -9.5);
}
}

Loading…
Cancel
Save