Simple Rotation Example
by 2darray
![A* pathfinding example](https://games.phoneky.com/pics/apathfindingexample1x.png)
![One-Off GFX](https://games.phoneky.com/pics/oneoffgfx12981x.png)
![Extreme Tetrom](https://games.phoneky.com/pics/extremetetrom1x.png)
![2D transforms](https://games.phoneky.com/pics/2dtransforms1x.png)
![Roloong](https://games.phoneky.com/pics/roloong1x.jpg)
![Tricky Turns](https://games.phoneky.com/pics/tricky-turns1x.jpg)
![Picolumia v1.2](https://games.phoneky.com/pics/picolumiav121x.png)
![picocross](https://games.phoneky.com/pics/picocross17921x.png)
![aajibi (512b intro)](https://games.phoneky.com/pics/aajibi512bintro1x.png)
![Paint a Char](https://games.phoneky.com/pics/paintachar1x.png)
![Top Down AI for Enemies](https://games.phoneky.com/pics/topdownaiforenemies1x.png)
![Music Fountain (plus example code)](https://games.phoneky.com/pics/musicfountainplusexamplecode1x.png)
![Pico Illustrator v2.0.0](https://games.phoneky.com/pics/picoillustratorv2001x.png)
![Jumpit-8](https://games.phoneky.com/pics/jumpit81x.png)
![Simple FPS Controller](https://games.phoneky.com/pics/simplefpscontroller1x.png)
![60 FPS Interlace Color Test](https://games.phoneky.com/pics/60fpsinterlacecolortest67171x.png)
![Checkers Legend](https://games.phoneky.com/pics/checkers-legend1x.jpg)
![Digitz!](https://games.phoneky.com/pics/digitz1x.jpg)
![Puyo Trainer!](https://games.phoneky.com/pics/puyotrainer1x.png)
![The FILLP() Editor](https://games.phoneky.com/pics/thefillpeditor1x.png)
![Hidden Shapes](https://games.phoneky.com/pics/hiddenshapes1x.png)
![BLOOM ETERNAL](https://games.phoneky.com/pics/bloometernal1x.png)
![CharEdit (Yet Another One-Off Character Editor)](https://games.phoneky.com/pics/charedityetanotheroneoffcharactereditor1x.png)
![Picoris](https://games.phoneky.com/pics/picoris1x.png)
![Catchin' Pico Waves (Club Penguin)](https://games.phoneky.com/pics/catchinpicowavesclubpenguin1x.png)
![Blocks](https://games.phoneky.com/pics/blocks1x.png)
![pod3x3 mdash a real time strategy game of piloting three pods](https://games.phoneky.com/pics/pod3x3mdasharealtimestrategygameofpilotingthreepods1x.png)
![Spring Physics 0.1](https://games.phoneky.com/pics/springphysics011x.png)
![A selection of easing functions](https://games.phoneky.com/pics/aselectionofeasingfunctions1x.png)
![TOYTRAIN (for PICO-8 ZINE Issue 1)](https://games.phoneky.com/pics/toytrainforpico8zineissue11x.png)
![Obby Blox Parkour](https://games.phoneky.com/pics/obby-blox-parkour-game1x.jpg)
![Rotating Rubiks Cube](https://games.phoneky.com/pics/rotating-rubiks-cube1x.jpg)
![Extreme Speed](https://games.phoneky.com/pics/extreme-speed1x.jpg)
![Smash Ragdoll Battle](https://games.phoneky.com/pics/smash-ragdoll-battle1x.jpg)
![1010+ Block Puzzle](https://games.phoneky.com/pics/1010-block-puzzle1x.jpg)
![Rotation Blast](https://games.phoneky.com/pics/rotation-blast1x.jpg)
![VINT](https://games.phoneky.com/pics/vint1x.jpg)
![Advent Mahjong](https://games.phoneky.com/pics/advent-mahjong1x.jpg)
![Pico Tetris v1.1](https://games.phoneky.com/pics/picotetrisv1115781x.png)
![Drop Guts](https://games.phoneky.com/pics/dropguts1x.jpg)
![Pikobones - COTL dice game remake](https://games.phoneky.com/pics/pikobonescotldicegameremake1x.png)
![fill one line puzzle game](https://games.phoneky.com/pics/fill-one-line-puzzle-game1x.jpg)
![Stack](https://games.phoneky.com/pics/stack1x.jpg)
![Tiny Platformer (TutorialExample Project)](https://games.phoneky.com/pics/tinyplatformertutorialexampleproject1x.png)
![Dungeon Generator](https://games.phoneky.com/pics/dungeongenerator1x.png)
![hypercolor_paint](https://games.phoneky.com/pics/hypercolorpaint1x.png)
![Trifill Thunderdome](https://games.phoneky.com/pics/trifillthunderdome1x.png)
![PicoCam 3D Camera Library](https://games.phoneky.com/pics/picocam3dcameralibrary1x.png)
Simple Rotation Example
Just a simple little 2D-rotation example.
The function takes a 2D position (X,Y) and rotates it by ANGLE. CX,CY represents the centerpivot point.
The lines of code in the middle are the rotation matrix: