Basic editor functionality arrived!

Terrible code, must be changed!!!
This commit is contained in:
2021-05-01 21:55:43 +02:00
parent 183bd53b66
commit 61e45e89a5
9 changed files with 265 additions and 128 deletions
+3 -3
View File
@@ -212,9 +212,9 @@ int main() {
mario->addCollision(
SDLPP::RectColider( 0.21, 0.85, 0.65, 0.16, MARIO_FLOOR_DETECT ) );
mario->addCollision(
SDLPP::RectColider( 0, 0, 0.1, 0.9, MARIO_LEFT_SIDE_DETECT ) );
SDLPP::RectColider( 0, 0.1, 0.1, 0.8, MARIO_LEFT_SIDE_DETECT ) );
mario->addCollision(
SDLPP::RectColider( 0.9, 0, 0.1, 0.9, MARIO_RIGHT_SIDE_DETECT ) );
SDLPP::RectColider( 0.9, 0.1, 0.1, 0.8, MARIO_RIGHT_SIDE_DETECT ) );
mario->setStatic( false );
scene->addObject( mario );
@@ -240,7 +240,7 @@ int main() {
leftStop->setColiderColor( "#FF00FF" );
scene->addObject( leftStop );
loadMap( scene, mario, "testmap.txt", renderer );
loadMap( scene, mario, "test_binary2.bin", renderer );
FPSmanager gFPS;
SDL_initFramerate( &gFPS );