CAGD 377 - Blog Post 2 - 9/29/2024
During this sprint, I completed the game's swipe, merge, and spawning feature. Some of these features were giving me a bit of a headache. Firstly, the swipe feature was something I had never done before, so I started at first with the new input system and tried that out to see how it worked, but I was ultimately unable to figure it out, so I ended up using the old input system. It still works great, and you can swipe the blocks, which will become zombies later on, around so that you can merge them. The hardest part about the swipe was that they could only swipe one the four-by-four grid and only move in one direction at a time, even if it detected you swiping diagonally. I had to implement a few checks on every swipe so that the blocks know when they can swipe to the next space and whether or not they can merge with the block next to them if there is any. Getting the blocks to move only in one direction at a time was a challenge at the start because I could only get them to move le...