Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 29 2016 04:26

    arturmo on master

    Update gemspec author info Add Thing#prepare, Space#prepar… Remove Game#creators in favor o… and 8 more (compare)

  • May 21 2016 08:28

    arturmo on master

    Update README (compare)

  • May 21 2016 08:25

    arturmo on master

    Update README (compare)

  • May 21 2016 08:25

    arturmo on master

    Update README (compare)

  • May 01 2016 03:33

    aost on master

    Rename Keyboard & Mouse #step -… Improve comment in AssetLoader#… Implement Game ::creator[s], ::… and 11 more (compare)

  • Apr 24 2016 05:12

    aost on master

    Remove Game::display hash confi… Use blank Space as default Game… Remove redundant namespace refe… and 3 more (compare)

  • Apr 18 2016 09:02
    aost commented #49
  • Apr 16 2016 09:24

    aost on master

    Remove example from codebase (compare)

  • Apr 16 2016 09:18

    aost on master

    Move Looks to a looks directory (compare)

  • Feb 26 2016 20:05
    aost closed #49
  • Feb 26 2016 20:05
    aost commented #49
  • Feb 26 2016 10:37
    MaxPleaner opened #49
  • Feb 26 2016 09:45

    aost on master

    example: Create space's #things… (compare)

  • Feb 26 2016 09:43

    aost on master

    Space: create things from ::thi… Optimize Thing#position[=] (compare)

  • Feb 26 2016 08:52

    aost on master

    example: Add ATTRIBUTION.txt (compare)

  • Feb 16 2016 10:58

    aost on master

    example: Update Gemfile (compare)

  • Feb 16 2016 10:57

    aost on master

    example: Update Gemfile (compare)

  • Feb 16 2016 10:54

    aost on master

    Make SpriteLook#animation redef… Update to Opal v0.9.2, remove R… (compare)

  • Feb 16 2016 10:02

    aost on master

    example: Define GuyLook#animati… (compare)

  • Feb 15 2016 00:55

    aost on master

    example: Set GuyLook::speed (compare)

Artur Ostręga
@aost
<chris-olszewski> Would adding comparison to the vector class be useful? Or would the lack of a good definition of greater/less than for vectors just cause confusion?

chris-olszewski has quit (Remote host closed the connection)

<skofo> Worst part of IRC: can't reply unless they're still there :)

gitter seems to be a superior discussion platform to IRC - it is even IRC-accessible
To answer your question @chris-olszewski: I am definitely up for adding more useful methods to Vector, though how do you think comparison operators should work?
Artur Ostręga
@aost
For something like V[10, 5] > V[9, 6]
Just FYI, one can compare a Vector's components easily, e.g. V[10, 5].x > V[9, 6].x
Chris Olszewski
@chris-olszewski
Never mind, just realized how unnecessary they would be. I was just thinking about comparing magnitudes
Artur Ostręga
@aost
Aha - no worries
Vector's existing operators are actually the biggest cause for concern to me - they need to create a new object each time you use one
So if you have something like position += velocity with those two variables being Vectors, it won't add to position - instead it will create a third Vector object and eventually garbage collect the first one.
Artur Ostręga
@aost
The simplest and most idiomatic solution to this is to add methods like Vector#add! and Vector#subtract! that don't create new objects, but position.add! velocity is not nearly as nice as position += velocity, so I am reluctant to add those methods
I will likely end up adding those methods anyway - shouldn't fight the language's nature unless absolutely necessary
Artur Ostręga
@aost
Rather, there is no particularly good alternative to adding #add!, etc.
Artur Ostręga
@aost
Echo! (echo, echo, echo...)
Feel free to post life stories here, visitors!
Chris Olszewski
@chris-olszewski
Is anyone else having issues with the compiled js from yeah build?
Artur Ostręga
@aost
@chris-olszewski What are the issues?
Chris Olszewski
@chris-olszewski
I'm getting Uncaught NameError for one of my classes
It's happening in the setup of the game, yeah serve still works like a charm for me
Artur Ostręga
@aost
Since 0.3.5, the entrypoint is code/game.rb instead of code/code.rb - so 0.3.4 games are not backwards-compatible.
This may be related to the issue you are having
Nevermind - if yeah serve works, it shouldn't be that
Chris Olszewski
@chris-olszewski
Ah yup, that's it. Thanks
Artur Ostręga
@aost
Would you be able to zip up your build and post it here via Dropbox? I would get a better idea of what is going on
No problem
It would be a good idea for me to post upgrade notes somewhere.
Chris Olszewski
@chris-olszewski
Nah, you already have it in the changelog, I should've checked there first
Artur Ostręga
@aost
https://github.com/yeahrb/yeah/blob/master/UPGRADING.md <- notes relevant specifically to doing version upgrades to existing games
Changelogs can be tedious to gather this information from
Artur Ostręga
@aost
Thanks for bringing this up!
Artur Ostręga
@aost
Hey @elia, this is really cool https://github.com/elia/yeah-leone-mangione
Would you mind if I put it in the examples?
Elia Schito
@elia
@skofo be my guest, but also be aware it’s full of bugs
Sean Culver
@seanculver
Where did all the code examples go?
furunkel
@furunkel
Hey @skofo, I've been thinking about writing a native backend for this. I have now managed to statically compile cairo and its dependecies into a ruby gem. Here is the thing: I think I don't like the idea of a ticker or that you are forced to use one. First, it causes uneeded redraws and second it is hard to elegantly implement in e.g. an X11 main loop. It would be nice if the ticker would be optional and if used would just repeatedly call game.update ? Any thoughts on this ?
Elia Schito
@elia
@seanculver I think they’ve been extracted, you can see screenshots and links in the readme tho https://github.com/yeahrb/yeah
Punita Ojha
@punitaojha
This message was deleted
Renato Marinho
@renatomarinho
This message was deleted
Renato Marinho
@renatomarinho
This message was deleted