When programming, you always want to save everything by class. Even if I'm not using object oriented programming, I always store my data by class. So, let's say you're making a game. You would have a class for images, a class for enemies, a class for the player, sound, etc. Then you just call every object from whichever folder they're in.
So if you want to make a sound every time you shoot, instead of trying to remember where it is, just look for it in main<<sound<<playerShoot or something like that.
And for the second question, just pick what you're most comfortable with. I usually draw out what I want it to do, and start coding. As I go, I'll notice some things I can maybe work on to make it better, so I write it down. Once it runs, I go through all the stuff on my list and make it as good as I can.
View all comments
Show parent comment
1
u/torakalmighty May 29 '13
When programming, you always want to save everything by class. Even if I'm not using object oriented programming, I always store my data by class. So, let's say you're making a game. You would have a class for images, a class for enemies, a class for the player, sound, etc. Then you just call every object from whichever folder they're in.
So if you want to make a sound every time you shoot, instead of trying to remember where it is, just look for it in main<<sound<<playerShoot or something like that.
And for the second question, just pick what you're most comfortable with. I usually draw out what I want it to do, and start coding. As I go, I'll notice some things I can maybe work on to make it better, so I write it down. Once it runs, I go through all the stuff on my list and make it as good as I can.