Tagged Questions
1
vote
3answers
120 views
Level and Player objects - which should contain which?
I've been working on a several simple games, and I've always come to a decision point where I have to choose whether to have the Level object as an attribute of the Player class or the Player as an ...
1
vote
4answers
204 views
What is the best method to use to write and handle multiple levels?
I have a level class that does all of the updating and drawing and everything pertaining to the level. My question is, what would be the best approach to creating different levels? Should I just ...
0
votes
1answer
236 views
Problem creating levels using inherited classes/polymorphism
I'm trying to write my level classes by having a base class that each level class inherits from...The base class uses pure virtual functions.
My base class is only going to be used as a vector ...
1
vote
2answers
110 views
How do I make a pointer point to the current running level if each level is its own class?
I'm hard-coding my levels and coding each level in its own class...The problem is that I need to have a pointer that points to the class of the current level. I don't know how I would go about doing ...