Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 24 Oct 2010
Offline Last Active Yesterday, 11:44 AM

Posts I've Made

In Topic: How can I make a text parser?

30 September 2015 - 01:14 PM

class MyObj
string myStr;
int myInt;
float myFloat;

void WriteToStream(ofstream & file)
    file << myStr << ' ' << myInt << ' ' << myFloat << std::endl;

void ReadFromStream(ifstream & file)
    file >> myStr >> myInt >> myFloat;

I think the simplest way to do this is as above. The first method uses a stream to output the classes fields in order, with a ' ' delimiter.

The second simply reads the same data back in and the stream will automatically know about the space for the delimiter since that's how streams work.


You can write any number of these to the same file and read them in until eof.


Otherwise if you really need something more complex, then you probably need to be using xml or json.

In Topic: I've always wanted to do game programming - but....

29 September 2015 - 06:21 PM

The asset store is your best friend. Grab some of those free art packs like this one


and make yourself some demos/prototypes to learn and figure out what kinda game you want to make.

Then upgrade yourself to the full pack from the same company or anyone of the full game art kits on the store.



You can find Unity books and tutorials all over the place, lots are free, some are not. I'd start with a good book that was released in the last few months that mentions Unity 5 and get cracking with your new found art pack. Good luck, also unity3d.com/learn has a ridiculous amount of content.

In Topic: Should I learn c++ for game dev?

25 September 2015 - 10:00 AM

In today's world deciding which language to use soley on language comparison is like trying to buy a painting when you're blind.


What you really need to do is find a tool set that allows you to make what you want to make. Here's why, say you pick c++, well great but what api are you going to use to draw? How will you even design your scenes without an editor? What about asset management and loading? ECT...


The reality is you need a tool set, not just a language.


That said there are a few good tool sets out there right now.


if you really want to stick with c++ then look into Unreal Engine. However I think your best bet as a beginner game developer and Java programmer is Unity with C#. Java and c# are similar in a lot of ways including GCing.

In Topic: So I want to make a game from scratch in C++

13 September 2015 - 08:43 AM



Watch those videos.


Then you should either decide to use an existing engine or pick up a few libraries in you chosen language as your tool set. Then start playing around and try to make some very basic stuff like pong, breakout, ect... Good luck and don't forget that you will probably end up reading a ton of books/tutorials!


Above all else make sure the projects you pick to learn from are fun and interesting to you.

In Topic: Are there any good recommended open source .obj exporter?

12 September 2015 - 08:13 AM

Assimp is good if you need a library to do it. Also Blender can export obj by default.