- Fixed ghostforest vs. ghostwood name
authorMatthias Braun <matze@braunis.de>
Mon, 17 Apr 2006 09:22:14 +0000 (09:22 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 17 Apr 2006 09:22:14 +0000 (09:22 +0000)
- Added waterways (no spritechange implemented though)
- Removed FIXME file, use the wiki TODO
- relax Sector::inside test to conside things above the sector as inside
    (this fixes the badguy porting problems in a simpler way,
     and the lifeup on top disappearing)

SVN-Revision: 3351

24 files changed:
FIXME [deleted file]
data/images/tiles/ghostforest/ghostforest.xcf [deleted file]
data/images/tiles/ghostforest/ghostwood-1.png [deleted file]
data/images/tiles/ghostforest/ghostwood-4.png [deleted file]
data/images/tiles/ghostforest/ghostwood-5.png [deleted file]
data/images/tiles/ghostforest/ghostwood-6.png [deleted file]
data/images/tiles/ghostforest/ghostwood-7.png [deleted file]
data/images/tiles/ghostwood/ghostforest.xcf [new file with mode: 0644]
data/images/tiles/ghostwood/ghostwood-1.png [new file with mode: 0644]
data/images/tiles/ghostwood/ghostwood-4.png [new file with mode: 0755]
data/images/tiles/ghostwood/ghostwood-5.png [new file with mode: 0644]
data/images/tiles/ghostwood/ghostwood-6.png [new file with mode: 0644]
data/images/tiles/ghostwood/ghostwood-7.png [new file with mode: 0755]
data/images/worldmap.strf
data/images/worldmap/antarctica/water-editor.png [new file with mode: 0644]
data/images/worldmap/common/boat/boat.sprite
src/badguy/badguy.cpp
src/badguy/badguy.hpp
src/badguy/mriceblock.cpp
src/console.cpp
src/sector.cpp
src/sector.hpp
src/worldmap/tux.cpp
src/worldmap/worldmap.hpp

diff --git a/FIXME b/FIXME
deleted file mode 100644 (file)
index b2236ce..0000000
--- a/FIXME
+++ /dev/null
@@ -1,8 +0,0 @@
-SUPERTUX FIXME'S
-This file is for small, obvious and temporary issues that are too minor to be put into the TODO at the wiki.
-Just put them here so you don't forget.
----
-
-Errors in scripts crash X-Server (very annoying, please fix)
-Some levels don't have the music path set correctly
-Revert Tux to single image sprite
diff --git a/data/images/tiles/ghostforest/ghostforest.xcf b/data/images/tiles/ghostforest/ghostforest.xcf
deleted file mode 100644 (file)
index 9a8da5b..0000000
Binary files a/data/images/tiles/ghostforest/ghostforest.xcf and /dev/null differ
diff --git a/data/images/tiles/ghostforest/ghostwood-1.png b/data/images/tiles/ghostforest/ghostwood-1.png
deleted file mode 100644 (file)
index 86f50d7..0000000
Binary files a/data/images/tiles/ghostforest/ghostwood-1.png and /dev/null differ
diff --git a/data/images/tiles/ghostforest/ghostwood-4.png b/data/images/tiles/ghostforest/ghostwood-4.png
deleted file mode 100755 (executable)
index b2af5f9..0000000
Binary files a/data/images/tiles/ghostforest/ghostwood-4.png and /dev/null differ
diff --git a/data/images/tiles/ghostforest/ghostwood-5.png b/data/images/tiles/ghostforest/ghostwood-5.png
deleted file mode 100644 (file)
index cdf5015..0000000
Binary files a/data/images/tiles/ghostforest/ghostwood-5.png and /dev/null differ
diff --git a/data/images/tiles/ghostforest/ghostwood-6.png b/data/images/tiles/ghostforest/ghostwood-6.png
deleted file mode 100644 (file)
index 992adba..0000000
Binary files a/data/images/tiles/ghostforest/ghostwood-6.png and /dev/null differ
diff --git a/data/images/tiles/ghostforest/ghostwood-7.png b/data/images/tiles/ghostforest/ghostwood-7.png
deleted file mode 100755 (executable)
index 2e4d8e3..0000000
Binary files a/data/images/tiles/ghostforest/ghostwood-7.png and /dev/null differ
diff --git a/data/images/tiles/ghostwood/ghostforest.xcf b/data/images/tiles/ghostwood/ghostforest.xcf
new file mode 100644 (file)
index 0000000..9a8da5b
Binary files /dev/null and b/data/images/tiles/ghostwood/ghostforest.xcf differ
diff --git a/data/images/tiles/ghostwood/ghostwood-1.png b/data/images/tiles/ghostwood/ghostwood-1.png
new file mode 100644 (file)
index 0000000..86f50d7
Binary files /dev/null and b/data/images/tiles/ghostwood/ghostwood-1.png differ
diff --git a/data/images/tiles/ghostwood/ghostwood-4.png b/data/images/tiles/ghostwood/ghostwood-4.png
new file mode 100755 (executable)
index 0000000..b2af5f9
Binary files /dev/null and b/data/images/tiles/ghostwood/ghostwood-4.png differ
diff --git a/data/images/tiles/ghostwood/ghostwood-5.png b/data/images/tiles/ghostwood/ghostwood-5.png
new file mode 100644 (file)
index 0000000..cdf5015
Binary files /dev/null and b/data/images/tiles/ghostwood/ghostwood-5.png differ
diff --git a/data/images/tiles/ghostwood/ghostwood-6.png b/data/images/tiles/ghostwood/ghostwood-6.png
new file mode 100644 (file)
index 0000000..992adba
Binary files /dev/null and b/data/images/tiles/ghostwood/ghostwood-6.png differ
diff --git a/data/images/tiles/ghostwood/ghostwood-7.png b/data/images/tiles/ghostwood/ghostwood-7.png
new file mode 100755 (executable)
index 0000000..2e4d8e3
Binary files /dev/null and b/data/images/tiles/ghostwood/ghostwood-7.png differ
index 0f5dbb3..529b731 100644 (file)
       (east  #t)
       (stop  #f))
 
+  (tile (id 78)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 0 0 32 32)
+    )
+    (north #f)
+    (south #f)
+    (west #t)
+    (east #t)
+  )
+
+  (tile (id 79)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 32 0 32 32)
+    )
+    (north #t)
+    (south #t)
+    (west #f)
+    (east #f)
+  )
+
+  (tile (id 80)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 64 0 32 32)
+    )
+    (north #f)
+    (south #t)
+    (west #f)
+    (east #t)
+  )
+
+  (tile (id 81)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 96 0 32 32)
+    )
+    (north #f)
+    (south #t)
+    (west #t)
+    (east #f)
+  )
+
+  (tile (id 82)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 0 32 32 32)
+    )
+    (north #t)
+    (south #t)
+    (west #f)
+    (east #t)
+  )
+
+  (tile (id 83)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 32 32 32 32)
+    )
+    (north #t)
+    (south #t)
+    (west #t)
+    (east #f)
+  )
+
+  (tile (id 84)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 64 32 32 32)
+    )
+    (north #t)
+    (south #f)
+    (west #f)
+    (east #t)
+  )
+
+  (tile (id 85)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 96 32 32 32)
+    )
+    (north #t)
+    (south #f)
+    (west #t)
+    (east #f)
+  )
+
+  (tile (id 86)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 0 64 32 32)
+    )
+    (north #t)
+    (south #f)
+    (west #t)
+    (east #t)
+  )
+
+  (tile (id 87)
+    (images "worldmap/antarctica/water.png")
+    (editor-images
+      (region "worldmap/antarctica/water-editor.png" 32 64 32 32)
+    )
+    (north #f)
+    (south #t)
+    (west #t)
+    (east #t)
+  )
+
 (tile
     (id 167)
     (images
diff --git a/data/images/worldmap/antarctica/water-editor.png b/data/images/worldmap/antarctica/water-editor.png
new file mode 100644 (file)
index 0000000..9ca5598
Binary files /dev/null and b/data/images/worldmap/antarctica/water-editor.png differ
index 89ddae6..1307356 100644 (file)
@@ -1,18 +1,30 @@
 (supertux-sprite
   (action
-    (name "default")
-    (x-offset 0)
-    (y-offset 0)
-(fps 5)
-    (images "boat.png"
-)
+    (name "empty")
+    (images "boat_empty.png")
   )
   (action
-    (name "solved")
-    (x-offset 0)
-    (y-offset 0)
-(fps 5)
-    (images "boat.png"
-)
+    (name "small-stop")
+    (images "boat.png")
+  )
+  (action
+    (name "small-walking")
+    (images "boat.png")
+  )
+  (action
+    (name "fire-stop")
+    (images "boat.png")
+  )
+  (action
+    (name "fire-walking")
+    (images "boat.png")
+  )
+  (action
+    (name "large-stop")
+    (images "boat.png")
+  )
+  (action
+    (name "large-walking")
+    (images "boat.png")
   )
 )
index 8c3f085..3798ab9 100644 (file)
@@ -32,7 +32,7 @@ static const float X_OFFSCREEN_DISTANCE = 1600;
 static const float Y_OFFSCREEN_DISTANCE = 1200;
 
 BadGuy::BadGuy()
-  : countMe(true), sprite(0), remove_out_of_bounds(true), dir(LEFT), state(STATE_INIT)
+  : countMe(true), sprite(0), dir(LEFT), state(STATE_INIT)
 {
   set_group(COLGROUP_DISABLED);
 }
@@ -62,7 +62,7 @@ BadGuy::draw(DrawingContext& context)
 void
 BadGuy::update(float elapsed_time)
 {
-  if(!Sector::current()->inside(bbox) && remove_out_of_bounds) {
+  if(!Sector::current()->inside(bbox)) {
     remove_me();
     return;
   }
index f318a4e..24f3154 100644 (file)
@@ -141,12 +141,6 @@ protected:
   /// is the enemy activated
   bool activated;
   /**
-   * Should the badguy be removed when it leaves the bounds of the sector?
-   * Use this when the badguy is portable and picked up by the player, who
-   * may actually leave the sector's bounds sometimes.
-   */
-  bool remove_out_of_bounds;
-  /**
    * initial position of the enemy. Also the position where enemy respawns when
    * after being deactivated.
    */
index 8ec6f9a..7327937 100644 (file)
@@ -276,7 +276,6 @@ MrIceBlock::grab(MovingObject&, const Vector& pos, Direction dir)
   sprite->set_action(dir == LEFT ? "flat-left" : "flat-right");
   set_state(ICESTATE_GRABBED);
   set_group(COLGROUP_DISABLED);
-  remove_out_of_bounds = false;
 }
 
 void
@@ -285,7 +284,6 @@ MrIceBlock::ungrab(MovingObject& , Direction dir)
   this->dir = dir;
   set_state(ICESTATE_KICKED);
   set_group(COLGROUP_MOVING);
-  remove_out_of_bounds = true;
 }
 
 IMPLEMENT_FACTORY(MrIceBlock, "mriceblock")
index abb10d6..7e7b38f 100644 (file)
@@ -196,8 +196,8 @@ Console::addLine(std::string s)
   }
 
   alpha = 1.0;
-  if(stayOpen < 5)
-    stayOpen += 1;
+  if(stayOpen < 6)
+    stayOpen += 1.5;
 }
 
 void
index f746eec..d92fc37 100644 (file)
@@ -1165,7 +1165,7 @@ Sector::inside(const Rect& rect) const
 {
   if(rect.p1.x > solids->get_width() * 32 
       || rect.p1.y > solids->get_height() * 32
-      || rect.p2.x < 0 || rect.p2.y < 0)
+      || rect.p2.x < 0)
     return false;
 
   return true;
index c6b486d..9b72e7d 100644 (file)
@@ -93,7 +93,10 @@ public:
   const std::string& get_name() const
   { return name; }
 
-  /// tests if a given rectangle is inside the sector
+  /**
+   * tests if a given rectangle is inside the sector
+   * (a rectangle that is on top of the sector is considered inside)
+   */
   bool inside(const Rect& rectangle) const;
 
   void play_music(MusicType musictype);
index ade0588..f1086af 100644 (file)
@@ -182,6 +182,8 @@ Tux::tryContinueWalking(float elapsed_time)
     }
   }
 
+
+
   // stop if we reached a level, a WORLDMAP_STOP tile or a special tile without a passive_message
   if ((worldmap->at_level()) || (worldmap->at(tile_pos)->getData() & Tile::WORLDMAP_STOP) || (special_tile && !special_tile->passive_message))
   {
index b6e3a43..69e1ca7 100644 (file)
@@ -160,10 +160,12 @@ public:
    * Save worldmap state to squirrel state table
    */
   void save_state();
+
   /**
    * Load worldmap state from squirrel state table
    */
   void load_state();
+
   /**
    * Load a worldmap
    */