News for hackers. Stuff that matters.
Re:Tools we used to create a hit HTML5 game on Steam by cztomsik on Wednesday November 20, 2019 @07:25AM (#21583278)
WebGL is planned for graffiti

It's not finished yet but you can get close to 20M mem usage + overhead of your libs & assets. Executable size is node.js + 2M (30M total IIRC and it compresses nicely to ~10M *.dmg because node contains a lot of strings)

Please file an issue if you want it to happen so that it can be tracked how many people want it too (I had no idea that this is a thing in gaming community). It's now at the bottom of my priorities (I'm working on raspi support so that it can run as smartmirror) but it's not that hard to add so it could actually happen.

https://github.com/cztomsik/graffiti

Re:Tools we used to create a hit HTML5 game on Steam by seangrogg on Wednesday November 20, 2019 @12:29PM (#21586074)
I added a watch to it and starred; I think it'd be a good idea to be more clear with what's being built in the README.md because I wouldn't have thought that this was a stripped-down browser based on the headline. As well, it's difficult to see exactly what you are getting from graffiti (is it just canvas, does it include DOM stuff) at a glance which may turn away those browsing repos.
Re:Tools we used to create a hit HTML5 game on Steam by cztomsik on Friday November 22, 2019 @09:16AM (#21605697)
Agreed that README is very unclear - it's not a browser at all, actually. It's just a GUI library for rust & node.js which happens to have little DOM-like layer.

This pseudo-DOM is really just enough to make web frameworks work. I want to do GUI apps with the same tools & libs which I use for web development but I don't want to include the whole browser and moreover I want it to be enough resource-savvy so that it can run on my raspi attached to the TV.

It's hard to describe what it is good for because there are many use-cases. It's really rather a platform just like Electron or Qt is, but of course it's very limited now. But really, if you or anybode else have better headline, I'd love to hear it.

And thanks for the interest :-)