sprite: lizardSprite,
frametime: fourFramesTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 0, row: 1, disposition: < 0, 16> },
{ column: 0, row: 0, disposition: < 0, 16> },
{ column: 0, row: 1, disposition: < 0, 16> },
export Hero maxim {
name: "Maxim",
level: 1,
- sprite: maximSprite,
+ battleSprite: maximSprite,
maxHealth: 33,
health: 33,
maxMana: 20,
gut: 100,
mgr: 10
},
+ ladder: [
+ 10
+ ],
attackAnimation: ComplexAnimation {
sprite: maximSprite,
frametime: frameTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 1, row: 0, disposition: < 0, 0> },
{ column: 1, row: 0, disposition: < 0, 0> },
{ column: 1, row: 0, disposition: < 0, 0> },
sprite: maximSprite,
frametime: fiveFramesTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 3, row: 0, disposition: < 0, 0> },
{ column: 3, row: 0, disposition: < 0, 0> },
{ column: 3, row: 1, disposition: < 0, 0> }
},
frametime: twoFramesTime,
framecount: 4
+ },
+ mapEntity: Entity {
+ animation: SimpleAnimation{
+ sprite: Sprite {
+ image: :"maxim-map.png",
+ size: <32,64>
+ },
+ frametime: 120,
+ framecount: 2
+ },
+ spriteOffset: <0,-32>
}
}
export Hero selan {
name: "Selan",
level: 1,
- sprite: selanSprite,
+ battleSprite: selanSprite,
maxHealth: 28,
health: 28,
maxMana: 23,
sprite: selanSprite,
frametime: frameTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 1, row: 0, disposition: < 4, 0> },
{ column: 1, row: 0, disposition: < 4, 0> },
{ column: 1, row: 0, disposition: < 8, 2> },
sprite: selanSprite,
frametime: frameTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 3, row: 0, disposition: < 0, 0> },
{ column: 3, row: 0, disposition: < 0, 0> },
{ column: 3, row: 0, disposition: < 0, 0> },
},
frametime: twoFramesTime,
framecount: 4
+ },
+ mapEntity: Entity {
+ animation: SimpleAnimation{
+ sprite: Sprite {
+ image: :"selan-map.png",
+ size: <32,64>
+ },
+ frametime: 120,
+ framecount: 2
+ },
+ spriteOffset: <0,-32>
}
}
export Hero guy {
name: "Guy",
level: 1,
- sprite: guySprite,
+ battleSprite: guySprite,
maxHealth: 38,
health: 38,
maxMana: 0,
sprite: guySprite,
frametime: frameTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 1, row: 0, disposition: <-4, 0> },
{ column: 1, row: 0, disposition: <-4, 0> },
{ column: 1, row: 0, disposition: <-8, 0> },
},
frametime: fourFramesTime,
framecount: 4
+ },
+ mapEntity: Entity {
+ animation: SimpleAnimation{
+ sprite: Sprite {
+ image: :"guy-map.png",
+ size: <32,64>
+ },
+ frametime: 120,
+ framecount: 2
+ },
+ spriteOffset: <0,-32>
}
}
export Hero dekar {
name: "Dekar",
level: 1,
- sprite: dekarSprite,
+ battleSprite: dekarSprite,
maxHealth: 38,
health: 38,
maxMana: 0,
sprite: dekarSprite,
frametime: frameTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 1, row: 0, disposition: < 4, 0> },
{ column: 1, row: 0, disposition: < 8, 2> },
{ column: 2, row: 0, disposition: <12, 4> },
sprite: dekarSprite,
frametime: twoFramesTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 3, row: 0, disposition: < 0, 0> },
{ column: 3, row: 0, disposition: < 0, 0> },
{ column: 3, row: 0, disposition: < 0, 0> },
},
frametime: twoFramesTime,
framecount: 4
+ },
+ mapEntity: Entity {
+ animation: SimpleAnimation{
+ sprite: Sprite {
+ image: :"dekar-map.png",
+ size: <32,64>
+ },
+ frametime: 120,
+ framecount: 2
+ },
+ spriteOffset: <0,-32>
}
}
numberAnimationPrototype: ComplexAnimation {
frametime: frameTime,
repeat: false,
- frames: [
+ frames:
+ [ ComplexAnimationFrame
{ column: 0, row: 0, disposition: < 0, 0> },
{ column: 0, row: 0, disposition: < 0,-26> },
{ column: 0, row: 0, disposition: < 0,-42> },