I don’t know .md code so I’ll include what I would put in Redame.MD here
block 1: $: return the number corresponding to enum placement minus 1
block 2: convert 0 to $ + add 0 tenths: returns a string of number plus math symbol and depending on if you added tenths, it will add "and x tenths"Z
block 3: set default number symbol to $: sets internal variable (in namespace economics) to number added
block 4: default number symbol: returns default number symbol
block 5: Microsoft: same as block 1
block 6: get stonks from Microsoft: splashes corresponding message to added number
you can look at the code for the rest
6 Likes
could someone fix the screensaver of this:
here’s the code:
namespace screensaver {
let IS = false
while (IS) {
let e = spritePlus.createProjectileAt(
img`
e e e 6 e 6 6 6 e 6 6 6
e 6 6 6 e e 6 e e 6 6 6
e e e 6 e 6 e 6 e 6 6 6
e 6 6 6 e 6 6 6 e 6 6 6
e e e 6 e 6 6 6 e 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6
e e e 6 6 e e e e 6 6 6
e 6 6 6 e 6 6 6 6 6 6 6
e e e 6 e 6 6 e e 6 6 6
6 6 e 6 e 6 6 6 e 6 6 6
e e e 6 6 e e e e 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6
`,
5,
5,
50,
50
)
e.setBounceOnWall(true)
}
//%block="set screensaver to $bool"
//%blocId="3.1415926 approx = pi"
export function setScreenSaver (bool: boolean) {
IS = bool
}
}
it’s //%blocId not //%blockId