Log In  


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 | 2018-01-14 | Code ▽ | Embed ▽ | No License




[Please log in to post a comment]