Crude attempt at a hat for airflower.
authorLMH <lmh.0013@gmail.com>
Sun, 30 Nov 2014 01:07:32 +0000 (15:07 -1000)
committerLMH <lmh.0013@gmail.com>
Sun, 30 Nov 2014 01:07:32 +0000 (15:07 -1000)
At least it gets the idea across.

15 files changed:
data/images/creatures/tux/air/hat/spin-1.png [new file with mode: 0644]
data/images/creatures/tux/air/hat/spin-2.png [new file with mode: 0644]
data/images/creatures/tux/air/hat/spin-3.png [new file with mode: 0644]
data/images/creatures/tux/air/hat/stand.png [new file with mode: 0644]
data/images/creatures/tux/air/hat/walk-0.png [new file with mode: 0644]
data/images/creatures/tux/air/hat/walk-1.png [new file with mode: 0644]
data/images/creatures/tux/air/hat/walk-2.png [new file with mode: 0644]
data/images/creatures/tux/earth/hardhat/walk-0.png
data/images/creatures/tux/earth/hardhat/walk-1.png
data/images/creatures/tux/earth/hardhat/walk-2.png
data/images/creatures/tux/earth/hardhat/walk-4.png [deleted file]
data/images/creatures/tux/powerups.sprite
data/images/creatures/tux/tux.sprite
data/images/objects/particles/airtux-hat.sprite
src/object/player.cpp

diff --git a/data/images/creatures/tux/air/hat/spin-1.png b/data/images/creatures/tux/air/hat/spin-1.png
new file mode 100644 (file)
index 0000000..95de76c
Binary files /dev/null and b/data/images/creatures/tux/air/hat/spin-1.png differ
diff --git a/data/images/creatures/tux/air/hat/spin-2.png b/data/images/creatures/tux/air/hat/spin-2.png
new file mode 100644 (file)
index 0000000..a8b29b6
Binary files /dev/null and b/data/images/creatures/tux/air/hat/spin-2.png differ
diff --git a/data/images/creatures/tux/air/hat/spin-3.png b/data/images/creatures/tux/air/hat/spin-3.png
new file mode 100644 (file)
index 0000000..e2d3044
Binary files /dev/null and b/data/images/creatures/tux/air/hat/spin-3.png differ
diff --git a/data/images/creatures/tux/air/hat/stand.png b/data/images/creatures/tux/air/hat/stand.png
new file mode 100644 (file)
index 0000000..edabf83
Binary files /dev/null and b/data/images/creatures/tux/air/hat/stand.png differ
diff --git a/data/images/creatures/tux/air/hat/walk-0.png b/data/images/creatures/tux/air/hat/walk-0.png
new file mode 100644 (file)
index 0000000..8e1db06
Binary files /dev/null and b/data/images/creatures/tux/air/hat/walk-0.png differ
diff --git a/data/images/creatures/tux/air/hat/walk-1.png b/data/images/creatures/tux/air/hat/walk-1.png
new file mode 100644 (file)
index 0000000..0337b3a
Binary files /dev/null and b/data/images/creatures/tux/air/hat/walk-1.png differ
diff --git a/data/images/creatures/tux/air/hat/walk-2.png b/data/images/creatures/tux/air/hat/walk-2.png
new file mode 100644 (file)
index 0000000..20ba9b5
Binary files /dev/null and b/data/images/creatures/tux/air/hat/walk-2.png differ
index 43005c2..2b13056 100644 (file)
Binary files a/data/images/creatures/tux/earth/hardhat/walk-0.png and b/data/images/creatures/tux/earth/hardhat/walk-0.png differ
index 7323842..b8e924d 100644 (file)
Binary files a/data/images/creatures/tux/earth/hardhat/walk-1.png and b/data/images/creatures/tux/earth/hardhat/walk-1.png differ
index 67c0d34..b2369de 100644 (file)
Binary files a/data/images/creatures/tux/earth/hardhat/walk-2.png and b/data/images/creatures/tux/earth/hardhat/walk-2.png differ
diff --git a/data/images/creatures/tux/earth/hardhat/walk-4.png b/data/images/creatures/tux/earth/hardhat/walk-4.png
deleted file mode 100644 (file)
index 34bdefe..0000000
Binary files a/data/images/creatures/tux/earth/hardhat/walk-4.png and /dev/null differ
index c9033e8..ada2ecc 100644 (file)
 ; Earth Tux
 
        (action
+         (name "air-walk-right")
+         (fps 15)
+         (hitbox 16 14 32 64)
+         (images "air/hat/walk-0.png"
+                 "air/hat/walk-1.png"
+                 "air/hat/walk-2.png"
+                 "air/hat/walk-0.png"
+                 "air/hat/walk-1.png"
+                 "air/hat/walk-2.png"))
+
+       (action
+         (name "air-walk-left")
+         (fps 15)
+         (hitbox 16 14 32 64)
+         (mirror-action "air-walk-right"))
+
+       (action
+         (name "air-stand-right")
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"))
+
+       (action
+         (name "air-stand-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-stand-right"))
+
+       (action
+         (name "air-jump-right")
+         (fps 10)
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"
+                 "air/hat/spin-1.png"
+                 "air/hat/spin-2.png"
+                 "air/hat/spin-3.png"))
+
+       (action
+         (name "air-jump-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-jump-right"))
+
+       (action
+         (name "air-skid-right")
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"))
+
+       (action
+         (name "air-skid-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-skid-right"))
+
+       (action
+         (name "air-kick-right")
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"))
+
+       (action
+         (name "air-kick-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-kick-right"))
+
+       (action
+         (name "air-idle-right")
+         (fps 5)
+         (hitbox 16 14 32 64)
+         (images "air/hat/spin-1.png"
+                 "air/hat/spin-2.png"
+                 "air/hat/spin-3.png"))
+
+       (action
+         (name "air-idle-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-idle-right"))
+
+       (action
+         (name "air-climbing-right")
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"))
+
+       (action
+         (name "air-climbing-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-climbing-right"))
+
+       (action
+         (name "air-duck-right")
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"))
+
+       (action
+         (name "air-duck-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-duck-right"))
+
+       (action
+         (name "air-backflip-right")
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"))
+
+       (action
+         (name "air-backflip-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-backflip-right"))
+
+       (action
+         (name "air-buttjump-right")
+         (hitbox 16 14 32 64)
+         (images "air/hat/stand.png"))
+
+       (action
+         (name "air-buttjump-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-buttjump-right"))
+
+; Earth Tux
+
+       (action
          (name "earth-walk-right")
          (fps 15)
          (hitbox 16 14 32 64)
          (images "earth/hardhat/walk-0.png"
                  "earth/hardhat/walk-1.png"
                  "earth/hardhat/walk-2.png"
+                 "earth/hardhat/walk-0.png"
                  "earth/hardhat/walk-1.png"
-                 "earth/hardhat/walk-4.png"
                  "earth/hardhat/walk-2.png"))
 
        (action
index 742e71e..3360664 100644 (file)
          (hitbox 16 14 32 64)
          (mirror-action "ice-buttjump-right"))
 
+; Air Tux
+
+       (action
+         (name "air-walk-right")
+         (fps 15.0)
+         (hitbox 16 14 32 64)
+         (images "big/walk-0.png"
+                 "big/walk-1.png"
+                 "big/walk-2.png"
+                 "big/walk-3.png"
+                 "big/walk-4.png"
+                 "big/walk-5.png"))
+
+       (action
+         (name "air-walk-left")
+         (fps 15.0)
+         (hitbox 16 14 32 64)
+         (mirror-action "air-walk-right"))
+
+       (action
+         (name "air-stand-right")
+         (fps 15.0)
+         (hitbox 16 14 32 64)
+         (images "big/stand-0.png"))
+
+       (action
+         (name "air-stand-left")
+         (fps 15.0)
+         (hitbox 16 14 32 64)
+         (mirror-action "air-stand-right"))
+
+       (action
+         (name "air-jump-right")
+         (fps 15.0)
+         (hitbox 16 14 32 64)
+         (images "big/jump-0.png"))
+
+       (action
+         (name "air-jump-left")
+         (fps 15.0)
+         (hitbox 16 14 32 64)
+         (mirror-action "air-jump-right"))
+
+       (action
+         (name "air-skid-right")
+         (hitbox 16 14 32 64)
+         (images "big/skid-0.png"))
+
+       (action
+         (name "air-skid-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-skid-right"))
+
+       (action
+         (name "air-kick-right")
+         (hitbox 16 14 32 64)
+         (images "big/kick-0.png"))
+
+       (action
+         (name "air-kick-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-kick-right"))
+
+       (action
+         (name "air-idle-right")
+         (fps 5.0)
+         (hitbox 16 14 32 64)
+         (images "big/idle-0.png"
+                 "big/idle-1.png"
+                 "big/idle-0.png"))
+
+       (action
+         (name "air-idle-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-idle-right"))
+
+       (action
+         (name "air-climbing-right")
+         (hitbox 16 14 32 64)
+         (images "big/ladder-0.png"
+                 "big/ladder-1.png"
+                 "big/ladder-2.png"
+                 "big/ladder-3.png"
+                 "big/ladder-2.png"
+                 "big/ladder-1.png"))
+
+       (action
+         (name "air-climbing-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-climbing-right"))
+
+       (action
+         (name "air-duck-right")
+         (hitbox 16 45 32 32)
+         (images "big/duck-0.png"))
+
+       (action
+         (name "air-duck-left")
+         (hitbox 16 45 32 32)
+         (mirror-action "air-duck-right"))
+
+       (action
+         (name "air-backflip-right")
+         (hitbox 16 37 32 32)
+         (images "big/backflip.png"))
+
+       (action
+         (name "air-backflip-left")
+         (hitbox 16 37 32 32)
+         (fps 18.0)
+         (mirror-action "air-backflip-right"))
+
+       (action
+         (name "air-buttjump-right")
+         (hitbox 16 14 32 64)
+         (images "big/buttjump-0.png"))
+
+       (action
+         (name "air-buttjump-left")
+         (hitbox 16 14 32 64)
+         (mirror-action "air-buttjump-right"))
+
 ; Earth Tux
 
        (action
index 772fc3e..1a04643 100644 (file)
@@ -2,8 +2,8 @@
  (action
   (name "right")
   (fps 1)
-  (images 
-    "icetux-cap.png"
+  (images
+    "airtux-hat.png"
   )
  )
  (action
index 5f38c7f..ad9bdde 100644 (file)
@@ -1174,7 +1174,7 @@ Player::draw(DrawingContext& context)
   else if (player_status->bonus == ICE_BONUS)
     sa_prefix = "ice";
   else if (player_status->bonus == AIR_BONUS)
-    sa_prefix = "ice";
+    sa_prefix = "air";
   else if (player_status->bonus == EARTH_BONUS)
     sa_prefix = "earth";
   else
@@ -1255,7 +1255,8 @@ Player::draw(DrawingContext& context)
   if (player_status->bonus == EARTH_BONUS) {
     powersprite->set_action(sprite->get_action());
     lightsprite->set_action(sprite->get_action());
-  }
+  } else if (player_status->bonus == AIR_BONUS)
+    powersprite->set_action(sprite->get_action());
 
   /*
   // Tux is holding something
@@ -1291,8 +1292,11 @@ Player::draw(DrawingContext& context)
         ppos, ANCHOR_MIDDLE, Vector(0, 0), Vector(0, 0), LAYER_OBJECTS+1+5));
     }
   }
-  else
+  else {
     sprite->draw(context, get_pos(), LAYER_OBJECTS + 1);
+    if (player_status->bonus == AIR_BONUS)
+      powersprite->draw(context, get_pos(), LAYER_OBJECTS + 1);
+  }
 
 }