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

feat: Actions with option bags and duration #3289

Merged
merged 4 commits into from
Nov 27, 2024
Merged

Conversation

eonarheim
Copy link
Member

  • Added new option bag style input to actions with durations in milliseconds instead of speed
    player.actions.rotateTo({angleRadians: angle, durationMs: 1000, rotationType});
    player.actions.moveTo({pos: ex.vec(100, 100), durationMs: 1000});
    player.actions.scaleTo({scale: ex.vec(2, 2), durationMs: 1000});
    player.actions.repeatForever(ctx => {
      ctx.curveTo({
        controlPoints: [cp1, cp2, dest],
        durationMs: 5000,
        mode: 'uniform'
      });
      ctx.curveTo({
        controlPoints: [cp2, cp1, start1],
        durationMs: 5000,
        mode: 'uniform'
      });
    });

@github-actions github-actions bot added the enhancement Label applied to enhancements or improvements to existing features label Nov 27, 2024
Copy link

cloudflare-workers-and-pages bot commented Nov 27, 2024

Deploying excaliburjs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4825271
Status: ✅  Deploy successful!
Preview URL: https://2897c5fd.excaliburjs.pages.dev
Branch Preview URL: https://feat-actions-w-options.excaliburjs.pages.dev

View logs

@eonarheim eonarheim merged commit cc7c805 into main Nov 27, 2024
7 of 8 checks passed
@eonarheim eonarheim deleted the feat/actions-w-options branch November 27, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Label applied to enhancements or improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant