You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

4h 49m 36s logged

Just finished mapping out all 21 game pieces in JavaScript and wrote the code to rotate and flip them. The rotation math absolutely broke my brain I’m using nested arrays to swap rows into columns, and for a while, my shapes kept turning into weird, distorted blobs instead of actually spinning. Since these pieces only live in the game’s memory right now, the actual page looks exactly the same as my last update, but checking the browser console proves the math is working perfectly behind the scenes. Next up is finally getting these blocks to show up visually in the player inventory sidebar!

0
8

Comments 0

No comments yet. Be the first!