Epicpkmn11 / WordleDS

A clone of Wordle for the Nintendo DS(i)
GNU General Public License v3.0
54 stars 12 forks source link

How can I change the color for correct answers? #5

Closed DBShorts closed 2 years ago

DBShorts commented 2 years ago

I am working on a port of Canuckle. The correct answers in Canuckle show red instead of green. Is there a way to change the green to red?

Epicpkmn11 commented 2 years ago

You should just need to edit the colors at gfx.cpp:24 (the top screen and keyboard) and gfx.cpp:41 (the text in the statistics menu) (and also the high contrast ones right below those if you want to change that too), they're in BGR15 so use this or this to convert normal colors.

Probably also want to edit main.cpp:75 to change the :green_square: to :red_square:.

DBShorts commented 2 years ago

Thank you so much, this is very helpful! I already changed the emojis, i was just stuck on the actual on screen letters.

DBShorts commented 2 years ago

Another question though, why is there such a long row of colors at gfx.cpp:24? Is it to make some sort of fading in animation?

Epicpkmn11 commented 2 years ago

First one is transparent, then the next two are the border and background, then the next 13 are just a gradient for smoother antialiasing on the letters. スクリーンショット 2022-03-20 13 43 52 (the Foreground Palettes)

Epicpkmn11 commented 2 years ago

Transferring to a discussion as this isn't an issue in Wordle DS, if you have more questions feel free to ask in the discussion.