Skip to content

Commit

Permalink
v2.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
danwardvs committed Nov 18, 2017
1 parent 7e33420 commit 142e774
Show file tree
Hide file tree
Showing 15 changed files with 4,628 additions and 5,100 deletions.
579 changes: 275 additions & 304 deletions bin/Untitled

Large diffs are not rendered by default.

731 changes: 149 additions & 582 deletions bin/data/level_0.xml

Large diffs are not rendered by default.

1,202 changes: 171 additions & 1,031 deletions bin/data/level_1.xml

Large diffs are not rendered by default.

804 changes: 588 additions & 216 deletions bin/data/level_10.xml

Large diffs are not rendered by default.

888 changes: 312 additions & 576 deletions bin/data/level_11.xml

Large diffs are not rendered by default.

1,365 changes: 842 additions & 523 deletions bin/data/level_12.xml

Large diffs are not rendered by default.

906 changes: 906 additions & 0 deletions bin/data/level_13.xml

Large diffs are not rendered by default.

459 changes: 459 additions & 0 deletions bin/data/level_14.xml

Large diffs are not rendered by default.

1,116 changes: 548 additions & 568 deletions bin/data/level_2.xml

Large diffs are not rendered by default.

832 changes: 156 additions & 676 deletions bin/data/level_3.xml

Large diffs are not rendered by default.

771 changes: 184 additions & 587 deletions bin/data/level_4.xml

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions bin/data/level_5.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<data>
<Object type="Explosive">
<x>8.8</x>
<y>-35</y>
</Object>
<Object type="Tile">
<x>21.6</x>
<y>-2.4</y>
Expand Down
54 changes: 24 additions & 30 deletions bin/data/level_9.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<data>
<Object type="Character">
<x>10.4</x>
<y>-12</y>
<bodytype>Character</bodytype>
</Object>
<Object type="Tile">
<x>13.6</x>
<y>-5.6</y>
Expand Down Expand Up @@ -60,18 +65,6 @@
<orientation>1 2 7 8</orientation>
<bodytype>Static</bodytype>
</Object>
<Object type="Tile">
<x>18.4</x>
<y>-0.8</y>
<orientation>0 2 3 5</orientation>
<bodytype>Static</bodytype>
</Object>
<Object type="Tile">
<x>18.4</x>
<y>-2.4</y>
<orientation>3 5 6 8</orientation>
<bodytype>Static</bodytype>
</Object>
<Object type="Tile">
<x>0.8</x>
<y>-15.2</y>
Expand Down Expand Up @@ -234,23 +227,12 @@
<orientation>1 1 7 7</orientation>
<bodytype>Dynamic</bodytype>
</Object>
<Object type="Tile">
<x>13.6</x>
<y>-4</y>
<orientation>0 1 6 7</orientation>
<bodytype>Dynamic</bodytype>
</Object>
<Object type="Tile">
<x>18.4</x>
<y>-4</y>
<orientation>1 2 7 8</orientation>
<bodytype>Dynamic</bodytype>
</Object>
<Object type="Character">
<x>10.4</x>
<y>-12</y>
<bodytype>Character</bodytype>
</Object>
<Object type="Finish">
<x>37.6</x>
<y>-24.8</y>
Expand Down Expand Up @@ -305,13 +287,6 @@
<height>1.6</height>
<bodytype>Collision</bodytype>
</Object>
<Object type="Tile">
<x>18.4</x>
<y>-1.6</y>
<width>1.6</width>
<height>3.2</height>
<bodytype>Collision</bodytype>
</Object>
<Object type="Tile">
<x>36.8</x>
<y>-28</y>
Expand Down Expand Up @@ -344,5 +319,24 @@
<height>1.6</height>
<bodytype>Collision</bodytype>
</Object>
<Object type="Tile">
<x>18.4</x>
<y>-0.8</y>
<orientation>0 2 6 8</orientation>
<bodytype>Static</bodytype>
</Object>
<Object type="Tile">
<x>13.6</x>
<y>-4</y>
<orientation>0 1 6 7</orientation>
<bodytype>Dynamic</bodytype>
</Object>
<Object type="Tile">
<x>18.4</x>
<y>-0.8</y>
<width>1.6</width>
<height>1.6</height>
<bodytype>Collision</bodytype>
</Object>
</data>

6 changes: 5 additions & 1 deletion src/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
// Init editor
editor::editor(){

//al_set_new_display_flags(ALLEGRO_WINDOWED);
al_set_new_display_flags(ALLEGRO_WINDOWED);


editorUI = UIHandler();

std::cout << "Initializing editor\n";
Expand Down Expand Up @@ -410,7 +414,7 @@ void editor::update(){
}
}

if(editorUI.getElementById("left_top_toggle") -> mouseReleased() || keyListener::keyPressed[ALLEGRO_KEY_DOWN]){
if(editorUI.getElementById("left_top_toggle") -> mouseReleased()){
editorUI.getElementByText("explosive_up") -> toggleStatus();
editorUI.getElementByText("explosive_down") -> toggleStatus();
editorUI.getElementByText("explosive_left") -> toggleStatus();
Expand Down
11 changes: 9 additions & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_native_dialog.h>

#define danny_wants_to_listen_to_music_while_programming true
#define danny_wants_to_listen_to_music_while_programming false


bool game::testing = false;
Expand Down Expand Up @@ -369,7 +369,7 @@ void game::update(){
// Touching goat
if( gameGoat != nullptr && gameGoat -> getWinCondition()){
level ++;
if( level > 10){
if( level > 14){
set_next_state(STATE_MENU);
}
else{
Expand Down Expand Up @@ -465,6 +465,13 @@ void game::draw(){
al_draw_textf( help_font, al_map_rgb( 255, 255, 255), 500, 75, 1, "Use R to restart the level.");
}

// if( level == 11){
// al_draw_textf( help_font, al_map_rgb( 255, 255, 255), 500, 75, 1, "Green launcher blocks shoot dynamic blocks. ");
// al_draw_textf( help_font, al_map_rgb( 255, 255, 255), 500, 75, 1, "Red launchers launch blocks and the character. ");
//
// }


// Draw boxes
for( unsigned int i = 0; i < gameBoxes.size(); i++){
gameBoxes[i] -> draw();
Expand Down

0 comments on commit 142e774

Please sign in to comment.