EXAMPLE CODE - Empty HGE Project (with separated files)
  • eggnogeggnog June 2007
    When I first started with HGE a few months ago I wanted to make my project more managable.

    I had some difficulty working out how I could separate a project into multiple files (Not really surprising as I am still a newbie in the c++ department XD).

    Anyway I worked it out a while back and thought I would post an example almost empty project.

    I was hoping that it will help someone out there :D

    Also I was hoping that some of the more experianced members around here could take a look and point out anything that may be wrong with it or anything they would do differently.

    Here's the link: http://themissingink.net/games/blankhge.zip
  • Fl0Fl0 July 2007
    In this project you put all functions in different files. Yes, this is a kind of a project optimization. But it is not useful on any real project. Just because an ide's supports several useful "find" utilities - in VC it is a class wizard, a find in files tool, markers and even collapsing of functions.

    So, if the game consists of several screens, put render, frame, setup and deinitialization routines in a separate files.
    Another idea is to put different classes (for player, for enemy, for controls) in a different files.
    And, yes, placing a resources like bitmaps or fonts in a "Graphics" directory is a good idea too.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion

  • Fl0 July 2007

Who's Online (0)