-
-
Notifications
You must be signed in to change notification settings - Fork 346
feat: Decouple properties in timeline animations & support parallel animation #814
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
Merged
MakinoharaShoko
merged 10 commits into
OpenWebGAL:dev
from
TremblingMoeNew:feat/parallel-animation-support
Apr 20, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f99e5ed
Fix: setTransform cannot execute continuously when targeting the same…
TremblingMoeNew 6235704
Feat: Decouple properties in timeline animations & support parallel a…
TremblingMoeNew 07a61d1
Feat: Support parallel animation for setTempAnimation command
TremblingMoeNew d661a76
Feat: Support parallel animation for setAnimation command; Fix: poten…
TremblingMoeNew 94cfcd2
Merge remote-tracking branch 'origin/dev' into feat/parallel-animatio…
TremblingMoeNew cf3a8eb
Merge remote-tracking branch 'origin/dev' into feat/parallel-animatio…
TremblingMoeNew 99ce205
Merge branch 'dev' into feat/parallel-animation-support
TremblingMoeNew e9dc55c
Merge remote-tracking branch 'origin/dev' into feat/parallel-animatio…
TremblingMoeNew 93aa855
fix: parallel perform dedup & prefix matching for correct save/load
MakinoharaShoko 4cdaf3a
feat: add writeFullEffect parameter to getAnimationObject and update …
MakinoharaShoko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
packages/webgal/public/game/scene/demo_parallel_animation.txt
This file contains hidden or 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,31 @@ | ||
| changeBg:WebGalEnter.webp -next; | ||
| changeFigure:stand.webp -id=figure01 -transform={"position":{"x":1000,"y":720}}; | ||
| ;演示setAnimation平行执行 | ||
| setAnimation:shockwaveIn -target=figure01 -next | ||
| setAnimation:move-front-and-back -target=figure01 -parallel | ||
| ;演示通过-continue接续执行两个常规setTransform正常运作、不被打断 | ||
| setTransform:{"position":{"x":-1000}} -duration=5000 -target=figure01 -continue | ||
| setTransform:{"position":{"x":1000}} -duration=5000 -target=figure01 | ||
| ;演示setTransform平行执行 | ||
| setTransform:{"position":{"x":-1000},"scale":{"x":0.5},"contrast":0.5} -duration=5000 -target=figure01 -ease=easeOut -next -keep | ||
| wait:2000 | ||
| setTransform:{"position":{"y":0},"scale":{"y":0.5},"saturation":0} -duration=5000 -target=figure01 -ease=linear -parallel -continue | ||
| setTransform:{"position":{"y":-720},"scale":{"y":1},"saturation":1} -duration=5000 -target=figure01 -ease=linear -next | ||
| setTransform:{"position":{"x":1000},"scale":{"x":1},"contrast":1} -duration=5000 -target=figure01 -ease=easeIn -parallel; | ||
| ;演示参数解耦改动后setTempAnimation普通运作是否正常 | ||
| setTempAnimation:[{"duration":0}, {"duration":500,"position":{"x":-1000}}, {"duration":500,"position":{"y":720},"scale":{"y":0.5},"saturation":0}, {"duration":500,"position":{"x":-1000, "y":720}}, {"duration":500}, {"duration":500,"position":{"x":-1000},"scale":{"x":0.5},"contrast":0.5}] -target=figure01 | ||
| setTempAnimation:[{"duration":0}, {"duration":500,"position":{"x":1000}}, {"duration":500,"position":{"y":720}}, {"duration":500,"position":{"x":1000, "y":720}}, {"duration":500}, {"duration":500,"position":{"x":1000}}] -target=figure01 | ||
| ;演示参数解耦改动后setTransform的-writeDefault参数是否运作正常 | ||
| setTransform:{} -writeDefault -target=figure01 -duration=500 | ||
| setTransform:{"position":{"x":1000,"y":720}} -target=figure01 -next; | ||
| setAnimation:shockwaveOut -target=figure01 -parallel | ||
| ;演示setTempAnimation平行执行 | ||
| setTempAnimation:[{"duration":0},{"position":{"x":-1000},"scale":{"x":0.5},"contrast":0.5,"duration":5000,"ease":"easeOut"},{"position":{"x":-1000},"scale":{"x":0.5},"contrast":0.5,"duration":2000},{"position":{"x":600},"scale":{"x":1},"contrast":1,"duration":5000,"ease":"easeIn"},{"duration":2000}] -target=figure01 -next; | ||
| setTempAnimation:[{"duration":2000},{"position":{"y":0},"scale":{"y":0.5},"saturation":0,"duration":5000,"ease":"linear"},{"position":{"y":-720},"scale":{"y":1},"saturation":1,"duration":5000,"ease":"linear"},{"duration":2000}] -target=figure01 -parallel -continue; | ||
| ;演示并行执行多条终止时间点不一致的setTransform | ||
| setTransform:{"position":{"x":-1000}} -duration=5000 -next -target=figure01; | ||
| setTransform:{"position":{"y":0}} -duration=3000 -parallel -target=figure01; | ||
| setTransform:{"position":{"x":1000}} -duration=3000 -next -target=figure01; | ||
| setTransform:{"position":{"y":-720}} -duration=5000 -parallel -target=figure01; | ||
| changeBg: -next; | ||
| changeFigure: -id=figure01 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.