Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UI for coins #15

Merged
merged 6 commits into from Mar 11, 2022
Merged

Add UI for coins #15

merged 6 commits into from Mar 11, 2022

Conversation

seeziyang
Copy link
Contributor

@seeziyang seeziyang commented Mar 10, 2022

  • Add reducers for coins
  • Add reducers for inventory
  • Add UI button for coins, feel free to change it to add the coin circle in front or smthg HAHA ps i dont have photoshop
  • Currently, clicking the button will increase the coin amount, this is just for testing the reducers, maybe next time it can open a UI to buy more coins or something
  • No idea why the person move to top right when I click on the coins button tho oops
  • Video demo on tele cos its too big to upload here

@haveaqiupill
Copy link
Contributor

haveaqiupill commented Mar 11, 2022

  • Add UI button for coins, feel free to change it to add the coin circle in front or smthg HAHA ps i dont have photoshop

I just merged some asset files with coins related assets under assets/coins/...

  • Currently, clicking the button will increase the coin amount, this is just for testing the reducers, maybe next time it can open a UI to buy more coins or something

Let me know what assets you need for this!

  • No idea why the person move to top right when I click on the coins button tho oops

Need to hardcode and add the coordinates of the coin panel to the checkInMovableRange function in GameUtils.js. Can add the coordinates to the constant.js file as well! :)

@seeziyang seeziyang merged commit fbafbc3 into main Mar 11, 2022
@seeziyang seeziyang deleted the inventory branch March 11, 2022 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants