I want a clean way of creating game object such as NPCs, bullets and power-ups, reducing the amount of inter-dependence on specific classes. I believe this is what the factory pattern is used for?
I would love to see a good implementation from a real game.
I'm not an expert on design patterns, and never use them if I don't understand them. I don't want to use a design pattern for the sake of it - I just want to understand if this pattern is the right way to solve this problem.