How do I use the Spade character?

SGDK only sub forum

Moderator: Stef

Post Reply
AmateurSegaDev
Newbie
Posts: 8
Joined: Sun Feb 27, 2022 3:27 am

How do I use the Spade character?

Post by AmateurSegaDev » Wed May 11, 2022 3:46 am

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 343 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 343 times
Is there a different ASCII code I should be using?

Also, thank you Stephane for developing and sharing SGDK!

cero
Very interested
Posts: 320
Joined: Mon Nov 30, 2015 1:55 pm

Re: How do I use the Spade character?

Post by cero » Wed May 11, 2022 7:42 am

'z'+1 or {

AmateurSegaDev
Newbie
Posts: 8
Joined: Sun Feb 27, 2022 3:27 am

Re: How do I use the Spade character?

Post by AmateurSegaDev » Wed May 11, 2022 4:22 pm

Thank you so much!

I couldn't get

Code: Select all

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

cero
Very interested
Posts: 320
Joined: Mon Nov 30, 2015 1:55 pm

Re: How do I use the Spade character?

Post by cero » Thu May 12, 2022 5:54 am

'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' };

AmateurSegaDev
Newbie
Posts: 8
Joined: Sun Feb 27, 2022 3:27 am

Re: How do I use the Spade character?

Post by AmateurSegaDev » Sat May 21, 2022 4:11 pm

Oh, silly me. Thank you!

Post Reply