0
votes
0answers
6 views

Overriding Help [migrated]

I can't get method overriding to work. Right now I have a class called Sprite, and two subclasses; Let's call them Goomba and Koopa. Instances of Koopas and Goombas are stored in an std::list of ...
1
vote
1answer
169 views

Handling Multiple Items Interaction (in a 2-Players Game)

Back Story I'm working on a 2-Players 2D game that players play multiple rounds ,until one win. In each round, each player choose some items (1 or more) for his/her car ( e.g. shield, anti-shield, ...
5
votes
3answers
302 views

Deleting a game object causing an access violation

I tried doing this but it cause an access violation. void GameObjectFactory::Update() { for( std::list<GameObject*>::iterator it=gameObjectList.begin() ..... (*it)->Update(); ...
0
votes
1answer
1k views

Interactions between game objects

I'm programming a basic Pacman clone to teach myself game programming. However, I'm struggling with the best way to have the game objects communicate/interact without my code becoming a huge mess. ...