Permalink
Browse files

Added green snakes into the south west forest map.

  • Loading branch information...
Yohann Ferreira
Yohann Ferreira committed Oct 28, 2012
1 parent 1ae513b commit ec58a978675b478d0c48e35b22fdead298576fae
View
@@ -1,7 +1,7 @@
Licenses
========
-Last update: 2012.10.26
+Last update: 2012.10.28
This file is listing all the files licenses from the point of the fork
from the Allacrost project.
@@ -145,6 +145,7 @@ img/icons/actors/characters/bronann.png CC by SA 3.0
img/icons/actors/enemies/mushroom_zombie.png CC by SA 3.0 Redshrike (OGA)
img/icons/actors/characters/red_slime.png GPLv2 Allacrost (From green slime enemy)
+img/icons/actors/enemies/green_snake.png GPLv2 Allacrost (From snake enemy)
img/icons/actors/enemies/thing.png CC by SA 3.0 From Jetrel (OGA) (From thing enemy)
img/icons/actors/enemies/yeti.png CC by SA 3.0 From Jetrel (OGA) (From yeti enemy)
img/icons/actors/enemies/white_wolf.png CC by SA 3.0, GPLv2 Icon from Bertram, based on a derivative from http://opengameart.org/content/the-wolf
@@ -266,6 +267,7 @@ img/sprites/battle/characters/others/soldier_idle.lua GPLv2
img/sprites/battle/characters/others/soldier_run.lua GPLv2 Bertram
img/sprites/battle/characters/others/soldier_victory.lua GPLv2 Bertram
+img/sprites/battle/enemies/green_snake.png GPLv2 Allacrost (From snake enemy)
img/sprites/battle/enemies/mushroom_zombie.png CC by SA 3.0 Redshrike (OGA)
img/sprites/battle/enemies/red_slime.png GPLv2 Allacrost (Roots)
img/sprites/battle/enemies/thing.png CC by SA 3.0 Jetrel (OGA)
View
@@ -200,22 +200,22 @@ enemies[3] = {
--------------------------------------------------------------------------------
enemies[4] = {
name = hoa_system.Translate("Snake"),
- stamina_icon = "img/icons/actors/enemies/snake.png",
- battle_sprites = "img/sprites/battle/enemies/snake.png",
+ stamina_icon = "img/icons/actors/enemies/green_snake.png",
+ battle_sprites = "img/sprites/battle/enemies/green_snake.png",
sprite_width = 128,
sprite_height = 64,
base_stats = {
- hit_points = 128,
- skill_points = 10,
- strength = 14,
+ hit_points = 85,
+ skill_points = 0,
+ strength = 22,
vigor = 0,
- fortitude = 9,
- protection = 4,
- agility = 15,
- evade = 2.0,
- experience_points = 7,
- drunes = 14
+ fortitude = 6,
+ protection = 5,
+ agility = 30,
+ evade = 6.0,
+ experience_points = 20,
+ drunes = 12
},
attack_points = {
@@ -247,11 +247,12 @@ enemies[4] = {
},
skills = {
- 1003
+ 1003 -- Normal attack
},
drop_objects = {
- { 1, 0.10 } -- Minor Healing Potion
+ { 1, 0.10 }, -- Minor Healing Potion
+ { 11, 0.10 }, -- Minor Moon Juice Potion
}
}
@@ -368,7 +368,7 @@ function Load(m)
_CreateCharacters();
_CreateObjects();
- --_CreateEnemies();
+ _CreateEnemies();
-- Set the camera focus on hero
Map:SetCamera(hero);
@@ -648,16 +648,63 @@ function _CreateEnemies()
local roam_zone = {};
-- Hint: left, right, top, bottom
- roam_zone = hoa_map.EnemyZone(49, 62, 26, 39, hoa_map.MapMode.CONTEXT_01);
+ roam_zone = hoa_map.EnemyZone(40, 52, 67, 87, hoa_map.MapMode.CONTEXT_01);
+ enemy = CreateEnemySprite(Map, "snake");
+ _SetBattleEnvironment(enemy);
+ enemy:NewEnemyParty();
+ enemy:AddEnemy(4, 0, 0);
+ enemy:AddEnemy(2, 0, 0);
+ enemy:AddEnemy(1, 0, 0);
+ enemy:NewEnemyParty();
+ enemy:AddEnemy(4, 0, 0);
+ enemy:AddEnemy(2, 0, 0);
+ roam_zone:AddEnemy(enemy, Map, 1);
+
+ Map:AddZone(roam_zone);
+
+
+ roam_zone = hoa_map.EnemyZone(77, 84, 71, 87, hoa_map.MapMode.CONTEXT_01);
enemy = CreateEnemySprite(Map, "slime");
_SetBattleEnvironment(enemy);
enemy:NewEnemyParty();
enemy:AddEnemy(1, 0, 0);
enemy:AddEnemy(1, 0, 0);
enemy:AddEnemy(1, 0, 0);
enemy:NewEnemyParty();
+ enemy:AddEnemy(2, 0, 0);
enemy:AddEnemy(1, 0, 0);
+ roam_zone:AddEnemy(enemy, Map, 1);
+
+ Map:AddZone(roam_zone);
+
+ -- Hint: left, right, top, bottom
+ roam_zone = hoa_map.EnemyZone(2, 11, 66, 87, hoa_map.MapMode.CONTEXT_01);
+
+ enemy = CreateEnemySprite(Map, "snake");
+ _SetBattleEnvironment(enemy);
+ enemy:NewEnemyParty();
+ enemy:AddEnemy(4, 0, 0);
+ enemy:AddEnemy(2, 0, 0);
+ enemy:AddEnemy(1, 0, 0);
+ enemy:NewEnemyParty();
+ enemy:AddEnemy(4, 0, 0);
+ enemy:AddEnemy(2, 0, 0);
+ roam_zone:AddEnemy(enemy, Map, 1);
+
+ Map:AddZone(roam_zone);
+
+ -- Hint: left, right, top, bottom
+ roam_zone = hoa_map.EnemyZone(5, 25, 5, 37, hoa_map.MapMode.CONTEXT_01);
+
+ enemy = CreateEnemySprite(Map, "snake");
+ _SetBattleEnvironment(enemy);
+ enemy:NewEnemyParty();
+ enemy:AddEnemy(4, 0, 0);
+ enemy:AddEnemy(2, 0, 0);
+ enemy:AddEnemy(1, 0, 0);
+ enemy:NewEnemyParty();
+ enemy:AddEnemy(4, 0, 0);
enemy:AddEnemy(2, 0, 0);
roam_zone:AddEnemy(enemy, Map, 1);
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,35 @@
+-- Sprite animation file descriptor
+-- This file will describe the frames used to load the sprite animations
+
+-- This files is following a special format compared to other animation scripts.
+
+local ANIM_SOUTH = hoa_map.MapMode.ANIM_SOUTH;
+local ANIM_NORTH = hoa_map.MapMode.ANIM_NORTH;
+local ANIM_WEST = hoa_map.MapMode.ANIM_WEST;
+local ANIM_EAST = hoa_map.MapMode.ANIM_EAST;
+
+
+sprite_animation = {
+
+ -- The file to load the frames from
+ image_filename = "img/sprites/map/enemies/snake_spritesheet.png",
+ -- The number of rows and columns of images, will be used to compute
+ -- the images width and height, and also the frames number (row x col)
+ rows = 4,
+ columns = 6,
+ -- The frames duration in milliseconds
+ frames = {
+ [ANIM_SOUTH] = {
+ [0] = { id = 0, duration = 150 }
+ },
+ [ANIM_NORTH] = {
+ [0] = { id = 6, duration = 150 }
+ },
+ [ANIM_WEST] = {
+ [0] = { id = 12, duration = 150 }
+ },
+ [ANIM_EAST] = {
+ [0] = { id = 18, duration = 150 }
+ }
+ }
+}
@@ -0,0 +1,54 @@
+-- Sprite animation file descriptor
+-- This file will describe the frames used to load the sprite animations
+
+-- This files is following a special format compared to other animation scripts.
+
+local ANIM_SOUTH = hoa_map.MapMode.ANIM_SOUTH;
+local ANIM_NORTH = hoa_map.MapMode.ANIM_NORTH;
+local ANIM_WEST = hoa_map.MapMode.ANIM_WEST;
+local ANIM_EAST = hoa_map.MapMode.ANIM_EAST;
+
+sprite_animation = {
+
+ -- The file to load the frames from
+ image_filename = "img/sprites/map/enemies/snake_spritesheet.png",
+ -- The number of rows and columns of images, will be used to compute
+ -- the images width and height, and also the frames number (row x col)
+ rows = 4,
+ columns = 6,
+ -- The frames duration in milliseconds
+ frames = {
+ [ANIM_SOUTH] = {
+ [0] = { id = 1, duration = 150 },
+ [1] = { id = 2, duration = 150 },
+ [2] = { id = 3, duration = 150 },
+ [3] = { id = 1, duration = 150 },
+ [4] = { id = 4, duration = 150 },
+ [5] = { id = 5, duration = 150 }
+ },
+ [ANIM_NORTH] = {
+ [0] = { id = 7, duration = 150 },
+ [1] = { id = 8, duration = 150 },
+ [2] = { id = 9, duration = 150 },
+ [3] = { id = 7, duration = 150 },
+ [4] = { id = 10, duration = 150 },
+ [5] = { id = 11, duration = 150 }
+ },
+ [ANIM_WEST] = {
+ [0] = { id = 13, duration = 150 },
+ [1] = { id = 14, duration = 150 },
+ [2] = { id = 15, duration = 150 },
+ [3] = { id = 13, duration = 150 },
+ [4] = { id = 16, duration = 150 },
+ [5] = { id = 17, duration = 150 }
+ },
+ [ANIM_EAST] = {
+ [0] = { id = 19, duration = 150 },
+ [1] = { id = 20, duration = 150 },
+ [2] = { id = 21, duration = 150 },
+ [3] = { id = 19, duration = 150 },
+ [4] = { id = 22, duration = 150 },
+ [5] = { id = 23, duration = 150 }
+ }
+ }
+}

0 comments on commit ec58a97

Please sign in to comment.