Game Engine

This is a discussion on Game Engine within the Game Programming forums, part of the General Programming Boards category; To code a game engine is it just like coding normal apps? if not, is there anyone who has an ...

  1. #16
    Registered User
    Join Date
    Apr 2006
    Posts
    132
    To code a game engine is it just like coding normal apps?

    if not, is there anyone who has an example of an engine code that i can check out plz?

    im currently just planning the game out, and how the math will work, like the owner of an old game told me to.

    once i have finished doing all of that, and know more C++ ill prolly try coding it.

    Would it be easy to code in seperate files.. like..

    in the game i want a log in screen... that loads the main screen with buttons for manager, store, connect to main server, learn to play..

    would it be best to code the manager source, then save.

    then store and save, then learn to play, and save. then in the Main screen source, i #include <store>

    and stuff like that? is that the best way to do it so its easy to read?

  2. #17
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    My very incomplete engine that I've now dumped:
    Laugh at my work day

    It's not quite the same as programming general applications. It's a hell of a lot more interesting IMO and craploads more rewarding - you'll love it.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #18
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,578
    It's just too much information for a simple answer Hugo. Answering it with simple phrases would not make you any knowledgeable. Just please concentrate first on C++. Learn everything there is to learn about it. Forget games. Really... forget them. It's still a long walk before you can start thinking on beeing even slightly effective in programming games.

    The word is it takes around 1 year to feel comfortable with the programming language, and maybe two to become proficient. During your learning stage many answers will start to fit into place. And during that time, if you are still concentrated in this "I want to do games" thing, there will be plenty of ideas that will start flowing that will allow you to design small games with the knowledge you already have at that time.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #19
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by Mario F.
    It's just too much information for a simple answer Hugo. Answering it with simple phrases would not make you any knowledgeable. Just please concentrate first on C++. Learn everything there is to learn about it. Forget games. Really... forget them. It's still a long walk before you can start thinking on beeing even slightly effective in programming games.

    The word is it takes around 1 year to feel comfortable with the programming language, and maybe two to become proficient. During your learning stage many answers will start to fit into place. And during that time, if you are still concentrated in this "I want to do games" thing, there will be plenty of ideas that will start flowing that will allow you to design small games with the knowledge you already have at that time.
    Yeah during the time you spend learning you might very well decide you're more interested in programming other system level software like compilers etc. I know I went through a phase of wanting to write my own language early on while learning C++.

    Actually writing a game engine I also get to write my own scripting language so it's a win-win situ.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  5. #20
    Registered User
    Join Date
    Apr 2006
    Posts
    132
    ok thanks for all the replies. yeh im not going to try and make it yet, im still learning.

    the C++ Acelerated beginner book is a bit complicated or is it just me?

    like it says

    cout << + name + "*" < endl;

    whats the + mean? lol

    im going to learn all i can in c++, and then ill start learning networking, and then probably opengl.

    its a long time before i can do games i know, but i will get there eventualy

    thankyou people i was just confused as to what engines look like. and thankyou ill check out that engine you wrote, thanks.

    hugo.

  6. #21
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    +, when applied to what I assume name is (a std::string) is the concatenation operator. Basically it sticks one string on the end of the other.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  7. #22
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    [QUOTE=Hugo716]ok thanks for all the replies. yeh im not going to try and make it yet, im still learning.

    the C++ Acelerated beginner book is a bit complicated or is it just me?
    QUOTE]
    I think the exercises are a little complicated in the book but some of them are really knid of encouraging you to think a little bit more than what the chapter provided to solve the problem. I would just read first, then look at the problems and see if you can solve them, and read ahead and go back and try to solve problems you weren't able to before. Sometimes the idea pops into your head.

Page 2 of 2 FirstFirst 12
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