mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 16:36:57 +08:00
fix: Set margins of JoystickComponent properly (#3019)
The margins of the `JoystickComponent` weren't set properly, this PR fixes that.
This commit is contained in:
@ -20,6 +20,11 @@ class JoystickAdvancedExample extends FlameGame with HasCollisionDetection {
|
||||
the buttons.
|
||||
''';
|
||||
|
||||
JoystickAdvancedExample()
|
||||
: super(
|
||||
camera: CameraComponent.withFixedResolution(width: 1200, height: 800),
|
||||
);
|
||||
|
||||
late final JoystickPlayer player;
|
||||
late final JoystickComponent joystick;
|
||||
late final TextComponent speedText;
|
||||
|
||||
Reference in New Issue
Block a user