splash screens, game states, loading, etc.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Ryne
Party member
Posts: 444
Joined: Fri Jan 29, 2010 11:10 am

splash screens, game states, loading, etc.

Post by Ryne »

So I've begun thinking of menus, and start screens for my game. I want to have a nice big "LOVE2D" screen when the game starts, as well as some other minor stuff.

I'm not totally unfamiliar with game states and I could probably create a really gross version of what I want, though I'm wondering if there is an easier/better way.

Basically what I want is this:

# Launch Game
> Shows LOVE2D splash screen (fade in, for a couple of seconds)
> Personal splash screen (fade in for a couple of seconds)
> Game Logo/Splash (fade in for a couple of seconds)

[[perhaps a small loading bar throughout the splash screens]]

# Main Menu
> New game
> Options (only video scaling/ audio options)
> Quit

So - from what I actually know - I could create this by basically programming and timing everything, though I assume this isn't the best way. I want this to be as stable and polished as possible. Anyone have any thoughts on this?

Thanks!
@rynesaur
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: splash screens, game states, loading, etc.

Post by Robin »

All decent ways to do that basically involve having a draw and update function for each state, put into a big table, and then you can defer love.update and love.draw to those functions.
Help us help you: attach a .love.
User avatar
Ryne
Party member
Posts: 444
Joined: Fri Jan 29, 2010 11:10 am

Re: splash screens, game states, loading, etc.

Post by Ryne »

Robin wrote:All decent ways to do that basically involve having a draw and update function for each state, put into a big table, and then you can defer love.update and love.draw to those functions.
Yeah that's actually how I imagined doing it, and it's how I've done it in the past as well. Is this the best way?
@rynesaur
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: splash screens, game states, loading, etc.

Post by Robin »

Yeah, that or using a game state library (which is usually built on the same principles). You can choose which one you prefer, that doesn't really matter.
Help us help you: attach a .love.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: splash screens, game states, loading, etc.

Post by tentus »

Ryne, did you ever see my game Dye? I had something very similar to what you described, minus the splash screen. Dye is a simple enough game that it might be a useful reference.

Wow, now that I've typed that, it sounds conceited as heck. :(
Kurosuke needs beta testers
User avatar
Jack5500
Party member
Posts: 149
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: splash screens, game states, loading, etc.

Post by Jack5500 »

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 191 guests