Add animation usage examples in multiple languages#683
Add animation usage examples in multiple languages#683222448082Ashen wants to merge 1 commit intothoth-tech:usage-examplesfrom
Conversation
Added example code and documentation for various animation operations (such as creating, updating, freeing, and restarting animations) in C#, C++, and Python. Each example demonstrates a specific animation API usage with corresponding resource notes and images for reference.
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
✅ Peer Review – AnimationEndedExample.cs Type of Change: Readability: Code is clean and well-structured Good use of comments via SplashKit.WriteLine for debugging Variable names are clear and self-explanatory Follows standard SplashKit conventions Functionality: Demonstrates AnimationEnded() usage clearly Includes update loop with delay and conditional check Proper resource management with FreeAnimation() and FreeAnimationScript() at the end Console output helps visualize animation progress and ending Suggestions (Minor): Could optionally add a SplashKit.OpenWindow(...) call to display visuals, even if not needed for logic Adding a comment at the top describing the purpose (e.g. “Demonstrates detecting when an animation ends using SplashKit”) would help future readers Verdict: |
stantheman96
left a comment
There was a problem hiding this comment.
Approved see earlier comment for detailed feedback
Description
Category: animations
What this PR adds: Updated existing Animations usage examples with real resources and screenshots, plus added missing example sets required by the generated API documentation. All examples now reference actual animation scripts from
BasicAnimationResources.zipin the repo.Type of change
How Has This Been Tested?
kermit.txt,explosion.txt) frompublic/resources/guides/animation/basics/BasicAnimationResources.zipnpm run buildwith all examples integratedTesting Checklist
Checklist
Files Modified/Added
Updated Examples (under
public/usage-examples/animations/):load_animation_script-1-example.*- Now loadskermit.txtwith proper resource notescreate_animation-1-example.*- Useskermit.txtandWalkFrontanimationupdate_animation-1-example.*- Updated with real resource and formatted outputanimation_entered_frame-1-example.*- Useskermit.txt, formatted bool outputanimation_frame_time-1-example.*- Updated resource reference and output formatanimation_ended-1-example.*- Usesexplosion.txt(non-looping animation scenario)New Examples Added (under
public/usage-examples/animations/):free_animation-1-example.*(6 files: C++, C# top-level, C# OOP, Python, .txt, .png)free_animation_script-1-example.*(6 files)restart_animation-1-example.*(6 files)Generated Output Images (PNG screenshots for all 9 examples):
Additional Notes
public/resources/guides/animation/basics/BasicAnimationResources.zipWalkingScriptwith animationWalkFront(fromkermit.txt) andExplosionScriptwithexplosion(fromexplosion.txt).txtfile includes download instructions pointing to/resources/guides/animation/basics/BasicAnimationResources.zip