Raycasting 3D render -- Blocks Edition

thx a lot ^-^

1 Like

i was wondering im new to raycasting but can someone give me the block code to make it so when i move it moves in the way im looking at because right now when i move left it moves foward or back same for the rest so if you know the block code for it is please tell me

1 Like

and also if it is possible to make floor, roof and make the walls higher

1 Like

It is possible, but the author won’t implement it due to the limited performance.

1 Like

how do you make a roof and floor i ment

1 Like

You can make the walls higher, though it’s just scaling one layer of walls instead of stacking multiple walls on top of each other if that’s what you want

1 Like

New Release v0.3.18

  • support dialog “see through”
    before:
    download
    after:
    download
  • optimize perf, skip blit back from “screen” if sprite has no any sayText or particle, this will save up to 14ms per sprite.
  • fix, prevent crash if ParticleSource.anchor isn’t a Sprite. (Particle on Sprite supported already)
9 Likes

why doesn’t raycasting not work with a bigger screen size?

nice.

Because the algorithm’s made to draw on a 160x120 grid, nothing bigger

1 Like

That’s possible, but there’s not userconfig definations when I made this, so…

1 Like

I have a feature request! can you add a block with an 8 frame animation in it that makes the selected sprite’s image a certain frame from that animation depending on the angle between you and them and what direction they are facing? similar to the original super mario kart

1 Like

This feature has build-in from the first version, right?
In the test file of this extension(main.ts), I set directional animations (a 2d image array) for each sprite.

2 Likes

I’m pretty sure that can be implemented on a project level, no need to add it to the extension itself

2 Likes

Hi! Iv’e been making a backrooms game with this extension for a week now, and just recently I expanded the tilemap. But when I did I found that there were walls on the floor. I checked the tilemap but all the wall tiles had wall on so I have no idea whats going on. can someone plz help? heres a screenshot:
arcade-Backrooms (2)

Thanks!

4 Likes

you are using a set copying sources, instead of the extension, right?
Delete these files(especially you don’t want the floor feature, which is not released yet), then import the published version of raycasting extension would fix it.

image

3 Likes

That worked! Thank you!

1 Like

I know this is late, but I fixed it.

any clue on on how to calculate distance that works on this, im trying to play an animation when one sprite gets close to the player.

2 Likes

you can specify any version in your pxt.json file.