taliyos / OypuGame

Web-based game based on PuyoPuyo with Online Multiplayer!
MIT License
0 stars 0 forks source link

Button Hitbox generation #7

Open taliyos opened 2 years ago

taliyos commented 2 years ago

Create method to automatically create a hitbox around the buttons text and image. Keep in mind that there are cases where there is text but no image, image but no text, and both image and text. There can only be one image and one text and maximum though.

The point of this is to allow users to click on either the image or text to press the button instead of one or the other. The final implementation should work for both clicks, hovers, and any other interaction event. This should be accomplished by overwritting phaser's automatic hitbox generation inside setInteractive()

taliyos commented 2 years ago

Moved from June to Future (not important to game at the moment)