gavin beard

Hi again all :-)

Am still writing my little app to get my head around using c# + XNA and just wanted to check i was doing something in a effective manner.

It all relates to the splash screen section which effectivily just fades in a company logo, fades it out, the fades in the application title and fades it out.

The way i do this at the moment is that i have a class called SplashScreen which has 3 functions init. which loads n e images, sets up n e variables etc. that are to be used. Draw. which as it says draws approriate image and updates alpha to create fading of images, then delete. which nulls out n e thing that may be takin up memory to free it up a little (not sure if needed really) in the games main initialization function splash.init() is called, in the main draw function splash.draw() is called, if splash.draw() returns false the program continues, if it returns true then this means that all images have been faded in out and splash / loading screens are complete and then the game state is changed.

this seems an okish way of doing it for alittle app like mine but is there a more robust / efficient way of doing a loading / splash screen

many thanks



Re: XNA Game Studio Express Splash Screen Processing

Bill Reiss

This is actually one of the main uses I see right now for my XNAStage project http://www.codeplex.com/xnastage

A quick description of how this would work...

Basically if you used XNAStage to do this, you would create a Stage, create all of your image sprites, add them to the stage, and then create a ColorTween to fade the images over a period of time. Then you would trap the Stop event of the Stage and in there would put your code to change your game state. If you want to discuss further let me know.

Bill






Re: XNA Game Studio Express Splash Screen Processing

gavin beard

Hi, thanks for a prompt reply, XNAstage looks very promising for what i was looking to do, could be very helpful and maybe more efficient for what i want to do, i cant view n e zip files while at work, so does it increase .exe files by alot if at all by using this library

thanks





Re: XNA Game Studio Express Splash Screen Processing

Bill Reiss

The current size of the library is 36k, I can't tell you how much memory overhead it adds, I haven't profiled it yet. If memory or performance becomes an issue I'll address it at that point. I'm currently working on adding support for global scaling so that you can code everything to a preferred size (let's say 800x600) and have everything automatically scale to the actual size of the window.

Bill






Re: XNA Game Studio Express Splash Screen Processing

gavin beard

Bill Reiss wrote:

The current size of the library is 36k, I can't tell you how much memory overhead it adds, I haven't profiled it yet. If memory or performance becomes an issue I'll address it at that point. I'm currently working on adding support for global scaling so that you can code everything to a preferred size (let's say 800x600) and have everything automatically scale to the actual size of the window.

Bill

wow, sounds like u r puttin alot of work into this, will finally be headin back home tonight so will download and play, i'm sure that it;ll do everything that i need tho, many thanks





Re: XNA Game Studio Express Splash Screen Processing

Bill Reiss

Well if it doesn't do everything you need, let me know, and if it looks like something that would be a good addition to the library I'll add it. Let me know if you need a code sample of doing what you're trying to do since my samples are a bit sparse right now.

Bill






Re: XNA Game Studio Express Splash Screen Processing

gavin beard

Bill Reiss wrote:

Well if it doesn't do everything you need, let me know, and if it looks like something that would be a good addition to the library I'll add it. Let me know if you need a code sample of doing what you're trying to do since my samples are a bit sparse right now.

Bill

Thanks Bill your a Gent. get fed up of being away from home PC as i never seem to g et much done so may pop out later and get a Laptop, should solve alot of my issues :-)

i will give feedback once i have tried