--- /dev/null
+(supertux-sprite
+ (action
+ (fps 15)
+ (name "normal")
+ (images "full-0.png"
+ "full-1.png"
+ "full-2.png"
+ "full-3.png"
+ "full-4.png"
+ "full-2.png"
+ "full-1.png"
+ "full-0.png"
+ "full-0.png"
+ "full-0.png"
+ ))
+ (action
+ (name "empty")
+ (images "empty.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "empty")
+ (images "empty.png"))
+ (action
+ (name "normal")
+ (images "../../tiles/blocks/brick0.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "empty")
+ (images "empty.png"))
+ (action
+ (name "normal")
+ (images "../../tiles/blocks/brick1.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "default")
+ (images "info_block.png")
+ )
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "empty")
+ (images "empty.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "normal")
+ (images "coin-0.png"
+ "coin-1.png"
+ "coin-2.png"
+ "coin-3.png"
+ "coin-4.png"
+ "coin-5.png"
+ "coin-6.png"
+ "coin-7.png"))
+ (action
+ (name "still")
+ (images "coin-0.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "default")
+ (images "../../tiles/doodads/platter.png")
+ )
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "flying")
+ (x-offset 0)
+ (y-offset 0)
+ (images "flying_platform-0.png"
+ "flying_platform-1.png"
+ "flying_platform-2.png"
+ "flying_platform-3.png")
+ )
+ (action
+ (name "block1")
+ (x-offset 0)
+ (y-offset 0)
+ (images "../../tiles/blocks/block1.png")
+ )
+ (action
+ (name "block2")
+ (x-offset 0)
+ (y-offset 0)
+ (images "../../tiles/blocks/block2.png")
+ )
+ (action
+ (name "block3")
+ (x-offset 0)
+ (y-offset 0)
+ (images "../../tiles/blocks/block3.png")
+ )
+ (action
+ (name "block4")
+ (x-offset 0)
+ (y-offset 0)
+ (images "../../tiles/blocks/block4.png")
+ )
+ (action
+ (name "firefly")
+ (x-offset 0)
+ (y-offset 0)
+ (images "../../tiles/firefly/firefly1.png"
+ "../../tiles/firefly/firefly2.png"
+ "../../tiles/firefly/firefly3.png"
+ "../../tiles/firefly/firefly2.png")
+ )
+)
+
--- /dev/null
+(supertux-sprite
+ (action
+ (name "normal")
+ (x-offset 0)
+ (y-offset 0)
+ (images "hatch-0.png"))
+ (action
+ (name "open")
+ (x-offset 0)
+ (y-offset 0)
+ (images "hatch-0.png"
+ "hatch-1.png"
+ "hatch-2.png"
+ "hatch-3.png"
+ "hatch-4.png"
+ "hatch-5.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "default")
+ (images "../../effects/light_red.png")
+ )
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (fps 20)
+ (images "rainsplash-vertical-1.png"
+ "rainsplash-vertical-2.png"
+ "rainsplash-vertical-3.png"
+ "rainsplash-vertical-4.png")
+ )
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (fps 20)
+ (images "rainsplash-1.png"
+ "rainsplash-2.png"
+ "rainsplash-3.png"
+ "rainsplash-4.png")
+ )
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "normal")
+ (images "../../tiles/blocks/block11.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (images "../skulls/skull.png"))
+)
--- /dev/null
+(supertux-sprite
+ (action
+ (images "unstable_tile.png"))
+)
;; -*- mode: scheme; -*-
(supertux-resources
-;; Tux is now in seperate .sprite files
+;; All sprites are in seperate .sprite files
+(ignore-me)
-;; Bad Guys are in separate .sprite files
-
-;; Game elements are in separate .sprite files
-
-;; Game Objects follow
-
- ; Flying platform
- (sprite (name "platform")
- (action
- (name "flying")
- (x-offset 0)
- (y-offset 0)
- (images "objects/flying_platform/flying_platform-0.png"
- "objects/flying_platform/flying_platform-1.png"
- "objects/flying_platform/flying_platform-2.png"
- "objects/flying_platform/flying_platform-3.png")
- )
- (action
- (name "block1")
- (x-offset 0)
- (y-offset 0)
- (images "tiles/blocks/block1.png")
- )
- (action
- (name "block2")
- (x-offset 0)
- (y-offset 0)
- (images "tiles/blocks/block2.png")
- )
- (action
- (name "block3")
- (x-offset 0)
- (y-offset 0)
- (images "tiles/blocks/block3.png")
- )
- (action
- (name "block4")
- (x-offset 0)
- (y-offset 0)
- (images "tiles/blocks/block4.png")
- )
- (action
- (name "firefly")
- (x-offset 0)
- (y-offset 0)
- (images "tiles/firefly/firefly1.png"
- "tiles/firefly/firefly2.png"
- "tiles/firefly/firefly3.png"
- "tiles/firefly/firefly2.png")
- )
- )
-
- ; coin
- (sprite (name "coin")
- (action
- (name "normal")
- (images "objects/coin/coin-0.png"
- "objects/coin/coin-1.png"
- "objects/coin/coin-2.png"
- "objects/coin/coin-3.png"
- "objects/coin/coin-4.png"
- "objects/coin/coin-5.png"
- "objects/coin/coin-6.png"
- "objects/coin/coin-7.png"))
- (action
- (name "still")
- (images "objects/coin/coin-0.png"))
- )
-
- (sprite (name "bonusblock")
- (action
- (fps 15)
- (name "normal")
- (images "objects/bonus_block/full-0.png"
- "objects/bonus_block/full-1.png"
- "objects/bonus_block/full-2.png"
- "objects/bonus_block/full-3.png"
- "objects/bonus_block/full-4.png"
- "objects/bonus_block/full-2.png"
- "objects/bonus_block/full-1.png"
- "objects/bonus_block/full-0.png"
- "objects/bonus_block/full-0.png"
- "objects/bonus_block/full-0.png"
- ))
- (action
- (name "empty")
- (images "objects/bonus_block/empty.png"))
- )
-
- (sprite (name "brick")
- (action
- (name "empty")
- (images "objects/bonus_block/empty.png"))
- (action
- (name "normal")
- (images "tiles/blocks/brick0.png"))
- )
-
- (sprite (name "icedbrick")
- (action
- (name "empty")
- (images "objects/bonus_block/empty.png"))
- (action
- (name "normal")
- (images "tiles/blocks/brick1.png"))
- )
-
- (sprite (name "infoblock")
- (action
- (name "default")
- (images "objects/bonus_block/info_block.png")
- )
- )
-
- (sprite (name "rock")
- (action
- (name "normal")
- (images "tiles/blocks/block11.png"))
- )
-
- (sprite (name "invisibleblock")
- (action
- (name "empty")
- (images "objects/bonus_block/empty.png"))
- )
-
- (sprite (name "unstable_tile")
- (action
- (images "objects/unstable_tile/unstable_tile.png"))
- )
- (sprite (name "skull_tile")
- (action
- (images "objects/skulls/skull.png"))
- )
- (sprite (name "rainsplash")
- (action
- (fps 20)
- (images "objects/particles/rainsplash-1.png"
- "objects/particles/rainsplash-2.png"
- "objects/particles/rainsplash-3.png"
- "objects/particles/rainsplash-4.png")
- )
- )
- (sprite (name "rainsplash-vertical")
- (action
- (fps 20)
- (images "objects/particles/rainsplash-vertical-1.png"
- "objects/particles/rainsplash-vertical-2.png"
- "objects/particles/rainsplash-vertical-3.png"
- "objects/particles/rainsplash-vertical-4.png")
- )
- )
-
- (sprite (name "hatch")
- (action
- (name "normal")
- (x-offset 0)
- (y-offset 0)
- (images "objects/hatch/hatch-0.png"))
- (action
- (name "open")
- (x-offset 0)
- (y-offset 0)
- (images "objects/hatch/hatch-0.png"
- "objects/hatch/hatch-1.png"
- "objects/hatch/hatch-2.png"
- "objects/hatch/hatch-3.png"
- "objects/hatch/hatch-4.png"
- "objects/hatch/hatch-5.png"))
- )
-
- (sprite
- (name "lightmap_light")
- (action
- (name "default")
- (images "effects/light_red.png")
- )
- )
-
- (sprite
- (name "eat-me")
- (action
- (name "default")
- (images "tiles/doodads/platter.png")
- )
- )
)
//---------------------------------------------------------------------------
BonusBlock::BonusBlock(const Vector& pos, int data)
- : Block(sprite_manager->create("bonusblock")), object(0)
+ : Block(sprite_manager->create("images/objects/bonus_block/bonusblock.sprite")), object(0)
{
bbox.set_pos(pos);
sprite->set_action("normal");
}
BonusBlock::BonusBlock(const lisp::Lisp& lisp)
- : Block(sprite_manager->create("bonusblock"))
+ : Block(sprite_manager->create("images/objects/bonus_block/bonusblock.sprite"))
{
Vector pos;
//---------------------------------------------------------------------------
Brick::Brick(const Vector& pos, int data)
- : Block(sprite_manager->create("brick")), breakable(false),
+ : Block(sprite_manager->create("images/objects/bonus_block/brick.sprite")), breakable(false),
coin_counter(0)
{
bbox.set_pos(pos);
{
bbox.set_pos(pos);
bbox.set_size(32, 32);
- sprite = sprite_manager->create("coin");
+ sprite = sprite_manager->create("images/objects/coin/coin.sprite");
set_group(COLGROUP_TOUCHABLE);
}
reader.get("x", bbox.p1.x);
reader.get("y", bbox.p1.y);
bbox.set_size(32, 32);
- sprite = sprite_manager->create("coin");
+ sprite = sprite_manager->create("images/objects/coin/coin.sprite");
set_group(COLGROUP_TOUCHABLE);
}
: position(pos)
{
timer.start(.3);
- sprite = sprite_manager->create("coin");
+ sprite = sprite_manager->create("images/objects/coin/coin.sprite");
sprite->set_action("still");
}
#include "sector.hpp"
InfoBlock::InfoBlock(const lisp::Lisp& lisp)
- : Block(sprite_manager->create("infoblock"))
+ : Block(sprite_manager->create("images/objects/bonus_block/infoblock.sprite"))
{
Vector pos;
lisp.get("x", pos.x);
#include "object_factory.hpp"
InvisibleBlock::InvisibleBlock(const Vector& pos)
- : Block(sprite_manager->create("invisibleblock")), visible(false)
+ : Block(sprite_manager->create("images/objects/bonus_block/invisibleblock.sprite")), visible(false)
{
bbox.set_pos(pos);
flags &= ~FLAG_SOLID;
Light::Light(const lisp::Lisp& )
{
- sprite = sprite_manager->create("lightmap_light");
+ sprite = sprite_manager->create("images/objects/lightmap_light/lightmap_light.sprite");
}
Light::~Light()
reader.get("y", bbox.p1.y);
reader.get("type", type);
reader.get("use_path", use_path);
- sprite = sprite_manager->create("platform");
+ sprite = sprite_manager->create("images/objects/flying_platform/platform.sprite");
sprite->set_action(type);
bbox.set_size(sprite->get_width(), sprite->get_height());
{
frame = 0;
position = pos;
- if (vertical) sprite = sprite_manager->create("rainsplash-vertical");
- else sprite = sprite_manager->create("rainsplash");
+ if (vertical) sprite = sprite_manager->create("images/objects/particles/rainsplash-vertical.sprite");
+ else sprite = sprite_manager->create("images/objects/particles/rainsplash.sprite");
}
RainSplash::~RainSplash() {
reader.get("x", bbox.p1.x);
reader.get("y", bbox.p1.y);
bbox.set_size(31.8, 31.8);
- sprite = sprite_manager->create("rock");
+ sprite = sprite_manager->create("images/objects/rock/rock.sprite");
grabbed = false;
flags |= FLAG_SOLID | FLAG_PORTABLE;
}
lisp.get("x", bbox.p1.x);
lisp.get("y", bbox.p1.y);
bbox.set_size(32, 32);
- sprite = sprite_manager->create("skull_tile");
+ sprite = sprite_manager->create("images/objects/skull_tile/skull_tile.sprite");
flags |= FLAG_SOLID;
set_group(COLGROUP_STATIC);
lisp.get("x", bbox.p1.x);
lisp.get("y", bbox.p1.y);
bbox.set_size(32, 32);
- sprite = sprite_manager->create("unstable_tile");
+ sprite = sprite_manager->create("images/objects/unstable_tile/unstable_tile.sprite");
flags |= FLAG_SOLID;
set_group(COLGROUP_STATIC);
}
target_sector = sector;
target_spawnpoint = spawnpoint;
- sprite = sprite_manager->create("door");
+ sprite = sprite_manager->create("images/objects/door/door.sprite");
}
Door::~Door()
reader.get("sector", target_sector);
reader.get("spawnpoint", target_spawnpoint);
- sprite = sprite_manager->create("hatch");
+ sprite = sprite_manager->create("images/objects/hatch/hatch.sprite");
}
Hatch::Hatch(int x, int y, std::string sector, std::string spawnpoint)
target_sector = sector;
target_spawnpoint = spawnpoint;
- sprite = sprite_manager->create("hatch");
+ sprite = sprite_manager->create("images/objects/hatch/hatch.sprite");
}
Hatch::~Hatch()