We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,613 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How do I create a java2d game engine?

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?

3
Contributors
4
Replies
2 Days
Discussion Span
6 Months Ago
Last Updated
5
Views
System Networks
Newbie Poster
8 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

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?

Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 375
Skill Endorsements: 17

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

System Networks
Newbie Poster
8 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

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.

JamesCherrill
... trying to help
Moderator
8,497 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,454
Skill Endorsements: 29

Of course collisions, rendering, particles. Those are the basic

System Networks
Newbie Poster
8 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0674 seconds using 2.69MB