You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,9 @@ It also offers hooks for most of LÖVE's callback functions. Based on the type o
6
6
7
7
## Example
8
8
9
-
This is a simple example of how the ScreenManager should be used (note: You will have to change the paths in the example to fit your setup).
9
+
This is a simple example of how the ScreenManager should be used (note: You will have to change the paths in the example to fit your setup).
10
10
11
-
```
12
-
#!lua
11
+
```lua
13
12
-- main.lua
14
13
15
14
localScreenManager=require('lib/ScreenManager');
@@ -32,8 +31,7 @@ end
32
31
```
33
32
Note how MainScreen inherits from Screen.lua. This isn't mandatory, but recommended since Screen.lua already has templates for most of the callback functions.
0 commit comments