Hello again! I made a lot of progress getting my foundation down, and I’m getting ready to progress into the content of the game.
.
.
Mobile Touch Sensing:
This is the biggest thing by far! I added listeners for all of the key presses for the computer controls, and then added all the logic for mobile controls. It will detect each touch, and call the same function associated with each button. It also keeps track of variables of the state of each button.
.
The biggest challenges I encountered were when I first tracked clicking instead of touching, and had to redo everything to let it handle multiple touches .-. The next thing was doing all the math for everything. Since i don’t have a perfectly square touchpad, and since us humans have fat fingers, I wanted to be as generous and accurate with the touchpad as I could, and so I combined rectangle detection with diamond detection.
.
.
mini stuff:
I added a buffer as all the images load. I started out with a black screen, and then a gray screen, but in each one it was too sudden. I instead used what’s called a skeleton frame, which is displaying the content before the content has loaded. I made my own gradient to roughly match the one seen when loading in, and it was a lot smoother.
.
I also adjusted the timing so that the text fades in sooner, and I restructured it so that the animated background and the timer for the text fading in are separate variables.
.
.
Be sure to stay tuned for the next devlog, it’s gonna be a good one! I hope to have a real starting sequence to my game, and maybe even some beginning hitbox detection and menus.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.