How do I use the Spade character?

SGDK only sub forum

Moderator: Stef

Post Reply
AmateurSegaDev
Interested
Posts: 24
Joined: Sun Feb 27, 2022 3:27 am

How do I use the Spade character?

Post 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?
Spade Character
Spade Character
font_default_Spade.png (3.44 KiB) Viewed 13029 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):
drawText "♠||"
drawText "♠||"
SpadeCorrupt.png (3.16 KiB) Viewed 13029 times
Is there a different ASCII code I should be using?

Also, thank you Stephane for developing and sharing SGDK!
cero
Very interested
Posts: 340
Joined: Mon Nov 30, 2015 1:55 pm

Re: How do I use the Spade character?

Post by cero »

'z'+1 or {
AmateurSegaDev
Interested
Posts: 24
Joined: Sun Feb 27, 2022 3:27 am

Re: How do I use the Spade character?

Post by AmateurSegaDev »

Thank you so much!

I couldn't get

Code: Select all

'z'+1 
to work, but the left bracket did.
cero
Very interested
Posts: 340
Joined: Mon Nov 30, 2015 1:55 pm

Re: How do I use the Spade character?

Post 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' };
AmateurSegaDev
Interested
Posts: 24
Joined: Sun Feb 27, 2022 3:27 am

Re: How do I use the Spade character?

Post by AmateurSegaDev »

Oh, silly me. Thank you!
Post Reply