SFML community forums

General => SFML projects => Topic started by: paulhaggo on February 24, 2015, 04:31:06 pm

Title: Different screen switching, menu, splash, game (very easy script to copy)
Post by: paulhaggo on February 24, 2015, 04:31:06 pm
This is some bad code i did

but it may help a beginner like me

It is a simple project which has 3 windows / forms

a splash screen, which swapps to menu, then fake game screen

enjoy
Title: Re: Different screen switching, menu, splash, game (very easy script to copy)
Post by: Jesper Juhl on February 24, 2015, 10:06:14 pm
This is some bad code i did
If you already admit up-front that it's bad code then please do not post it - make it good code instead and then post that.
Title: Re: Different screen switching, menu, splash, game (very easy script to copy)
Post by: Ricky on February 25, 2015, 01:05:28 am
This is some bad code i did

but it may help a beginner like me

It is a simple project which has 3 windows / forms

a splash screen, which swapps to menu, then fake game screen

enjoy

I don't quite understand. Do you want feedback on this code? I'd recommend just using objects instead of calling isolated functions. That way you could make the 'screens' more dynamic and use them in a loop if you wanted.