Log In  

0

If you click "Code" to show the source for a game in the web player, any glyphs will show up as escape codes, rather than translate to unicode glyphs as you've done recently with cut/paste and printh().

I made a quick repro/example, tacked on at the end of this post.

If I copy/paste from the editor, I get this:

function _update60()
    l=btn(⬅️) and  8 or 0
    r=btn(➡️) and 11 or 0
end

function _draw()
    rectfill( 0,0, 63,127,l)
    rectfill(64,0,127,127,r)
    print("press\n⬅️ ➡️",54,58,7)
end

But if I copy/paste from clicking "Code" on the player below, I get this:

function _update60()
    l=btn(\139) and  8 or 0
    r=btn(\145) and 11 or 0
end

function _draw()
    rectfill( 0,0, 63,127,l)
    rectfill(64,0,127,127,r)
    print("press\n\139 \145",54,58,7)
end

Here's the example cart:

Cart [#48156#] | Copy | Code | 2018-01-14 | Link
0

P#48154 2018-01-14 01:07 ( Edited 2018-01-14 01:18)

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-01-20 11:11 | 0.235s | 1835k | Q:17