refactor: trying to refactor controlledspaceshipramp to blueprint

feat/spaceship-ramp-logic
RuiAlonso 3 years ago
parent bcb0035687
commit 8c40c98f46

@ -20,6 +20,8 @@ class ControlledSpaceshipRamp extends Component
controller = SpaceshipRampController(this);
}
// TODO(ruimiguel): check Blueprint contact callbacks bug and then change
// this class to extends from SpaceshipRamp.
late final SpaceshipRamp _spaceshipRamp;
@override

@ -15,6 +15,14 @@ class SpaceshipRamp extends Blueprint {
SpaceshipRamp()
: super(
components: [
// TODO(ruimiguel): once blueprint contactcallback works well, add
// this sensors here.
/*
SpaceshipRampSensor(type: SpaceshipRampSensorType.door)
..initialPosition = Vector2(1.7, -20),
SpaceshipRampSensor(type: SpaceshipRampSensorType.inside)
..initialPosition = Vector2(1.7, -21.5),
*/
_SpaceshipRampOpening(
outsidePriority: RenderPriority.ballOnBoard,
rotation: math.pi,

@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "39.0.0"
version: "31.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
version: "2.8.0"
args:
dependency: transitive
description:
@ -71,6 +71,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
cli_util:
dependency: transitive
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.5"
clock:
dependency: transitive
description:
@ -314,7 +321,7 @@ packages:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
version: "0.6.3"
json_annotation:
dependency: transitive
description:
@ -349,7 +356,7 @@ packages:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
version: "0.1.3"
meta:
dependency: transitive
description:
@ -412,7 +419,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.0"
path_provider:
dependency: transitive
description:
@ -585,7 +592,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
@ -627,21 +634,21 @@ packages:
name: test
url: "https://pub.dartlang.org"
source: hosted
version: "1.21.1"
version: "1.19.5"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.9"
version: "0.4.8"
test_core:
dependency: transitive
description:
name: test_core
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.13"
version: "0.4.9"
typed_data:
dependency: transitive
description:
@ -662,7 +669,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "2.1.1"
very_good_analysis:
dependency: "direct dev"
description:

Loading…
Cancel
Save