-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4a5958
commit 1e230a5
Showing
9 changed files
with
671 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
-- LOVE 0.10.1 splash screen (fused only) | ||
-- Demonstration of AquaShine.SetSplashScreen | ||
|
||
local AquaShine = ... | ||
local SplashScreen = {} | ||
local o_ten_one = require("splash.o-ten-one") | ||
|
||
function SplashScreen.OnDone() | ||
-- SplashScreen.NextArg is correspond to AquaShine.LoadEntryPoint | ||
AquaShine.LoadEntryPoint(SplashScreen.NextArg[1], SplashScreen.NextArg[2]) | ||
end | ||
|
||
function SplashScreen.Start(arg) | ||
-- arg is correspond to AquaShine.LoadEntryPoint | ||
-- so store it somewhere else | ||
SplashScreen.NextArg = arg | ||
SplashScreen.Splash = o_ten_one() | ||
SplashScreen.Splash.onDone = SplashScreen.OnDone | ||
end | ||
|
||
function SplashScreen.Update(deltaT) | ||
return SplashScreen.Splash:update(deltaT * 0.001) | ||
end | ||
|
||
function SplashScreen.Draw() | ||
-- Since LOVE splash doesn't respect to AquaShine letterbox | ||
-- Push current stack and call origin | ||
love.graphics.push() | ||
love.graphics.origin() | ||
SplashScreen.Splash:draw() | ||
love.graphics.pop() | ||
end | ||
|
||
function SplashScreen.KeyPressed(key) | ||
if key == "escape" or key == "return" or key == "backspace" then | ||
return SplashScreen.Splash:skip() | ||
end | ||
end | ||
|
||
function SplashScreen.MousePressed() | ||
return SplashScreen.Splash:skip() | ||
end | ||
|
||
return SplashScreen |
Binary file not shown.
Oops, something went wrong.