File tree Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,26 @@ Pick the splash you want to use from our wide variety of **1** (*one*) splashes
11
11
Require the file and instantiate the splash using ` splash.new() ` .
12
12
Make sure to hook the love callbacks up to ` splash:update(dt) ` and ` splash:draw() ` and call ` splash:skip() ` to let the player skip the splash.
13
13
14
- local splash = require "o-ten-one"
15
-
16
- function love.load()
17
- splash = o_ten_one()
18
- splash.onDone = function() print "DONE" end
19
- end
20
-
21
- function love.update(dt)
22
- splash.update(dt)
23
- end
24
-
25
- funciton love.draw()
26
- splash.draw()
27
- end
28
-
29
- function love.keypressed()
30
- splash:skip()
31
- end
14
+ ``` lua
15
+ local splash = require " o-ten-one"
16
+
17
+ function love .load ()
18
+ splash = o_ten_one ()
19
+ splash .onDone = function () print " DONE" end
20
+ end
21
+
22
+ function love .update (dt )
23
+ splash .update (dt )
24
+ end
25
+
26
+ funciton love .draw ()
27
+ splash .draw ()
28
+ end
29
+
30
+ function love .keypressed ()
31
+ splash :skip ()
32
+ end
33
+ ```
32
34
33
35
Splash Interface
34
36
----------------
@@ -70,7 +72,7 @@ Splash with the new 0.10.1 (windows) logo.
70
72
Example: _ Setting a pink background color_
71
73
72
74
``` lua
73
- slash = lib .new ({background = {255 ,0 ,255 }})
75
+ splash = lib .new ({background = {255 ,0 ,255 }})
74
76
```
75
77
76
78
* ` lighten ` : boolean, if truthy instead of shrinking the background to a circle the oustide gets lightened up.
You can’t perform that action at this time.
0 commit comments