Easily Convert from SimpleGame to BaseGame

Hey, I wrote this while I was working on converting my application to BaseGame framework. It is a list of things that need to be done and where they need to be done, as well as a list of objects that are provided by SimpleGame that you will need to get it working the same way you had it.



LIST OF OBJECTS:

-Camera

-Node

-InputHandler

-Timer

-float: tpf

-LightState

-BasicPassManager



LIST OF METHODS:

-UPDATE:

-timer.update();

-tpf = timer.getTimePerFrame();

-input.update(tpf);

-GameTaskQueueManager.getManager().getQueue(GameTaskQueue.UPDATE).execute();

-CHECK IF ANY OF THE KEYS ARE PRESSED

-DO STUFF IN YOUR SIMPLEUPDATE METHOD

-ALL NODES.updateGeometricState(tpf, true);

-pManager.updatePasses(tpf);

-RENDER:

-display.getRenderer().clearStatistics();

-display.getRenderer().clearBuffers();

-GameTaskQueueManager.getManager().getQueue(GameTaskQueue.RENDER).execute();

-pManager.renderPasses(display.getRenderer());

-STUFF IN SIMPLERENDER

-CLEANUP:

-display.getRenderer().cleanup();

-KeyInput.destroyIfInitialized();

-MouseInput.destroyIfInitialized();

-JoystickInput.destroyIfInitialized();





Other things to add:

-ZBufferState

-CullState





Hope this may help somebody.

Hey Trussell,



Your topic is great. It helps to save many time for anyone use BaseGame class.

Thanks.

How about putting this in the Wiki?

Doneā€¦