Skip to content

Commit a5b6ba2

Browse files
authored
Update 04-3-groundwork.html.md (#294)
FlxG.switchState(new PlayState()); is now deprecated.
1 parent d368416 commit a5b6ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/01_tutorial/04-3-groundwork.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ First up, let's create a simple menu. Eventually, we'll want a fancy `MenuState`
5454
```haxe
5555
function clickPlay()
5656
{
57-
FlxG.switchState(new PlayState());
57+
FlxG.switchState(PlayState.new);
5858
}
5959
```
6060
(`import flixel.FlxG;`)

0 commit comments

Comments
 (0)