How to make a map with two keys?I want to be able to search for just one key, like this: [code]Sprite.at["Stone"] == Sprite.at[0]...
How do I send `this` as a parameter?Yes thank you that was the problem. And also I had to make it a pointer and define it later after Pl...
How do I send `this` as a parameter?This is my code currently in main: [code]std::shared_ptr<CEntity> Player;[/code] CCamera Camer...
[SDL] I'm making a snake game and apparently I have a memory leak.Thanks! I did something like this at first, but it didn't work. After the function was done the Head...
[SDL] I'm making a snake game and apparently I have a memory leak.Thanks! This is the code now for AddBlock: [code] void CSnake::AddBlock() { try { CB...