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.
How many times do i have to tell you. The mods are people too and they have other things to do than the forums
not me, iām a pigeon!
Custom microsoft arcade theme color
They legit hired a pigeon onto the Makecode arcade team but not me! A human!
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()
}
}
}
i fixed it : )
how dare u challenge the bird god of teh foruns
They may have hired a pigeon, but no one said a robot vacuum could join!
You guys are human?
Thatās true the version you see on stream is a puppet and the pigeon knows ventriloquism
An array of all sprites block. not of kind. just sprites in general.
nope, iām air!
here this ok
1 more sprites
2 the ability to change the scale of tiles like we do with sprites
3 25 colors
4 mp3 audio
6 transparent colors
7 the ability to make sprites 3d (like items)
It for sure uses static typescript
- You can indent chunks of code and place them inbetween 2 comments, then collapse the comment.
- You can use more than 1 TypeScript file via the Explorer.
- If youāre using blocks, collapse all of the other functions and pray that the editor doesnāt crash.
Just thought I would share my current solutions.
Also, I think making the use of different files other than main.ts more mainstream would be more beneficial so that you donāt make dozens of messy projects before figuring out they can even be used like that.
I indent a function by 1 space after a comment and then remove that space for the next comment
There is an extension for transparent colors here
- what do you mean āmore spritesā?
- you can do 4x4, 8x8, 16x16, 32x32, but i dont know good ways to get them.
- not happening, it would require rewriting makecode almost intirely.
- Possible. I figured out how to do it, but makecode wont generate a share link. (Or rather it will but the link leads to nothing)
- Same with 3. It would require RGBA format for the colors (makecode is RGB), and a lot more math
- You kinda can? Maybe elaborate on it more.
The Makecode Browser being able to capture the mouse and lock it so we can have first person games