SoftbearStudios / mk48

Mk48.io ship combat game
https://mk48.io
GNU Affero General Public License v3.0
314 stars 60 forks source link

Upgrade menu #184

Open mitm001 opened 2 years ago

mitm001 commented 2 years ago

It would be nice if the ship upgrade window defaulted to the highest level ship possible when gaining levels. Currently, if you have leveled and not selected a ship yet, it stays at the lowest level instead.

finnbear commented 2 years ago

My main concern here is layout-shift e.g. you are about to upgrade to a level 5 but you collect one more point and then you end up clicking an unwanted level 6. This could theoretically be fixed by pausing automatic incrementing of the level when the mouse is near, but that isn't particularly elegant.

caibear commented 2 years ago

My main concern here is layout-shift e.g. you are about to upgrade to a level 5 but you collect one more point and then you end up clicking an unwanted level 6.

There is already a layout shift when you first get the ability to upgrade. If you are shooting weapons at the top of your screen you can accidentally click upgrade. Both of these layout shifts could be solved by adding a small delay after your upgrades change that prevents you from clicking.