Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Torsten Rüger
@rubydesign
that looks good, but not really worth the effort now. so much else to do, and the event will be a mousedown
Torsten Rüger
@rubydesign
@gabrielrios so what about the native approach.
I would rather not spend too much more time on a doomed architecture
Gabriel Rios
@gabrielrios
Ok, so when you talk about native approach you mean using the Native module ?
Torsten Rüger
@rubydesign
yes, but since i have 2 days under my belt it really is just a word
Gabriel Rios
@gabrielrios
lol
George Plymale II
@ylluminarious
@dancinglightning did you see the chat yesterday in the opal/opal room about "toll-free" bridging vs. including Native?
Gabriel Rios
@gabrielrios
So, which I know, both using the Native module (as we do with opal-phaser), and inheriting from the native class as its done with pixi, are ways to wrap JS code. TBH, it seems like there’s not much difference between them. But `meh recomentandion is to use the native module.
Torsten Rüger
@rubydesign
@ylluminarious yes but didn't understand fully
Gabriel Rios
@gabrielrios
I don’t really have the time to do this now, not sure if @ylluminarious, but if you can go ahead, I can help but not exactly get my hands dirty right now
Torsten Rüger
@rubydesign
@gabrielrios The current approach just doesn't allow the handy alias_native for small things
George Plymale II
@ylluminarious
ok
Gabriel Rios
@gabrielrios
opal-phaser is a great example of what to do.
Torsten Rüger
@rubydesign
i would just need one or two classes done right to get the idea
George Plymale II
@ylluminarious
Torsten Rüger
@rubydesign
@ylluminarious i was just reading that
George Plymale II
@ylluminarious
although that kind of assumes some familiarity with phaser
Torsten Rüger
@rubydesign
i did tinker
Gabriel Rios
@gabrielrios
I’m doing Sprite here, real quick
George Plymale II
@ylluminarious
@dancinglightning as you can see, the basic structure is just including the Native module and then assigning a value to the @native variable
Torsten Rüger
@rubydesign
cool. Had previously missed the crucial point of assigning @native
Gabriel Rios
@gabrielrios
you can call super and passing the native object too
George Plymale II
@ylluminarious
right
Torsten Rüger
@rubydesign
@gabrielrios tell when you checked in
the phaser demo certainly reads nice
Torsten Rüger
@rubydesign
ok, time for bed. i'll check tomorrow
Gabriel Rios
@gabrielrios
Ok
I’m working on it
but I ended up having to go deeper for the demo to work
its almost done
Torsten Rüger
@rubydesign
good, i'll have a good day tomorrow
Gabriel Rios
@gabrielrios
@dancinglightning done ;D
Torsten Rüger
@rubydesign
@gabrielrios quick rewrite, well done. Very clean, much better basis to go on.
George Plymale II
@ylluminarious
@dancinglightning saw that you removed opal-pixi from one of your projects: salama/salama-debugger@1d00586
is it just not the tool for the job or something?
Torsten Rüger
@rubydesign
@ylluminarious very observant indeed. Yes, i played around with 2d visualisation of code and just couldn’t get it to work. I saw the Unreal visual code editor and got a bit carried away. Will go the more traditional html route with volt and hopefully someday have time to come back.
ylluminate
@ylluminate
you know @dancinglightning one thing interesting that we briefly explored and haven't had time to circle back to was the possibility of transpiling or in some other fashion bringing ruby to unity for perhaps some interestingly similar purposes...
Torsten Rüger
@rubydesign
@ylluminate unreal blueprint is the first i heard, i don’t even know unity. There sure is a lot of iteresting stuff out there. I try to focus on the one life-time project that i have -:)
ylluminate
@ylluminate
lol, i know the sentiment
Keith
@ktec
Yo, whats up. Made some great progress with the opal-pixi stuff, its by no means finished but I've got the first load of examples up and running. If you want me to send a PR let me know, otherwise we can wait till I've finished, and separated the gem from the examples into their own git repos so people can just download/install the opal-pixi gem, and opal-pixi-examples. Its all here anyways, having lots of fun playing with this stuff, thanks for starting me on it https://github.com/globalkeith/opal-pixi
George Plymale II
@ylluminarious
@ktec Wow, cool. Your fork really has a lot of neat stuff. You might want to compare with some recent changes on the main repo by @dancinglightning and @gabrielrios. :)
Keith
@ktec
Yeah i used the updates they added to get this far, without their updates I would never have got it working with Native properly
still dont fully understand everything, but I'm getting better slowly
Gabriel Rios
@gabrielrios
@ktec I can’t say that I fully understand either but I might be able to help if you have any doubts
and @ktec, yes a PR is welcome, feel free to send whenever you think you have something good ;)
Keith
@ktec
At the moment its cool, I'm was just working my way through the examples which is driving me to create all the different wrappers I need, and I did a quick review last night and it seems I'm not far off all the objects that are actually worth creating, at least for a version 0.5 of the gem, and I think next would be to improve the ruby interface. I'm still doing a few things I'd like to wrap with ruby interfaces like this https://github.com/globalkeith/opal-pixi/blob/rewrite/demo/app/examples/basics/spritesheet.rb#L54
so much exciting stuff going on, its hard to know which way to look!! I've been getting into Elixir recently and then I just discovered Crystal last night too
Gabriel Rios
@gabrielrios
Yeah, I know the feeling
Keith
@ktec
Hi Gabriel, so I've finally managed to get the gem and examples separated, so the examples are here: http://ktec.github.io/opal-pixi-examples/ and the gem is http://github.com/ktec/opal-pixi/ I've just sent you a pull request, however the branch is so different it can't automatically merge. Personally I would suggest a complete overwrite, but i'll let you take a good look through the work i've done and see what you think. Its mostly based on your previous work, and what you've done for opal-phaser project.
ylluminate
@ylluminate
hey awesome work @ktec!