added some levels

main
Martin Felis (schakeline) 2010-10-18 00:48:16 +02:00
parent 9809a7318b
commit 2c220a96f1
3 changed files with 13 additions and 1 deletions

View File

@ -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);
}
}

5
data/levels/level1.txt Normal file
View File

@ -0,0 +1,5 @@
# Format
# <Type> <player?> <xpos> <ypos> <zpos> <zrot> <yrot> <xrot> <xvel> <yvel> <zvel> <rotvel>
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

7
data/levels/level2.txt Normal file
View File

@ -0,0 +1,7 @@
# Format
# <Type> <player?> <xpos> <ypos> <zpos> <zrot> <yrot> <xrot> <xvel> <yvel> <zvel> <rotvel>
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