Starting Mario Editor project

This commit is contained in:
2021-04-30 21:02:14 +02:00
parent 1927b71629
commit d4991ea3a7
6 changed files with 156 additions and 5 deletions
+1 -1
View File
@@ -71,8 +71,8 @@ void loadMap(std::shared_ptr<SDLPP::Scene> &scene, std::shared_ptr<SDLPP::Rectan
}
if(mario != nullptr) {
mario->setPos(mario_x * BLOCK_SIZE, 1 - (rows - mario_y) * BLOCK_SIZE);
scene->moveZTop(mario);
} else {
//createMarioBlock
}
scene->moveZTop(mario);
}