File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ Simple scene manager for lua.
3
3
Perfect to use for [ Löve2D] ( https://love2d.org/ ) projects.
4
4
5
5
## Documentation
6
- The most important concept in scenman are ` scene ` . Scenes explain what should be compute and how to draw the result.
6
+ The most important concept in sceneman are ` scene ` . Scenes explain what should be compute and how to draw the result.
7
7
** There is maximum one active scene at a time** . This is * always* true.
8
8
9
- First you will need to require scenman , it's simple:
9
+ First you will need to require sceneman , it's simple:
10
10
``` lua
11
- local sceneman = require (' scenman ' )
11
+ local sceneman = require (' sceneman ' )
12
12
```
13
- You can now access the api trough the scenman table!
13
+ You can now access the api trough the sceneman table!
14
14
15
15
First, you will need to create and register you scene:
16
16
``` lua
17
- -- Create and register in scenman a new scene
17
+ -- Create and register in sceneman a new scene
18
18
-- called 'menu'
19
19
local menu = sceneman :new (' menu' )
20
20
```
@@ -161,4 +161,4 @@ sceneman:draw(...)
161
161
This project use [ busted] ( http://olivinelabs.com/busted/ ) to run tests. Simply run the command ` busted ` at the root of the repo.
162
162
163
163
## License
164
- This repository use the [ MIT license] ( https://github.com/loustak/scenman /blob/master/License ) .
164
+ This repository use the [ MIT license] ( https://github.com/loustak/sceneman /blob/master/License ) .
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function sceneman:quit(name, ...)
151
151
local scene = self :get (name )
152
152
153
153
if scene == self .active then
154
- error (' scenman : can\' t quit active scene' )
154
+ error (' sceneman : can\' t quit active scene' )
155
155
end
156
156
157
157
if scene :isloaded () then
You can’t perform that action at this time.
0 commit comments