blacktm
blacktm
@GiraffeMan3125 I think it's a good idea to incorporate in the library, FWIW. It's not in there today just because no one had implemented it yet, but @mariovisic your solution...
Hi @jontebol. That’s right, currently you’d have to create a new image for each tile. Not very efficient in this scenario, so we’re working on some other options, like exposing...
Hey @collindonnell, yea, that'd be really interesting. Right now, each `Renderable` type has a `contained?` method defined so basic "collisions" can be calculated ([see example](https://github.com/ruby2d/ruby2d/blob/main/test/contains.rb)). Do you have something in...
Ah, that makes sense. Thinking more about it, our `contains?` method right now doesn't really cut it: it's pretty inefficient to call every frame (callbacks would be better) and they're...
@Nakilon I hear ya. Now that Ruby 3.2 is [gaining WASI support](https://www.ruby-lang.org/en/news/2022/04/03/ruby-3-2-0-preview1-released/), we'll be able to use CRuby in the browser. I haven't tested the preview release yet, but looks...
Hi @blainjeremy. Did you figure it out? Any code changes we could make to the gem? Would be great to get this working on Windows, and document it on the...
Thanks for sharing all this detail @blainjeremy! I think we can definitely use it to build a Windows compilation path in the gem.
I think this is actually because `show` is being called twice. We don't really handle multiple windows being created in the same script well right now.
Figured out how to [build MRuby scripts to WebAssembly](http://www.blacktm.com/blog/ruby-on-webassembly). Next, will try to build SDL for WASM, add it to [`simple2d/deps`](https://github.com/simple2d/deps).
Working PR at #121