Page 1 of 1

How do I use the Spade character?

Posted: Wed May 11, 2022 3:46 am
by AmateurSegaDev
Hello everyone! It's been inspiring watch everyone develop and experiment with my favorite console of all time.
I do have a question that's stumped me though; how do I actually use this highlighted character?
font_default_Spade.png
Spade Character
font_default_Spade.png (3.44 KiB) Viewed 875 times
I've tried using "♠" in Visual Studio Code, but when I compile, I just get the following six lines instead (Pipe character added for comparison):
SpadeCorrupt.png
drawText "♠||"
SpadeCorrupt.png (3.16 KiB) Viewed 875 times
Is there a different ASCII code I should be using?

Also, thank you Stephane for developing and sharing SGDK!

Re: How do I use the Spade character?

Posted: Wed May 11, 2022 7:42 am
by cero
'z'+1 or {

Re: How do I use the Spade character?

Posted: Wed May 11, 2022 4:22 pm
by AmateurSegaDev
Thank you so much!

I couldn't get

Code: Select all

'z'+1 
to work, but the left bracket did.

Re: How do I use the Spade character?

Posted: Thu May 12, 2022 5:54 am
by cero
'z'+1 is a char, not a part of a string.

Code: Select all

const char foo[] = { 'h', 'e', 'l', 'l', 'o', 'z' + 1, '\0' };

Re: How do I use the Spade character?

Posted: Sat May 21, 2022 4:11 pm
by AmateurSegaDev
Oh, silly me. Thank you!