A repository that sets up a C++ Project with the olcPixelGameEngine already loaded.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "Map.h"
|
|
|
|
#include "Player.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
Map newMap;
|
|
|
|
Player newPlayer;
|
|
|
|
newMap.p = &newPlayer;
|
|
|
|
newMap.test();
|
|
|
|
newPlayer.map = &newMap;
|
|
|
|
newPlayer.test();
|
|
|
|
|
|
|
|
newPlayer.map->test();
|
|
|
|
newMap.p->test();
|
|
|
|
}
|