Flare : Splash Screen Library for Love2D

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
YoungNeer
Party member
Posts: 118
Joined: Wed May 15, 2019 7:49 am

Flare : Splash Screen Library for Love2D

Post by YoungNeer » Mon Oct 14, 2019 5:41 pm

Flare is a splash screen library for Love2D! What it does is creates a completely customizable splash-screen window. The steps to create a basic splash-screen is simple.

The following is the most basic splash-screen one can create with Flare:- (by basic I don't mean useless though)

Code: Select all

flare=require 'flare'    --require the library
flare("splash.jpg")      --init flare with the background image for splash-screen
Assuming `splash.jpg` exists! reate a default splash-screen with copyright and loading text at bottom-left and no progress bar. But we decide to remove the text and show the built-in progress bar that comes with flare. So we change the second line with:-

Code: Select all

flare("splash.jpg",{
	showText=false,
	showProgressBar=true
})
And that'd have the following effect:-

Image

You can do a lots of other stuff such as set the duration of splash (which by default is 5 seconds), change the way progress bar is rendered, and so on...

Head over to the documentation to learn more
Attachments
flareDemo.love
(16.63 KiB) Downloaded 196 times
My Github- your contribution is highly appreciated

User avatar
JuanjoSalvador
Prole
Posts: 25
Joined: Wed Nov 27, 2019 9:19 pm
Location: Almeria, ES
Contact:

Re: Flare : Splash Screen Library for Love2D

Post by JuanjoSalvador » Sun Dec 01, 2019 1:58 am

Really cool! Did you added it to the libraries page of the Wiki or the Awesome-Love list on GitHub?
itch.io profile - When I'm uploading my works and devblogs
GitHub - All my code is here!
Horchata - A set of Lua modules I wrote to make some task easier

User avatar
YoungNeer
Party member
Posts: 118
Joined: Wed May 15, 2019 7:49 am

Re: Flare : Splash Screen Library for Love2D

Post by YoungNeer » Tue Dec 03, 2019 6:12 am

JuanjoSalvador wrote:
Sun Dec 01, 2019 1:58 am
Really cool! Did you added it to the libraries page of the Wiki or the Awesome-Love list on GitHub?
They won't accept it! :cry:
Anyways I'm glad my other two libraries (clove and iffy) made it to the list
My Github- your contribution is highly appreciated

User avatar
JuanjoSalvador
Prole
Posts: 25
Joined: Wed Nov 27, 2019 9:19 pm
Location: Almeria, ES
Contact:

Re: Flare : Splash Screen Library for Love2D

Post by JuanjoSalvador » Sun Dec 08, 2019 9:25 am

Oh, it's a shame :(
itch.io profile - When I'm uploading my works and devblogs
GitHub - All my code is here!
Horchata - A set of Lua modules I wrote to make some task easier

Johnhenderson1963
Prole
Posts: 1
Joined: Sat Apr 11, 2020 2:12 pm

Re: Flare : Splash Screen Library for Love2D

Post by Johnhenderson1963 » Sat Apr 11, 2020 2:20 pm

Hi I am using the latest version of LOVE and I dont seem to be able to run your Flare Library. I have followed all your instructions but no luck!!!

Im getting the following error

main.lua:5: attempt to call global 'flare' (a nil value)

Traceback

main.lua:5: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Here is the code...

require("Flare")
flare("splash.jpg",{
showText=false,
showProgressBar=true
})

I have put the Flare.lua file in the default love directory.

Hope to hear from you, thanks.

User avatar
zorg
Party member
Posts: 2982
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Flare : Splash Screen Library for Love2D

Post by zorg » Sun Apr 12, 2020 5:57 am

Johnhenderson1963 wrote:
Sat Apr 11, 2020 2:20 pm
...
require("Flare")
...
Hi and welcome to the forums!

Flare should be all lowercase, and you should assign the returned value of require into a variable, as you could see in the documentation:

Code: Select all

flare=require 'flare'    --require the library
That will probably fix your issue. lua is a case sensitive language.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

Post Reply

Who is online

Users browsing this forum: No registered users and 119 guests