From 8715b0ac24fa2bc571a6fe55d1013d408cd00135 Mon Sep 17 00:00:00 2001 From: Rafael Roman Date: Sun, 30 Dec 2018 19:28:01 +0100 Subject: [PATCH] fix constructor --- doc/game.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/game.md b/doc/game.md index c3207d359..92bbe7c52 100644 --- a/doc/game.md +++ b/doc/game.md @@ -28,7 +28,7 @@ A very simple `BaseGame` implementation example can be seen below: class MyCrate extends SpriteComponent { // 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 void resize(Size size) {