aviks / GameZero.jl

Zero overhead game development library for the Julia programming language
Other
184 stars 23 forks source link

Unicode Chinese Characters (ttf) are not being shown #67

Closed Shum88 closed 1 year ago

Shum88 commented 1 year ago
#sf = SDL2.TTF_RenderText_Blended(font, text, SDL2.Color(color...))
sf = SDL2.TTF_RenderUTF8_Blended(font, text, SDL2.Color(color...))

Following Aviks suggestion as above ...

Chinese Characters can be shown correctly SnakeZero_01 SnakeZero_02

Shum88 commented 1 year ago
if gameover == false
    display = "分數(Score) = $score"
else
    display = "GAME OVER! Final Score = $score"
    #play again instructions
    replay = TextActor("Click to play Again,  點擊...再玩", sDspFont; font_size = 26, color = Int[0, 0, 0, 255])
    replay.pos = (135, 390)
    draw(replay)
end
aviks commented 1 year ago

duplicate of #66. Closed by #68