This is a SCRIPT-8 cassette.
Created
August 20, 2019 04:01
-
-
Save MarkGamed7794/b52c3d5d9b319d03ad2947a7c985129b to your computer and use it in GitHub Desktop.
SCRIPT-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gold = 1e6; | |
var chars = ["0","1","2","3","4","5","6","7","8","9",",",".","e","+","$","null","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]; | |
var shorts = [["","U","D","T","QD","QN","SX","SP","O","N"],["","D","V","TG","QDG","QNG","SXG","SPG","OG","NG"],["","C","DC","TC","QDC","QNC","SXC","SPC","OC","NC"]] | |
function pad(n, width, z) { | |
z = z || '0'; | |
n = n + ''; | |
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n; | |
} | |
function short(o){ | |
if(o >= 1e306){return "INF$";} | |
if(o < 1e9){return o.toLocaleString() + "$"} | |
for(var i = 0;i < 200;i++){ | |
if(Math.pow(10,i*3) >= o){ | |
return pad((o/Math.pow(10,(i-1)*3)).toFixed(2),6," ") + shorts[0][i%10] + shorts[1][Math.floor(i/10)%10] + "$" | |
} | |
} | |
} | |
draw = () => { | |
clear() | |
for(var i = 0;i < short(gold).length;i++){ | |
for(var x = 0;x < chars.length;x++){ | |
if(short(gold)[i] == chars[x]){sprite(i*8,0,x);} | |
} | |
} | |
gold = Math.ceil(gold*8) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"iframeVersion": "0.1.255", | |
"lines": [ | |
29, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0": [ | |
" 000 ", | |
" 0 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
" 00 0 ", | |
" 000 ", | |
" " | |
], | |
"1": [ | |
" 00 ", | |
" 000 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 000000 ", | |
" " | |
], | |
"2": [ | |
" 00000 ", | |
"00 00 ", | |
" 000 ", | |
" 0000 ", | |
" 0000 ", | |
"000 ", | |
"0000000 ", | |
" " | |
], | |
"3": [ | |
" 000000 ", | |
" 00 ", | |
" 00 ", | |
" 0000 ", | |
" 00 ", | |
"00 00 ", | |
" 00000 ", | |
" " | |
], | |
"4": [ | |
" 000 ", | |
" 0000 ", | |
" 00 00 ", | |
"00 00 ", | |
"0000000 ", | |
" 00 ", | |
" 00 ", | |
" " | |
], | |
"5": [ | |
"000000 ", | |
"00 ", | |
"000000 ", | |
" 00 ", | |
" 00 ", | |
"00 00 ", | |
" 00000 ", | |
" " | |
], | |
"6": [ | |
" 0000 ", | |
" 00 ", | |
"00 ", | |
"000000 ", | |
"00 00 ", | |
"00 00 ", | |
" 00000 ", | |
" " | |
], | |
"7": [ | |
"0000000 ", | |
"00 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" " | |
], | |
"8": [ | |
" 0000 ", | |
"00 0 ", | |
"000 0 ", | |
" 0000 ", | |
"0 0000 ", | |
"0 00 ", | |
" 00000 ", | |
" " | |
], | |
"9": [ | |
" 00000 ", | |
"00 00 ", | |
"00 00 ", | |
" 000000 ", | |
" 00 ", | |
" 00 ", | |
" 0000 ", | |
" " | |
], | |
"10": [ | |
" ", | |
" ", | |
" ", | |
" ", | |
" ", | |
" 00 ", | |
" 00 ", | |
" 00 " | |
], | |
"11": [ | |
" ", | |
" ", | |
" ", | |
" ", | |
" ", | |
" 00 ", | |
" 00 ", | |
" " | |
], | |
"12": [ | |
"0000000 ", | |
"00 ", | |
"00 ", | |
"000000 ", | |
"00 ", | |
"00 ", | |
"0000000 ", | |
" " | |
], | |
"13": [ | |
" ", | |
" 00 ", | |
" 00 ", | |
" 000000 ", | |
" 00 ", | |
" 00 ", | |
" ", | |
" " | |
], | |
"14": [ | |
" ", | |
" 000 ", | |
"00100 ", | |
"00100 ", | |
"00100 ", | |
" 000 ", | |
" ", | |
" " | |
], | |
"16": [ | |
" 000 ", | |
" 00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"0000000 ", | |
"00 00 ", | |
"00 00 ", | |
" " | |
], | |
"17": [ | |
"000000 ", | |
"00 00 ", | |
"00 00 ", | |
"000000 ", | |
"00 00 ", | |
"00 00 ", | |
"000000 ", | |
" " | |
], | |
"18": [ | |
" 0000 ", | |
" 00 00 ", | |
"00 ", | |
"00 ", | |
"00 ", | |
" 00 00 ", | |
" 0000 ", | |
" " | |
], | |
"19": [ | |
"00000 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00000 ", | |
" " | |
], | |
"20": [ | |
"0000000 ", | |
"00 ", | |
"00 ", | |
"000000 ", | |
"00 ", | |
"00 ", | |
"0000000 ", | |
" " | |
], | |
"21": [ | |
"0000000 ", | |
"00 ", | |
"00 ", | |
"000000 ", | |
"00 ", | |
"00 ", | |
"00 ", | |
" " | |
], | |
"22": [ | |
" 00000 ", | |
" 00 ", | |
"00 ", | |
"00 000 ", | |
"00 00 ", | |
" 00 00 ", | |
" 00000 ", | |
" " | |
], | |
"23": [ | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"0000000 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
" " | |
], | |
"24": [ | |
" 000000 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 000000 ", | |
" " | |
], | |
"25": [ | |
" 0000 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
"00 00 ", | |
"00 00 ", | |
" 00000 ", | |
" " | |
], | |
"26": [ | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"0000 ", | |
"00000 ", | |
"00 000 ", | |
"00 000 ", | |
" " | |
], | |
"27": [ | |
"00 ", | |
"00 ", | |
"00 ", | |
"00 ", | |
"00 ", | |
"00 ", | |
"0000000 ", | |
" " | |
], | |
"28": [ | |
"00 00 ", | |
"000 000 ", | |
"0000000 ", | |
"0000000 ", | |
"00 0 00 ", | |
"00 00 ", | |
"00 00 ", | |
" " | |
], | |
"29": [ | |
"00 00 ", | |
"000 00 ", | |
"0000 00 ", | |
"0000000 ", | |
"00 0000 ", | |
"00 000 ", | |
"00 00 ", | |
" " | |
], | |
"30": [ | |
" 00000 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
" 00000 ", | |
" " | |
], | |
"31": [ | |
"000000 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"000000 ", | |
"00 ", | |
"00 ", | |
" " | |
], | |
"32": [ | |
" 00000 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 0 00 ", | |
"00 00 ", | |
" 0000 0 ", | |
" " | |
], | |
"33": [ | |
"000000 ", | |
"00 00 ", | |
"00 00 ", | |
"00 000 ", | |
"00000 ", | |
"00 000 ", | |
"00 000 ", | |
" " | |
], | |
"34": [ | |
" 0000 ", | |
"00 00 ", | |
"00 ", | |
" 00000 ", | |
" 00 ", | |
"00 00 ", | |
" 00000 ", | |
" " | |
], | |
"35": [ | |
" 000000 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" " | |
], | |
"36": [ | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
" 00000 ", | |
" " | |
], | |
"37": [ | |
"00 00 ", | |
"00 00 ", | |
"00 00 ", | |
"000 000 ", | |
" 00000 ", | |
" 000 ", | |
" 0 ", | |
" " | |
], | |
"38": [ | |
"00 00 ", | |
"00 00 ", | |
"00 0 00 ", | |
"0000000 ", | |
"0000000 ", | |
"000 000 ", | |
"00 00 ", | |
" " | |
], | |
"39": [ | |
"00 00 ", | |
"000 000 ", | |
" 00000 ", | |
" 000 ", | |
" 00000 ", | |
"000 000 ", | |
"00 00 ", | |
" " | |
], | |
"40": [ | |
" 00 00 ", | |
" 00 00 ", | |
" 00 00 ", | |
" 0000 ", | |
" 00 ", | |
" 00 ", | |
" 00 ", | |
" " | |
], | |
"41": [ | |
"0000000 ", | |
" 000 ", | |
" 000 ", | |
" 000 ", | |
" 000 ", | |
"000 ", | |
"0000000 ", | |
" " | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment