Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linked sprite support, custom MovingSprite light sprites #2753

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
355eb19
Linked sprite support
Vankata453 Jan 28, 2024
653d258
`MovingSprite` light sprite support
Vankata453 Jan 30, 2024
866af12
`MovingSprite`: Use a map for linked sprites list, instead of struct
Vankata453 Jan 30, 2024
bf855b5
"light" -> "on-light"
Vankata453 Jan 30, 2024
073c426
Undo unneeded changes to "red-potion.sprite"
Vankata453 Jan 30, 2024
f11eebf
`SpriteManager`: Dummy sprite data handling improvements
Vankata453 Jan 30, 2024
aeab60f
Sprite action-specific linked sprites
Vankata453 Jan 30, 2024
25696a4
Default actions for linked sprites
Vankata453 Jun 15, 2024
abb7455
Merge remote-tracking branch 'supertux/master' into custom-linked-spr…
Vankata453 Jun 15, 2024
c9ebd6e
Fix torch.sprite [ci skip]
Vankata453 Jun 15, 2024
7f62ce9
Merge branch 'real-master' into custom-linked-sprites
MatusGuy Aug 20, 2024
aa8dcf6
light is stupid i hate it
MatusGuy Aug 20, 2024
90e8086
dart light ooooo BUT ITS BLURRY WHAHAHA
MatusGuy Aug 20, 2024
10269ad
Un-hardcode linked sprite actions, allow for setting custom loop count
Vankata453 Aug 31, 2024
1743ffd
Undo DiveMine hitbox changes [ci skip]
Vankata453 Aug 31, 2024
f9bd9f7
Undo DiveMine hitbox changes [ci skip]
Vankata453 Aug 31, 2024
0084152
Merge remote-tracking branch 'supertux/master' into custom-linked-spr…
Vankata453 Nov 18, 2024
4f778d9
Fix `Candle` custom light sprites not being configured
Vankata453 Nov 18, 2024
3a6141e
Do not use `Dart` light sprite as `BadGuy::lightsprite`
Vankata453 Nov 18, 2024
87e89cf
Fix `SpriteData` code duplication, remove sprite hardcoding for many …
Vankata453 Nov 20, 2024
4fddd07
Merge branch 'master' into custom-linked-sprites
Vankata453 Nov 22, 2024
882eeb1
`Crusher` now draws its custom light sprite
Vankata453 Nov 23, 2024
a2f4d77
Fix "Missing sprite" issues with some objects
Vankata453 Nov 23, 2024
380ea8b
Replace `m_sprite->clone()` with a linked sprite in objects
Vankata453 Nov 23, 2024
ebe57ca
"light" -> "on-light", remove unneeded `set_blend`
Vankata453 Nov 23, 2024
22de58b
Remove more unneeded `set_blend(Blend::ADD)`
Vankata453 Nov 23, 2024
b5c798c
`WeakBlock`: `lightsprite` -> `m_burn_sprite`
Vankata453 Nov 23, 2024
40d37c9
Merge remote-tracking branch 'supertux/master' into custom-linked-spr…
Vankata453 Dec 5, 2024
080a666
Fix missing goldbomb "ticking-glow", attempt to fix dark `WeakBlock` …
Vankata453 Dec 5, 2024
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
16 changes: 11 additions & 5 deletions data/images/creatures/crusher/corrupted/krosh_corrupt.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,24 @@
)
)
(action
(name "whites")
(name "left-eye")
(hitbox 16 16 128 128)
(images "krosh_corrupt_whites.png")
(images "krosh_corrupt_eyes.png")
)
(action
(name "lefteye")
(name "right-eye")
(hitbox 16 16 128 128)
(images "krosh_corrupt_eyes.png")
)
(action
(name "righteye")
(name "whites")
(hitbox 16 16 128 128)
(images "krosh_corrupt_eyes.png")
(images "krosh_corrupt_whites.png")
)

(linked-sprites
(left-eye "krosh_corrupt.sprite" "left-eye")
(right-eye "krosh_corrupt.sprite" "right-eye")
(whites "krosh_corrupt.sprite" "whites")
)
)
16 changes: 11 additions & 5 deletions data/images/creatures/crusher/corrupted/krush_corrupt.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,24 @@
)
)
(action
(name "whites")
(name "left-eye")
(hitbox 8 8 64 64)
(images "krush_corrupt_whites.png")
(images "krush_corrupt_eyes.png")
)
(action
(name "lefteye")
(name "right-eye")
(hitbox 8 8 64 64)
(images "krush_corrupt_eyes.png")
)
(action
(name "righteye")
(name "whites")
(hitbox 8 8 64 64)
(images "krush_corrupt_eyes.png")
(images "krush_corrupt_whites.png")
)

(linked-sprites
(left-eye "krush_corrupt.sprite" "left-eye")
(right-eye "krush_corrupt.sprite" "right-eye")
(whites "krush_corrupt.sprite" "whites")
)
)
18 changes: 12 additions & 6 deletions data/images/creatures/crusher/krosh_ice.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,24 @@
)
)
(action
(name "whites")
(name "left-eye")
(hitbox 4 4 128 128)
(images "krosh_ice_whites.png")
(images "krosh_ice_lefteye.png")
)
(action
(name "lefteye")
(name "right-eye")
(hitbox 4 4 128 128)
(images "krosh_ice_lefteye.png")
(images "krosh_ice_righteye.png")
)
(action
(name "righteye")
(name "whites")
(hitbox 4 4 128 128)
(images "krosh_ice_righteye.png")
(images "krosh_ice_whites.png")
)

(linked-sprites
(left-eye "krosh_ice.sprite" "left-eye")
(right-eye "krosh_ice.sprite" "right-eye")
(whites "krosh_ice.sprite" "whites")
)
)
18 changes: 12 additions & 6 deletions data/images/creatures/crusher/krosh_rock.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,24 @@
)
)
(action
(name "whites")
(name "left-eye")
(hitbox 4 4 128 128)
(images "krosh_rock_whites.png")
(images "krosh_rock_lefteye.png")
)
(action
(name "lefteye")
(name "right-eye")
(hitbox 4 4 128 128)
(images "krosh_rock_lefteye.png")
(images "krosh_rock_righteye.png")
)
(action
(name "righteye")
(name "whites")
(hitbox 4 4 128 128)
(images "krosh_rock_righteye.png")
(images "krosh_rock_whites.png")
)

(linked-sprites
(left-eye "krosh_rock.sprite" "left-eye")
(right-eye "krosh_rock.sprite" "right-eye")
(whites "krosh_rock.sprite" "whites")
)
)
18 changes: 12 additions & 6 deletions data/images/creatures/crusher/krush_ice.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,24 @@
)
)
(action
(name "whites")
(name "left-eye")
(hitbox 3 3 64 64)
(images "krush_ice_whites.png")
(images "krush_ice_lefteye.png")
)
(action
(name "lefteye")
(name "right-eye")
(hitbox 3 3 64 64)
(images "krush_ice_lefteye.png")
(images "krush_ice_righteye.png")
)
(action
(name "righteye")
(name "whites")
(hitbox 3 3 64 64)
(images "krush_ice_righteye.png")
(images "krush_ice_whites.png")
)

(linked-sprites
(left-eye "krush_ice.sprite" "left-eye")
(right-eye "krush_ice.sprite" "right-eye")
(whites "krush_ice.sprite" "whites")
)
)
18 changes: 12 additions & 6 deletions data/images/creatures/crusher/krush_rock.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,24 @@
)
)
(action
(name "whites")
(name "left-eye")
(hitbox 3 3 64 64)
(images "krush_rock_whites.png")
(images "krush_rock_lefteye.png")
)
(action
(name "lefteye")
(name "right-eye")
(hitbox 3 3 64 64)
(images "krush_rock_lefteye.png")
(images "krush_rock_righteye.png")
)
(action
(name "righteye")
(name "whites")
(hitbox 3 3 64 64)
(images "krush_rock_righteye.png")
(images "krush_rock_whites.png")
)

(linked-sprites
(left-eye "krush_rock.sprite" "left-eye")
(right-eye "krush_rock.sprite" "right-eye")
(whites "krush_rock.sprite" "whites")
)
)
7 changes: 7 additions & 0 deletions data/images/creatures/darttrap/granito/dart_light.sprite
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(supertux-sprite
(action
(name "default")
(hitbox 16 16 0 0)
(images "dart_light.png")
)
)
12 changes: 8 additions & 4 deletions data/images/creatures/darttrap/granito/root_dart.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,24 @@
(name "flying-left")
(hitbox 6 13 20 8)
(images "root_dart_left.png")
)
)
(action
(name "flying-right")
(hitbox 6 13 20 8)
(mirror-action "flying-left")
)
)
(action
(name "flying-down")
(hitbox 13 6 8 20)
(images "root_dart_down.png")
)
)
(action
(name "flying-up")
(hitbox 13 6 8 20)
(flip-action "flying-down")
)
)

(linked-sprites
(light "dart_light.sprite" "" 1 1 1)
)
)
7 changes: 7 additions & 0 deletions data/images/creatures/darttrap/skull/dart_light.sprite
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(supertux-sprite
(action
(name "default")
(hitbox 16 16 0 0)
(images "dart_light.png")
)
)
6 changes: 5 additions & 1 deletion data/images/creatures/darttrap/skull/skull_dart.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
(hitbox 12 6 9 22)
(flip-action "flying-down")
)
)

(linked-sprites
(light "dart_light.sprite" "" 1 1 1)
)
)
18 changes: 13 additions & 5 deletions data/images/creatures/dive_mine/dive_mine.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@

(action
(name "iced-right")
(hitbox 6 13 45 43)
(hitbox 10 13 45 43)
(mirror-action "iced-left"))

(action
(name "ticking-left")
(fps 15.0)
(hitbox 14 19 32 32)
(linked-sprites
(ticking-glow "ticking_glow/ticking_glow.sprite" "ticking")
)
(images "ticking-0.png"
"ticking-1.png"
"ticking-2.png"
Expand All @@ -45,14 +48,19 @@
"ticking-6.png"
"ticking-7.png"
"ticking-8.png"
"ticking-9.png"
))
"ticking-9.png"))


(action
(name "ticking-right")
(fps 15.0)
(hitbox 14 19 32 32)
(linked-sprites
(ticking-glow "ticking_glow/ticking_glow.sprite" "ticking")
)
(mirror-action "ticking-left"))

)

(linked-sprites
(ticking-glow "ticking_glow/ticking_glow.sprite" "idle")
)
)
5 changes: 5 additions & 0 deletions data/images/creatures/flame/flame.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
"flame-fade-1.png"
"flame-fade-2.png"
"flame-fade-3.png"))

(linked-sprites
(light "images/objects/lightmap_light/lightmap_light-small.sprite" "" 0.21 0.13 0.08)
(smoke "images/particles/smoke.sprite")
)
)

5 changes: 5 additions & 0 deletions data/images/creatures/flame/ghostflame.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"ghostflame-2.png"
"ghostflame-3.png"
"ghostflame-4.png"))

(linked-sprites
(light "images/objects/lightmap_light/lightmap_light-small.sprite" "" 0.21 0 0.21)
(smoke "images/particles/smoke.sprite")
)
)

5 changes: 5 additions & 0 deletions data/images/creatures/flame/iceflame.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@
(images "iceflame-fade-0.png"
"iceflame-fade-1.png"
"iceflame-fade-2.png"))

(linked-sprites
(light "images/objects/lightmap_light/lightmap_light-small.sprite" "" 0 0.13 0.18)
(smoke "images/particles/smoke.sprite")
)
)

4 changes: 4 additions & 0 deletions data/images/creatures/flying_snowball/flying_snowball.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@
(fps 20)
(hitbox 8 8 32 32)
(mirror-action "melting-left"))

(linked-sprites
(smoke "images/particles/smoke.sprite")
)
)
7 changes: 7 additions & 0 deletions data/images/creatures/ghosttree/ghosttree.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@
(name "dying")
(hitbox 230 300 40 60)
(fps 4)
(linked-sprites
(glow "ghosttree-glow.sprite" "dying" 1)
)
(images
"ghosttree-dying-0.png"
"ghosttree-dying-0.png"
"ghosttree-dying-0.png"
"ghosttree-dying-0.png"
)
)

(linked-sprites
(glow "ghosttree-glow.sprite")
)
)
4 changes: 4 additions & 0 deletions data/images/creatures/ghosttree/root.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
(name "default")
(images "root.png")
)

(linked-sprites
(base "root_base.sprite")
)
)
5 changes: 4 additions & 1 deletion data/images/creatures/gold_bomb/gold_bomb.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,8 @@
(loops 1)
(hitbox 14 19 32 32)
(mirror-action "ticking-left"))


(linked-sprites
(ticking-glow "images/creatures/mr_bomb/ticking_glow/ticking_glow.sprite" "exploding")
)
)
5 changes: 5 additions & 0 deletions data/images/creatures/granito/corrupted/big/rock_mine.sprite
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@
(hitbox 18 26 48 48)
(mirror-action "broken-left")
)

(linked-sprites
(rock-particles "images/particles/granito_piece.sprite")
(shard "root_spike.sprite")
)
)
Loading
Loading