Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/industries/bulk_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
sprite_ground = industry.add_sprite(sprite_number="GROUNDSPRITE_WATER")
spriteset_ground_empty = industry.add_spriteset(type="empty")
spriteset_concrete = industry.add_spriteset(
sprites=[(10, 10, 64, 39, -31, -8)],
type="dirty_concrete_elevated",
always_draw=1,
)
spriteset_crane_rails_nw_se = industry.add_spriteset(
Expand Down
2 changes: 1 addition & 1 deletion src/industries/fish_farm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
)
spriteset_ground_empty = industry.add_spriteset(type="empty")
spriteset_concrete = industry.add_spriteset(
sprites=[(10, 10, 64, 39, -31, -8)],
type="dirty_concrete_elevated",
always_draw=1,
)
spriteset_warehouse = industry.add_spriteset(
Expand Down
2 changes: 1 addition & 1 deletion src/industries/fishing_harbour.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
sprite_ground = industry.add_sprite(sprite_number="GROUNDSPRITE_WATER")
spriteset_ground_empty = industry.add_spriteset(type="empty")
spriteset_concrete = industry.add_spriteset(
sprites=[(10, 10, 64, 39, -31, -8)],
type="dirty_concrete_elevated",
always_draw=1,
)
spriteset_jetty_se_nw = industry.add_spriteset(
Expand Down
2 changes: 1 addition & 1 deletion src/industries/liquids_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
sprite_ground = industry.add_sprite(sprite_number="GROUNDSPRITE_WATER")
spriteset_ground_empty = industry.add_spriteset(type="empty")
spriteset_concrete = industry.add_spriteset(
sprites=[(10, 10, 64, 39, -31, -8)],
type="dirty_concrete_elevated",
always_draw=1,
)
spriteset_jetty_se_nw = industry.add_spriteset(
Expand Down
2 changes: 1 addition & 1 deletion src/industries/port.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
sprite_ground = industry.add_sprite(sprite_number="GROUNDSPRITE_WATER")
spriteset_ground_empty = industry.add_spriteset(type="empty")
spriteset_concrete = industry.add_spriteset(
sprites=[(10, 10, 64, 39, -31, -8)],
type="dirty_concrete_elevated",
always_draw=1,
)
spriteset_jetty_se_nw = industry.add_spriteset(
Expand Down
2 changes: 1 addition & 1 deletion src/industries/trading_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
sprite_ground = industry.add_sprite(sprite_number="GROUNDSPRITE_WATER")
spriteset_ground_empty = industry.add_spriteset(type="empty")
spriteset_concrete = industry.add_spriteset(
sprites=[(10, 10, 64, 39, -31, -8)],
type="dirty_concrete_elevated",
always_draw=1,
)
spriteset_jetty_se_nw = industry.add_spriteset(
Expand Down
2 changes: 1 addition & 1 deletion src/industries/wharf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
sprite_ground = industry.add_sprite(sprite_number="GROUNDSPRITE_WATER")
spriteset_ground_empty = industry.add_spriteset(type="empty")
spriteset_concrete = industry.add_spriteset(
sprites=[(10, 10, 64, 39, -31, -8)],
type="dirty_concrete_elevated",
always_draw=1,
)
spriteset_crane_rails_nw_se = industry.add_spriteset(
Expand Down
15 changes: 15 additions & 0 deletions src/templates/ground_tiles.pynml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ template tmpl_ground_tile(x, y) {
[x, y, 64, 31, -31, 0, ANIM]
}

template tmpl_ground_tile_elevated(x, y) {
[x, y, 64, 31, -31, -8, ANIM]
}

<tal:spritesets repeat="ground_tile [('mud', 0), ('dirty_concrete', 80), ('hard_standing_dirt', 150), ('cobble', 220), ('snow', 290), ('slab', 360)]">
<!--! the frame variants are to support animated, they're hard-coded to match current animation amounts and must be extended if industry animations evolve -->
<tal:frame_variants repeat="frame_count global_constants.animated_ground_tile_frame_counts">
Expand All @@ -13,3 +17,14 @@ template tmpl_ground_tile(x, y) {
}
</tal:frame_variants>
</tal:spritesets>

<tal:spritesets repeat="ground_tile_elevated [('mud_elevated', 0), ('dirty_concrete_elevated', 80), ('hard_standing_dirt_elevated', 150), ('cobble_elevated', 220), ('snow_elevated', 290), ('slab_elevated', 360)]">
<!--! the frame variants are to support animated, they're hard-coded to match current animation amounts and must be extended if industry animations evolve -->
<tal:frame_variants repeat="frame_count global_constants.animated_ground_tile_frame_counts">
spriteset(spriteset_ground_tile_${ground_tile_elevated[0]}_${frame_count}, "src/graphics/other/ground_tiles.png") {
<tal:autofill_sprites repeat="autosprite_num range(frame_count)">
tmpl_ground_tile_elevated(${ground_tile_elevated[1]}, 10)
</tal:autofill_sprites>
}
</tal:frame_variants>
</tal:spritesets>