I’m working on this code where if you put in certain characters for the map array, the canvas will display the image corresponding to that character. I have an array for all the ground blocks, at the top. Here’s my code so far: However, nothing seems to be drawing to the screen. I believe this might be a problem with
Tag: 2d
Transformation matrix rotation not preserving local axis scaling?
I have a simple transform class to apply translations, scales and rotations on a div in any arbitrary order: A problem arises when I wish to rotate after a non-uniform scale has been made. Edit – Newer interactive example: https://codepen.io/manstie/pen/RwGGOmB Here is the example I made: https://jsfiddle.net/ft61q230/1/ In the example here: The expected result is for Test 1 Text and