I am sick of putting resources and coding them all the time and I don't want to always repeat them. I'm using slick2d in java. It is a game library. I cannot find and game engine tutorials either. How do I create a game engine?

4 Years
Discussion Span
Last Post by System Networks

The question is too broad. To create an engine, you would have to plan what the engine you are creating is going to -- functionality, flexibility, formatting, etc. It is not a simply task... Have you done any of those brainstorming work for what you want it to have or to be yet?

Edited by Taywin


Yes. I just want a 2d game engine not a 3D engine. Its hard making 3d engines from scratch!


Right now you don't have enough specification to begin thinking about design, even less code. Start with a specification. Think of a few typical games that you would want to implement with the engine. For each game write down what functionality should be in the engine, and what should be defined in the individual game. Combine all the lists of engine functionality. Generalise it as much as you reasonably can. Write down method signatures and parameter specifications for a set of public methods that games could use to access that engine functionality. You should now have something that looks a bit like part of the Java API documentation.
Then, and only then, think about all the classes you need and how to implement those methods.
If you post the method signatures here I'm sure people will help you refine them.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.