mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
fix constructor
This commit is contained in:
@ -28,7 +28,7 @@ A very simple `BaseGame` implementation example can be seen below:
|
|||||||
class MyCrate extends SpriteComponent {
|
class MyCrate extends SpriteComponent {
|
||||||
|
|
||||||
// creates a component that renders the crate.png sprite, with size 16 x 16
|
// creates a component that renders the crate.png sprite, with size 16 x 16
|
||||||
MyCrate() : SpriteComponent.fromSprite(16.0, 16.0, new Sprite('crate.png'));
|
MyCrate() : super.fromSprite(16.0, 16.0, new Sprite('crate.png'));
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void resize(Size size) {
|
void resize(Size size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user