Made a small ray casting prototype with Kotlin/WASM and calling the Canvas API to do all the drawing (I really couldn't be bothered with WebGL). You can test it out here actually: https://kenta.codeberg.page/Rayboy-WASM/@pages/ source code https://codeberg.org/Kenta/Rayboy-WASM
I'm really no expert programmer nor that good in Kotlin so the code might stink (but pointers are really welcomed).
I was actually wondering, is there any difference with using WASM rather than pure Kotlin/JS for this? Would WASM provide some sort of performance increase compared to just using Kotlin/JS, even if small?
09/21/2023, 9:49 PM
How to move? :)
09/21/2023, 9:50 PM
W A S D
Sorry, should've added that in description of the repo
09/21/2023, 9:53 PM
How did you make it running without Origin trials for Wasm GC ?
For me it nicely works even in incognito browser
09/21/2023, 10:00 PM
Frankly speaking.. No clue. Hosting it on Codeberg been painless and worked instantly without any hiccups.
But glad to know it works just fine! I'm more than certain there are ways to improve the performance, but my knowledge doesn't reach that far yet.
Tested the most obvious thing and… Yeah, you can totally create electron app out of it as well.
Really fun, gives people a lot of possibilities for other purposes
Hey. i played around with your this project for a bit. Nice project! Added a fps counter and variable wallStripWidth. Seems to work very well even with 1px wallStripWidth with 75 - 80 fps. 2 px gets me 110 fps and 3px and above gets me 120 fps on my machine. Do you want me to make MR to your project? Tried getting account on Codeberg but couldnt get it to work :(
09/22/2023, 3:29 PM
That’s up to you, really! I’m surprised codeberg didnt work for you? It’s a very flawless git alternative that saved me so much hassle.
I’m genuinely surprised it works well despite how ineffective the code is and it uses Canvas API to do the drawing. But I would love to see your addition so I can learn more and see what I can add to it 👍
09/23/2023, 9:53 AM
Ill see if i can do MR. Yesterday it wasn't possible to create new account on Codeberg. Today i can do the registration but i dont get any confirmation email 😞