animation and shadow
This commit is contained in:
parent
f66564215a
commit
403f672516
4 changed files with 21 additions and 4 deletions
BIN
graphics/entity/gas-extractor-animated.png
Normal file
BIN
graphics/entity/gas-extractor-animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 MiB |
BIN
graphics/entity/gas-extractor-shadow.png
Normal file
BIN
graphics/entity/gas-extractor-shadow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
graphics/entity/gas-extractor-shadow.xcf
Normal file
BIN
graphics/entity/gas-extractor-shadow.xcf
Normal file
Binary file not shown.
|
@ -135,13 +135,30 @@ data:extend({
|
||||||
animations = {
|
animations = {
|
||||||
layers = {
|
layers = {
|
||||||
{
|
{
|
||||||
filename = "__bzgas__/graphics/entity/gas-extractor.png",
|
filename = "__bzgas__/graphics/entity/gas-extractor-animated.png",
|
||||||
priority = "extra-high",
|
priority = "extra-high",
|
||||||
width = 263,
|
width = 267,
|
||||||
height = 600,
|
height = 604,
|
||||||
scale = 1/3,
|
scale = 0.33, -- just under 1/3, for height ~200. Check why height is 604 and not 600
|
||||||
|
frame_count = 100,
|
||||||
|
line_length = 8,
|
||||||
|
animation_speed = 0.5,
|
||||||
shift = futil.by_pixel(0, -60),
|
shift = futil.by_pixel(0, -60),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
stripes = futil.multiplystripes(100, {{
|
||||||
|
filename = "__bzgas__/graphics/entity/gas-extractor-shadow.png",
|
||||||
|
width_in_frames = 1,
|
||||||
|
height_in_frames = 1,
|
||||||
|
}}),
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 331,
|
||||||
|
height = 64,
|
||||||
|
draw_as_shadow = true,
|
||||||
|
frame_count = 100,
|
||||||
|
animation_speed = 0.5,
|
||||||
|
shift = futil.by_pixel(119, 8),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
vehicle_impact_sound = data.raw["mining-drill"]["pumpjack"].vehicle_impact_sound,
|
vehicle_impact_sound = data.raw["mining-drill"]["pumpjack"].vehicle_impact_sound,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue