Sign in to follow this  

Help with programming a 2D game engine

This topic is 4036 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im currently programming a 2d game engine with C# and Managed DirectX. I have made the engine but it doesnt seem to be really helpfull for me when im writing a game... can someone please point me in the right direction as to how to make a successfull 2d game engine in c#? thanks

Share this post


Link to post
Share on other sites
You'd probably be better off just using the XNA framework. (V 1.0 is supposed to come out mid December). I'm sure you've heard this before, but if you want to make a game rather than an engine, find a good engine and start working on your game. It takes far far too much time working on both (I can attest to this personally).

Share this post


Link to post
Share on other sites
Ive heard about XNA but I would prefer at least for now to stick with Managed DirectX as I am familiar with it. Also I want to make a 2d game engine because I am planning to make a few games (one a sidescroller and one a turn-based RPG and possibly more in the future).
thanks

Share this post


Link to post
Share on other sites
Write a game first, then derive an engine from that. Only by creating an actual game will you get a good grasp of what you need in the engine. If you don't know how to write a simple game yet, then there are many tutorials around.

Share this post


Link to post
Share on other sites
You see i'm not a beginner in game programming. I have made a few games before just based on DirectX, no game engine. Now that i've started a project, I thought it would be good to make a game engine so that I can use in the project and in other projects in the future. I just need some help with developing the engine.
thanks

Share this post


Link to post
Share on other sites
From my experience with FlatRedBall, my #1 piece of advice I can give when developing an engine is: Let necessity be your guide.

Lots of people try to make game engines, and to be honest, they turn out to be garbage because they didn't consider the purpose of the engine - GAMES! As Kylotan suggested, make a game. Any time you need something new like movement or collision or input, stop for a moment, and think how you could code it so it will not only be useful for you in this game, but also in the next game you make, and the game after that. It takes a bit of time and experience to be able to make these kinds of "predictions", but the exercise is well worth it regardless of how much engine work you've done before.

Share this post


Link to post
Share on other sites
Quote:
Original post by Roof Top Pew Wee
Any time you need something new like movement or collision or input, stop for a moment, and think how you could code it so it will not only be useful for you in this game, but also in the next game you make, and the game after that. It takes a bit of time and experience to be able to make these kinds of "predictions", but the exercise is well worth it regardless of how much engine work you've done before.

Take it a step further: write it to solve your current problem, then refactor it. At some point you'll want Subsystem A to interact with Subsystem F, or something like that; that's an excellent opportunity to refactor.

Share this post


Link to post
Share on other sites

This topic is 4036 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this