i'm experienced with procedural/algorithmic programming but have stuck for years to a linear style in c++ instead of OO. so, today i have a very basic and probably horrendously stupid sounding question -
generally, when people implement a class of incidental objects in a video game, say bullets in galaxian, et c.. this is done by creating an array of objects of a class?
or is there some other OO method generally used instead?
Yes, generally a std::vector or similar container is used to store the objects, or to store pointers/smart pointers to the objects if they are polymorphic. Generally a Bullet class will have already derived from some other classes that allow for movement, display, collision, etc. aka allow it to be treated as a gameplay object. Today's common container is std::vector<std::unique_ptr<GameObject>> or similar.