Thursday, 23 July 2015

Bigger, better, faster, more

Started watching another movie and it was kinda scary/depressing, so I stopped (Danish movie called The Hunt).

As I keep adding pieces to the project, I am starting to see how big and confusing the whole thing can become.  I am sure there is a way to do it, but I don't know how just yet, but what I'd like to do is pull big chunks of code out of the current file and bring put them somewhere else.  That way I can work on discrete parts and tie them together in the main file.

I have a suspicion that this is what classes are for. I am yet to fully grasp using them.  The best idea I have had so far is to create a class for characters.  It will hold things like the x and y position, the number of action points left, maybe some other value for health left (not that I am sure i want that type of thing).  I can envisage an cRPG style game that would define classes for creatures, weapons, armour etc.  Just not sure how to use them in 'this' game.

No comments:

Post a Comment