keep-starknet-strange / tsubasa

Tsubasa onchain game built with Dojo, running on a Starknet Appchain.
https://play.tsubasa.win
MIT License
59 stars 30 forks source link

Build the end Turn button #76

Closed clicksave closed 1 year ago

clicksave commented 1 year ago

Lets wire this up.

https://github.com/keep-starknet-strange/tsubasa/assets/3332646/fb16d919-261d-49e2-9f46-1179aeb8136b


End turn button has a hover state, and a slightly different rendering on mobile.

image

One tool thats available to you is to change the content of the button... if the user is waiting for conflict to resolve, or if the opponent is playing their turn then something like this would be nice to see

image

Responsive Designs

To save space on mobile the footer is bottom adjusted

image

The other key difference is that instead of a hover state there is a tap state


Resources

Components

Pages

clicksave commented 1 year ago

And heres an exploration into the combat phase

https://github.com/keep-starknet-strange/tsubasa/assets/3332646/a4ed33bd-21ed-408d-b4a4-b8218a409017

Cheelax commented 1 year ago

Hi fren! I will try to handle this issue if that's fine by you

Cheelax commented 1 year ago

Draft Pr created. If I understood well the 'field' view is not yet merged on master so I can't integrate the button there yet.