diff --git a/asteroids/View.cc b/asteroids/View.cc index b9a0556..53e2ee5 100644 --- a/asteroids/View.cc +++ b/asteroids/View.cc @@ -460,7 +460,7 @@ void View::DrawUiLevelComplete() { Engine::GUI::Label (6, "Congratulations - You rock!", screen_right * 0.5 - 80, screen_bottom * 0.5 -16); - if(Engine::GUI::Button (1, "Next level ...", screen_right * 0.5 - 80, screen_bottom * 0.5 -16, 250, 40)) { + if(Engine::GUI::Button (1, "Next level ...", screen_right * 0.5 - 80, screen_bottom * 0.5 - 48, 250, 40)) { GetModel()->SetGameState(GameStateRunning); } } diff --git a/data/levels/level1.txt b/data/levels/level1.txt new file mode 100644 index 0000000..8cc0c17 --- /dev/null +++ b/data/levels/level1.txt @@ -0,0 +1,5 @@ +# Format +# +GameEntityTypeShip 1 0 0 0 0 90 0 0 0 0 0 +GameEntityTypeAsteroid 0 7 0 -3 0 0 0 0.6 0 -0.1 -10 +GameEntityTypeAsteroid 0 -5 0 1 0 0 0 0.3 0 0.4 5 diff --git a/data/levels/level2.txt b/data/levels/level2.txt new file mode 100644 index 0000000..d065192 --- /dev/null +++ b/data/levels/level2.txt @@ -0,0 +1,7 @@ +# Format +# +GameEntityTypeShip 1 0 0 0 0 90 0 0 0 0 0 +GameEntityTypeAsteroid 0 2 0 -6 0 0 0 -0.6 0 0.3 -10 +GameEntityTypeAsteroid 0 -3 0 8 0 0 0 -0.9 0 -0.4 15 +GameEntityTypeAsteroid 0 5 0 -6 0 0 0 0.8 0 0.3 -10 +GameEntityTypeAsteroid 0 -6 0 5 0 0 0 -1.3 0 -0.9 5