How to create a headless rendering engine

Hey dudes/dudettes.



I've noticed this is a common topic, there are other ways to do this but here is the road I took.


  1. Combine the AbstractGame, BaseGame, BaseSimpleGame and SimpleGame.


  2. Get rid of the while main loop.


  3. Use display.getRenderer().grabScreenContents().


  4. Get rid of other stuff you dont need, my final implementation consisted of only 200 lines.

You should consider posting this and possibly your implementation (or an example of your implementation) on the wiki