C# Xna Game Scene/State Management

Started by
1 comment, last by Cygon 14 years, 5 months ago
Hello, Firstly im new to the forums here, i read a couple of peoples posts and it seems like your all very knowledgeable. Have been working with the XNA framework for a little while, but i would still put myself in the novice category. My question, im looking to implement "Game Scenes" or states into one of my 2d projects, wondering if someone here could offer some code? or advice? just a simple transition from one menu to another would be sweet thankyou,
Advertisement
Have a google for Finite State Machines (FSMs), may be what your looking for.
There's an example for game state management on xna.com:
http://creators.xna.com/samples/gamestatemanagement

Because above example bakes all kinds of very game specific things into its classes (eg. default graphics assets, transition effects between states and more) and because its design makes it hard to isolate the classes for unit testing, I have created my own game state management system for my current game:

Nuclex Framework: Game State Management

But the XNA example certainly gets you running faster if you're not that crazy about academic design exercises like me :)
Professional C++ and .NET developer trying to break into indie game development.
Follow my progress: http://blog.nuclex-games.com/ or Twitter - Topics: Ogre3D, Blender, game architecture tips & code snippets.

This topic is closed to new replies.

Advertisement