Live data from Hacker News

Show HN: Unity like game editor running in pure WASM

raverie-us.github.io

61–70 of 166 posts

Re: Show HN: Unity like game editor running in pure WASM

#61

Cool project. Is there any way to scale the UI for high dpi displays? On a 2:1 display, the fonts look aliased, if I set the browser zoom to 50%, the UI looks crisp, but everything is a bit small to be useful.

To OP:

The fix is setting canvas width to window.innerWidth * window.devicePixelRatio, and height to window.innerHeight * window.devicePixelRatio. Then use CSS to maximize the canvas on the screen.

Re: Show HN: Unity like game editor running in pure WASM

#64

Earlier quoted context omitted.

That's so cool! Zilch was my baby, that makes me so happy :D

do you know what engine was in use or development during around 2002-2003? the engine was somewhat baked but flexible and had entry points where you drop c++ snippets in, I believe with a GUI

Was it a 2D game engine? I recall before using Zero I used an engine called ProjectFUN, which is similar to what you described. That was around 2013 though, not 2002.

Re: Show HN: Unity like game editor running in pure WASM

#65

Cool project. Is there any way to scale the UI for high dpi displays? On a 2:1 display, the fonts look aliased, if I set the browser zoom to 50%, the UI looks crisp, but everything is a bit small to be useful.

To OP: The fix is setting canvas width to window.innerWidth * window.devicePixelRatio, and height to window.innerHeight * window.devicePixelRatio. Then use CSS to maximize the canvas on the screen.

Thanks, I’ll make the fix!

Re: Show HN: Unity like game editor running in pure WASM

#66

Why invent your own scripting language instead of using one of the infinity other existing languages?

This project was made in 2012 when there weren’t that many languages, especially not ones that bind to C/C++ (and we’re type safe). LUA was the primary embeddable language back then, and C# wasn’t even open source yet :)

Re: Show HN: Unity like game editor running in pure WASM

#67

This is awesome! What would you say are the primary differences between Raverie and PlayCanvas.com?

I haven’t tried PlayCanvas yet, but it looks great. I think the primary difference is that this engine is a learning tool primarily, and doesn’t have any intention to compete with bigger name engines.

Re: Show HN: Unity like game editor running in pure WASM

#68
post #25

heh, I got a kick out of there being a Project > Exit (bound to alt-f4!) which didn't actually exit anything but it thankfully did stop the tab from taking over my machine, so ... win-win?

Still a lot of hold overs from being a native app :P

Good find though!

Re: Show HN: Unity like game editor running in pure WASM

#69

Tinkercad and scratch were never tied to a browser! Why go with wasm?

I’m fairly certain the native version of Scratch is just a browser with Scratch running in a web view. I’d also mention that WASM isn’t tied to a browser either (despite being called WebAssembly, it’s now widely used outside of browsers). You can in fact make native executables now from a WASM binary.

Re: Show HN: Unity like game editor running in pure WASM

#70

Do you know anything about any WASM developments that will enable pure WASM interaction with the browser's Web-APIs at no or at a low cost without the JS layer? Sometimes I look at https://github.com/WebAssembly/proposals and it's very confusing. There are the type imports proposal(years away), the almost complete GC proposal(which is apparently only for GCd languages, but not for anything browser wasm), the componen…

I really yearn for this myself. I would love to see a “pure wasm” browser where the pages are just wasm and the “browser” just provides a bunch of platform imports like WASI. I agree with you though, seems like it’s not a priority for them. One of these days…
Post reply on HN