Oh and I should mention: hotloading is cool as hell, thank you so much for that!
connorshea
Recent community posts
I think I've discovered a bug?
Video:
Reproduction steps:
- Open a game on macOS
- Have another application open full screen
- Drag the game into the application's fullscreen space so it takes up part of it
- Resize the game so it takes up less space (more might also work)
- The game will now go back to windowed mode and be stuck with the resize cursor displaying. It no longer takes inputs, as far as I can tell.
macOS 10.14.4 Mojave, I can provide more info if needed.
I had hoped to create a nice helper with named parameters for creating sprites, so that you could do something like this:
# before, doesn't really mean anything to me [10, 10, 100, 100, [0, 0, 0]] # after, much nicer! sprite_helper(x: 10, y: 10, width: 100, height: 100, color: [0, 0, 0])
But unfortunately mruby doesn't support named parameters :( https://github.com/mruby/mruby/issues/363
Anyone have any other ideas or want to implement it in mruby for me?
I put together a little tasks.json file for use with VS Code, it makes running the dragonruby samples a bit simpler because I'm lazy :)
You can add it to .vscode/tasks.json in the dragonruby folder and then open the Command Palette (Ctrl/Cmd + Shift + P), choose "Run task", and then choose your task :) Should work on macOS and Linux, not sure about Windows.
https://gist.github.com/connorshea/9c4a1bede810497957e3fec50949bd63 (gist because itch.io's code formatter doesn't like me)