Skip to content

Commit ecb938e

Browse files
author
Sol Bekic
committed
Update README.md
1 parent 6cd2d35 commit ecb938e

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,26 @@ Pick the splash you want to use from our wide variety of **1** (*one*) splashes
1111
Require the file and instantiate the splash using `splash.new()`.
1212
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.
1313

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+
```
3234

3335
Splash Interface
3436
----------------
@@ -70,7 +72,7 @@ Splash with the new 0.10.1 (windows) logo.
7072
Example: _Setting a pink background color_
7173

7274
```lua
73-
slash = lib.new({background={255,0,255}})
75+
splash = lib.new({background={255,0,255}})
7476
```
7577

7678
* `lighten`: boolean, if truthy instead of shrinking the background to a circle the oustide gets lightened up.

0 commit comments

Comments
 (0)