Skip to content

Scene: Periodic events #9

@burtlo

Description

@burtlo

Within scenes it would be good for them to specify the ability to fire an event every few ticks. Currently the elapsed time needs to be managed by the scene and then a check has to be fired when it seems common enough to be done by Metro

class FirstScene < GameScene

  every 15.ticks do
    puts "making a decision"
  end
end

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions