GithubHelp home page GithubHelp logo

love2d-community / splashes Goto Github PK

View Code? Open in Web Editor NEW
73.0 9.0 19.0 2.73 MB

A collection of splash screens for LÖVE

License: Other

Lua 88.69% Ruby 9.26% Shell 2.05%
splash splash-screen love2d love lua

splashes's Introduction

splashes join on gitter LOVE

A collection of splash screens for LÖVE.

Run this repo with love . to check out all splash screens. Press any key to skip ahead.

Usage

Pick the splash you want to use from our wide variety of 1 (one) splashes and move the directory somewhere into your project. Require the file and instantiate the splash using splash.new(). 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.

local o_ten_one = require "o-ten-one"

function love.load()
  splash = o_ten_one()
  splash.onDone = function() print "DONE" end
end

function love.update(dt)
  splash:update(dt)
end

function love.draw()
  splash:draw()
end

function love.keypressed()
  splash:skip()
end

Splash Interface

The library only has one function you should use:

lib.new(...)

Instantiate a new splash. You can also do this by calling the library itself: lib(...). Accepts a table with parameters depending on the specific splash (see below).

The following members of the splash variable are of importance to you as a user:

splash:update(dt)

Update the splash.

splash:draw()

Draw the splash.

splash:skip()

Skip the splash. Splash may still run an exit transition after this, wait for the onDone() callback to fire.

splash.onDone()

A callback you can add on the splash table. Gets called when the splash exits or is skipped.

Splashes

o-ten-one

Splash with the new 0.10.1 (windows) logo.

new() parameters:

  • background: {r,g,b,a} table used to clear the screen with. Set to false to draw underneath.

    Example: Setting a pink background color

    splash = lib.new({background={255,0,255}})
  • fill: Whether and how to fill the background in the second animation stage. One of "rain" (fill with baby-inspector rain) or "lighten" (keep pink/blue stripes but lighten outside)

  • delay_before: number of seconds to delay before the animation. Defaults to 0.

  • delay_after: number of seconds to delay before the animation. Defaults to 0.

splashes's People

Contributors

bartbes avatar gitter-badger avatar janwerder avatar josefnpat avatar qoh avatar rm-code avatar s-ol avatar sfinam avatar tannerrogalsky avatar tatater56 avatar tentus avatar videah avatar yago-gt avatar zorggn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

splashes's Issues

Online preview

Would be cool to have an online preview via love.js and gh-pages!

Remove the ®

Later, when I designed the logo (the curvy LÖVE text), I added the umlauts on a whim since I decided that something was missing from the logo. That's how it became LÖVE. I also added a sarcastic copyright symbol to the logo, although that is removed now.

Source

You can also see on the homepage that there is no ® in the logo. Only on the wiki, but probably because no one bothered to change it.

Portability Issues

Because lg.newImage takes slashes instead of dots, the current_folder variable causes problems if the splash folder is not at root level.

Chiptune music

There's a "what is love" chiptune out there that many people used for their splash screens before. I know @josefnpat has contacted the artist before. Would it be possible to get a general license to use the song to be include with the library? What contingencies would there be?

Don't monkey-patch LÖVE APIs

This will globally change Shader:send in anyone's LÖVE game which loads the file. Please don't do that!

Just use Shader:getExternVariable before calling Shader:send, in the code which actually calls it, if you really need to.

Usage example won't run

I've tried running the usage example just copying it from readme and it won't run unless I replace dots with colons in update and draw functions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.