Game Engine Q

This is a discussion on Game Engine Q within the Game Programming forums, part of the General Programming Boards category; Just wondering...what exactly is a game engine? Ive heard about companies that use the same engine for several games....what does ...

  1. #1
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949

    Game Engine Q

    Just wondering...what exactly is a game engine? Ive heard about companies that use the same engine for several games....what does this mean? Sorry for my isolence! :rolleyes
    Do not make direct eye contact with me.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    An engine is basically a chunk of code doing something, coded in such a general way that you can specify what it does without coding any specifics.

    Here's an example of a graphics engine:
    Code:
    class GRAPHICS
    {
    	public:
    		//Constructor/Destructor
    		GRAPHICS();
    		~GRAPHICS();
    
    		//Graphics mode controllers
    		BOOL Setup();
    		VOID Shutdown();
    
    		//Render methods
    		VOID RenderText(INT X, INT Y, CONST CHAR* Text, DWORD Colour);
    		VOID RenderInt(INT X, INT Y, INT Value, DWORD Colour);
    		VOID RenderFill(DWORD Colour);
    		VOID RenderSolidSprite(INT X, INT Y, SPRITE Sprite);
    		VOID RenderTransparentSprite(INT X, INT Y, SPRITE Sprite);
    };
    To enter the graphics mode, all you have to do is call Setup() and it takes care of everything for you. No need to code thousends of lines, just one little call to Setup().
    To draw a sprite (image), you simply call RenderSolidSprite(), pass where on the screen it should be drawn and what sprite to use.
    This makes the code a lot clearer and easier to read.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Ahh, thank you both.
    Do not make direct eye contact with me.

  5. #5
    Deleted Account
    Join Date
    Mar 2003
    Posts
    62
    I guess you have the answer but a good game engin can be found at my site
    look in the tutorials section.. ther's onely one there thats the tutorial.

  6. #6
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    I'm working on a 2D graphics engine for Direct3D right now. Sounds weird to people inexperienced in the game programming or hardware fields, but it works out VERY cool.

    I see an engine as a very broad word. Depending on what it does, it could be very different things. But usually it is as Magos described.

  7. #7
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Me and someone else are working on a bombing game in SDL. We'll be using ZEngine. What eva the heck ZEngine is.
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ShellView as a Game Engine
    By Mastadex in forum Windows Programming
    Replies: 1
    Last Post: 01-21-2008, 03:51 PM
  2. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-26-2006, 12:14 AM
  3. KJ game engine
    By Lionmane in forum Game Programming
    Replies: 4
    Last Post: 11-18-2005, 06:16 AM
  4. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 02:47 PM
  5. game engine
    By onurak in forum Game Programming
    Replies: 1
    Last Post: 07-27-2002, 07:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21