Okay guys, it's been a while since I've been around, but lately I've been contemplating making a Pokemon Trading Card Game.
I have in the past worked on such a project, however things got buried within themselves; the code getting more and more elaborate, and there was no easy way to accomplish anything. I'll make a second post with some of the code snippets, just to give an example of what I was going through.
Basically I want to start from scratch, since I know my code was inefficient, and that's one of my primary focuses is to learn to code efficiently with the project I'm not re-embarking on.
I'm not sure how to go about even planning what to do - should I get the turn system down? How should it handle all the complex options? I want to make a datum handle this that will make further changes easy and efficient. I want cards to be objects where the rest of the system is so well-built that adding new cards is like snapping my fingers.
Well, I'll add some snippets in the next posts, since they're not really necessary, and there's a lot of it, so it's for those who are interested. Really, I'm only posting it so you may get a vague idea of how I was trying to handle things.
ID:151483
Sep 4 2010, 8:47 am (Edited on Sep 4 2010, 8:55 am)
|
|
Here's the actual turn system handling - which is much shorter than the previous code, just for an example of how I was handling that.
mob |
And finally, how I was trying to handle the actual card creation so it was as easy as setting variables:
obj |
There's more too, but I want to keep things organized, so next post.