Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turned Shop Mushroom into a map sprite.
Improved him to make it more recognizable. Refs #391
- Loading branch information
Yohann Ferreira
committed
Jan 9, 2019
1 parent
d48286f
commit fe0d6e6
Showing
7 changed files
with
72 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = vt_map.MapMode.ANIM_SOUTH; | ||
local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH; | ||
local ANIM_WEST = vt_map.MapMode.ANIM_WEST; | ||
local ANIM_EAST = vt_map.MapMode.ANIM_EAST; | ||
|
||
|
||
sprite_animation = { | ||
|
||
-- The file to load the frames from | ||
image_filename = "data/entities/map/npcs/friendly_mushroom_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 = 1, | ||
-- The frames duration in milliseconds | ||
frames = { | ||
[ANIM_SOUTH] = { | ||
[0] = { id = 0, duration = 0 } -- 0 means forever | ||
}, | ||
[ANIM_NORTH] = { | ||
[0] = { id = 2, duration = 0 } | ||
}, | ||
[ANIM_WEST] = { | ||
[0] = { id = 1, duration = 0 } | ||
}, | ||
[ANIM_EAST] = { | ||
[0] = { id = 3, duration = 0 } | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters