# We don't need the mouse location for this example so we prefix that argument with _ to indicate it is unusedĭragon. # This lambda is called by the input service with this sprite (dragon) plus the mouse location. register_clickable ( dragon ) # Turn the dragon red when the mouse is clicked down. See DRGTK docs on attr_sprite: /#-attr_sprite.rb # This only needs to be done once globally, usually in your Zif::Scene#prepare_scene method Includes attr_sprite – supports what DRGTK provides for these classes in addition to what is documented here. The foundation for most of the Zif library. A basic sprite which combines actions / animations, click handling, mass assignment and more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |