From 2c220a96f1a162cd088d3a7120c934bf380a8424 Mon Sep 17 00:00:00 2001 From: "Martin Felis (schakeline)" Date: Mon, 18 Oct 2010 00:48:16 +0200 Subject: [PATCH] added some levels --- asteroids/View.cc | 2 +- data/levels/level1.txt | 5 +++++ data/levels/level2.txt | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 data/levels/level1.txt create mode 100644 data/levels/level2.txt 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