refactor: add LauncherRamp nested to Launcher

pull/180/head
RuiAlonso 3 years ago
parent d1a44a91a3
commit 6627b2d91e

@ -20,7 +20,7 @@ class Launcher extends Forge2DBlueprint {
final _rocket = RocketSpriteComponent()..position = Vector2(43, 62);
gameRef.addFromBlueprint(LaunchRamp());
addAll([_rocket, plunger]);
addBlueprint(LaunchRamp());
}
}

@ -20,10 +20,6 @@ class $AssetsImagesComponentsGen {
/// File path: assets/images/components/background.png
AssetGenImage get background =>
const AssetGenImage('assets/images/components/background.png');
/// File path: assets/images/components/rocket.png
AssetGenImage get rocket =>
const AssetGenImage('assets/images/components/rocket.png');
}
class Assets {

Loading…
Cancel
Save