Jump to content
  • Advertisement
Sign in to follow this  
Protocol_0

Game Engine Question

This topic is 4770 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

What does a game engine consist of? I don't think I know 100% what a game engine is. I mean, isn't your entire source code the game engine? That's what makes your game run, isn't it? If I asked someone to give me their game engine, what part of their code would they give me? The functions which handle the AI, sound etc? Or the code that leads up to it, and calls it, as well as the functions? I'm a little lost.

Share this post


Link to post
Share on other sites
Advertisement
A game engine is the building blocks of a game.
To answer your question about asking some1 2 give u thier engine:
You would expect:

What u would get very much so depends on how advanced or basic the engine is.
For a bsic one you would have the rendering functions, window set up, keyboard input and prob sound.
Advanced ones is where you would get the AI functions, ur phsyic engines and stuff like that.

hope that helps :/

Share this post


Link to post
Share on other sites
It is not a well defined term so don't worry too much about it.
Many developers try to reuse software parts. Only general parts can be reused and often these parts are reffered to as the engine. Yes, many times this includes rendering, sound, AI, input, resource management etc.

Cheers

Share this post


Link to post
Share on other sites
Ahhh, ok. So if I had a function which drew a character, than would the engine actually consist of the glVertex3f's or whatever you're using to draw, or would it just consist of the for loops or whatever procedure you have to actually draw the character, or both? I would imagine the engine would also contain all parameters and returns for each function, aswell.

Share this post


Link to post
Share on other sites
skittleo: but wouldn't gameplay include AI, collision detection, and all that? I thought they were part of the game engine.

Perost: thanks for the link. It really cleared things up.

Share this post


Link to post
Share on other sites
Quote:
Original post by Protocol_0
skittleo: but wouldn't gameplay include AI, collision detection, and all that? I thought they were part of the game engine.

Perost: thanks for the link. It really cleared things up.


The line is drawn all within your head. This is just my opinion.

AI - Pathfinding is engine. Unit controllers are gameplay.
Collision detection - engine

The gameplay code would be the specific code used for your game that cannot be easily reused across projects.

Share this post


Link to post
Share on other sites
I have generic code which I consider to be my game engine.
I have a physics library which is specific to only one game - it is completely innapropriate to anything else - I consider this to be a physics engine, but I don't consider it to be part of my game engine.

But that's just me. You can disagree if you like. I don't really care to be honest - it's an engine because I say so :p

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!