feat: pr suggestions

pull/101/head
Erick Zanardo 4 years ago
parent 4a6eb4f215
commit d23c7a0eb2

@ -197,9 +197,9 @@ class SpaceshipHole extends BodyComponent with InitialPosition, Layered {
/// {@template spaceship_wall_shape} /// {@template spaceship_wall_shape}
/// The [ChainShape] that defines the shape of the [SpaceshipWall]. /// The [ChainShape] that defines the shape of the [SpaceshipWall].
/// {@endtemplate} /// {@endtemplate}
class SpaceshipWallShape extends ChainShape { class _SpaceshipWallShape extends ChainShape {
/// {@macro spaceship_wall_shape} /// {@macro spaceship_wall_shape}
SpaceshipWallShape() { _SpaceshipWallShape() {
final minorRadius = (Spaceship.size.y - 2) / 2; final minorRadius = (Spaceship.size.y - 2) / 2;
final majorRadius = (Spaceship.size.x - 2) / 2; final majorRadius = (Spaceship.size.x - 2) / 2;
@ -232,7 +232,7 @@ class SpaceshipWall extends BodyComponent with InitialPosition, Layered {
Body createBody() { Body createBody() {
renderBody = false; renderBody = false;
final wallShape = SpaceshipWallShape(); final wallShape = _SpaceshipWallShape();
final bodyDef = BodyDef() final bodyDef = BodyDef()
..userData = this ..userData = this

Loading…
Cancel
Save