J
JoeC
I am a self taught programmer and I am starting to get better and
create larger and more complex projects. Mostly I write games because
they keep me interested. I have done some reading with directX but
mostly I am more comfortable with win32. I only use win32 as a way to
show something on the screen. I am more interested in design patterns
and trying to find the best tool for a problem. I don't have a
specific question but like the abstract discussions on how others
approach programming and what kind of tips I can gain from other
people. What is the best way to create an object because I have
objects that tend to get very big is that OK? I don't use pointers
very much and try to use standard libraries as much as I can. I tend
to use pointers if I have objects that hold other objects. For
example if I have a player object then I will have weapons class
pointer. The player might have a spear or a club and they will act
differently or there may not be any weapon at all. I tend not to use
dynamic binding very much never have the right problem although for
one of my games I did create a handle for units. I was planning to
have land air and sea units but only actually created the land units
but the handle worked great if I had wanted to create more kinds of
units.
I am just writing some Ideas of how I program and if you like and have
something to say I would be interested in your thoughts if not that is
OK too feel no need to respond unless you want to get into the more
abstract way you approach programming.
create larger and more complex projects. Mostly I write games because
they keep me interested. I have done some reading with directX but
mostly I am more comfortable with win32. I only use win32 as a way to
show something on the screen. I am more interested in design patterns
and trying to find the best tool for a problem. I don't have a
specific question but like the abstract discussions on how others
approach programming and what kind of tips I can gain from other
people. What is the best way to create an object because I have
objects that tend to get very big is that OK? I don't use pointers
very much and try to use standard libraries as much as I can. I tend
to use pointers if I have objects that hold other objects. For
example if I have a player object then I will have weapons class
pointer. The player might have a spear or a club and they will act
differently or there may not be any weapon at all. I tend not to use
dynamic binding very much never have the right problem although for
one of my games I did create a handle for units. I was planning to
have land air and sea units but only actually created the land units
but the handle worked great if I had wanted to create more kinds of
units.
I am just writing some Ideas of how I program and if you like and have
something to say I would be interested in your thoughts if not that is
OK too feel no need to respond unless you want to get into the more
abstract way you approach programming.