FlixelCommunity / flixel

Community fork of Adam “Atomic” Saltsman's popular game engine Flixel. Distilled from a variety of Flash games he worked on over the last couple years, including Gravity Hook, Fathom and Canabalt, its primary function is to provide some useful base classes that you can extend to make your own game objects.
http://flixelcommunity.org/
Other
84 stars 17 forks source link

Create a nice Flixel Community loader and splash screen #195

Open Dovyski opened 10 years ago

Dovyski commented 10 years ago

I have nothing against the current loader, I just think it doesn't fit quite well outside the browser, e.g. a mobile game. Usually a game loader has a company logo and something related to the game itself.

Right now it's not that easy to customize Flixel loader. A simpler, cleaner and easier loader to work with would be great.

Additionally Flixel doesn't have an official splash screen. Unity has a nice and clean "Powered by Unity" splash screen. A built-in Flixel splash screen is very handy and can help us spread the word.

Here is Flashpunk splash screen. I think it takes too long, ours should be faster, like 1.5 or 2 seconds.

WingEraser commented 10 years ago

I actually created this in flixel-gdx. FlxSplashScreen extends FlxState. When the state switches, it checks whether FlxGame.showSplashScreen is set to true. It passes the Game State into FlxSplashScreen, when the timer is 0 it will switch to the Game State.

Dovyski commented 10 years ago

Nice approach! We could follow the same implementation.

Gama11 commented 10 years ago

You might also want to take a look at HaxeFlixel's FlxSplash. It plays by default when the game starts when compiling in release mode, and can be skipped via an additional parameter in the FlxGame constructor.

Dovyski commented 10 years ago

I've seen HaxeFlixel's splash screen, it's beautiful! The approach to display it is also good.