Updates YOU want to see in Makecode

MakeCode uses real js (ts) but still

2 Likes

How did that make you feel i was hating?! i was just pointing out… ughhhhhhhhhhh :sob:

2 Likes

This is my 3D engine on GitHub. The MakeCode version had a 100x100 screen (10,000 pixels), this has a 320x240 screen (76,800 pixels), which has 7.68 times more pixels. the other one ran at 6 fps on my Chromebook. This ran at 60. The code is mostly the same. The raycasting and play physics are the most expensive parts, and they were not changed. Mostly the controls and main loop to fit on js. This is the original project.

3 Likes

How many times do i have to tell you. The mods are people too and they have other things to do than the forums

3 Likes

not me, i’m a pigeon!

14 Likes

Custom microsoft arcade theme color

4 Likes

They legit hired a pigeon onto the Makecode arcade team but not me! A human!

7 Likes

no it is not. If I do this in js:

function add(a, b) { return a + b }
console.log(add)

in js, it should output:

add(a, b) { return a + b }

in makecode, I do this:

function add (a: number, b: number) { return a + b }
console.log(add)

it outputs:

function add__P4448(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
while (true) {
if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
switch (step) {
case 0:
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = (s.arg0 + s.arg1);
return leave(s, r0)
default: oops()
} } }

that is what makecode compiles your code into. cleaned up, it looks like:

function add__P4448(s) {
    let r0 = s.r0, step = s.pc;
    s.pc = -1;
    while (true) {
        if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
        switch (step) {
            case 0:
                if (s.lambdaArgs) {
                    s.arg0 = (s.lambdaArgs[0]);
                    s.arg1 = (s.lambdaArgs[1]);
                    s.lambdaArgs = null;
                }
                r0 = (s.arg0 + s.arg1);
                return leave(s, r0)
            default: oops()
        }
    }
}

The best pigeon in the world

1 Like

i fixed it : )

2 Likes

how dare u challenge the bird god of teh foruns

1 Like

They may have hired a pigeon, but no one said a robot vacuum could join!

2 Likes

You guys are human?

2 Likes

That’s true the version you see on stream is a puppet and the pigeon knows ventriloquism

2 Likes

An array of all sprites block. not of kind. just sprites in general.

2 Likes