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

Open comments for this post

6h 38m 51s logged

Phase 4 is done, and the game is finally starting to feel interactive instead of just being a static screen.

First off, I got the inventory pieces to actually respond when you click them. I added a variable to track what you’re holding, so now when you click a block, it highlights in gold. But honestly, the coolest part was hooking up the keyboard. I linked the R and F keys to the math I wrote back in Phase 2. Being able to just hit a key and watch the piece instantly spin or flip in the sidebar is so satisfying after staring at frozen shapes for days.

I also added click events to the main 14x14 grid. It’s not physically snapping the pieces onto the board yet that’s the big goal for Phase 5 but if you open up the console, it perfectly tracks the X and Y coordinates of wherever you click. Getting the code to remember which piece I had selected without glitching out the rest of the screen was kind of a pain, but the foundation to finally place these things is totally set now.

0
8

Comments 0

No comments yet. Be the first!