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

how to change circle color #12

Open
w-xueli opened this issue Feb 20, 2024 · 3 comments
Open

how to change circle color #12

w-xueli opened this issue Feb 20, 2024 · 3 comments

Comments

@w-xueli
Copy link

w-xueli commented Feb 20, 2024

Hello, I would like to use this game as the 404 page of my project, but the theme color of the project is green. I would like to change the circle of clicks from blue to green. How can I modify this

@ganlvtech
Copy link
Owner

ganlvtech commented Feb 20, 2024

Sorry. I don't give an option for circle color.

https://github.com/ganlvtech/phaser-catch-the-cat/blob/gh-pages/catch-the-cat.js

You can try to replace the color in the following code

this.fillColor=t?13158:11786751

which means

this.fillColor = t ? 0x003366 : 0xb3d9ff;

@w-xueli
Copy link
Author

w-xueli commented Feb 20, 2024

this.fillColor = t ? 2414628 : 11068576
Thank you very much. I have successfully modified the color of the circles

@w-xueli
Copy link
Author

w-xueli commented Feb 20, 2024

Sorry to bother you again, I have another question. Can the "reset" button add cursor and: hover pseudo classes

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

No branches or pull requests

2 participants