# Showcasing My Advanced Sprite Rotation Game with Math and Reset Logic

**URL:** <https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989>\
**Category:** Show & Tell\
**Tags:** game, graphics-and-math, make, demo\
**Created:** [August 31, 2025, 7:55pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989 "2025-08-31T19:55:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [August 31, 2025, 7:55pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/1 "2025-08-31T19:55:08Z")

</div>

Hi everyone! I wanted to share a game I’ve been working on, which uses advanced math to rotate a sprite in circles. It loops smoothly and even resets when its distance exceeds 300 units. Here’s a demo of what it looks like:

[Rotating with advanced math rotating sprites](https://arcade.makecode.com/S26484-82704-23092-61367?utm.com)

Key features:

- The sprite rotates around a center point using radians.
- Includes logic to reset the sprite if its distance exceeds 300.
- Smooth rotation with incremental changes each frame.

Feel free to check it out, and I’d love to hear any feedback on the logic or improvements I could make!

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [September 2, 2025, 4:07pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/2 "2025-09-02T16:07:07Z")

</div>

Also, if you are interested of playing the game but do not know what to click, click the blue link and beside you will see a grey circle with a number tells people how many clicks there are already, right the left side of it, click the blue link. Here is a image sample if you are really curious.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/c/dc819d8da3cf18a28cc2fd14d456c63a58aefe41.png)

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [September 2, 2025, 5:51pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/3 "2025-09-02T17:51:06Z")

</div>

If you are also are interested of editing the code, you can go and edit the code and make the player rotate faster if you want.

---

<div class="post-metadata">

**Author:** ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)\
**Post date:** [September 2, 2025, 11:41pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/4 "2025-09-02T23:41:49Z")

</div>

You could make this into an extension! this is cool, I think this is really helpful!

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [September 3, 2025, 12:01am UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/5 "2025-09-03T00:01:32Z")

</div>

To be honest, I already made a extension for this already, you can view the responsitory on GitHub, here is the link. [https://github.com/developertryingtocodelikeotherofthem/rotating-sprites-positions](https://github.com/developertryingtocodelikeotherofthem/rotating-sprites-positions) paste that link to the URL code on extensions then well done you have it.

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [September 3, 2025, 4:50pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/6 "2025-09-03T16:50:22Z")

</div>

Also, I just now even edited the post you might just now saw rotating extension sprites but so sorry I updated and just check back and done now here is the accurate extension for it.

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [September 3, 2025, 5:25pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/7 "2025-09-03T17:25:38Z")

</div>

Also, I got this idea of a topic of making this because someone made a stickman game of rotating made me want to make a extension out of it, that is why I made a topic of this.

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [September 3, 2025, 5:36pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/8 "2025-09-03T17:36:41Z")

</div>

I feel like next time I am going to make a demo similar like this but instead it is a stickman game rotating instead of just an apple.

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [September 3, 2025, 7:54pm UTC](https://forum.makecode.com/t/showcasing-my-advanced-sprite-rotation-game-with-math-and-reset-logic/38989/9 "2025-09-03T19:54:52Z")

</div>

Also, I am planning to make a other extension if you would want is making a background to rotate it will be hard though but I am trying right now.
