Sha256: 4881ba389ac97884e52bd3c4632d16bccebcb25e3ed8ddb2ed0929f1282b1e34
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
class AuthorEngine class Part module Common def width 128 end def height 128 end def fps if RUBY_ENGINE == "opal" AuthorEngine::GameRunner.instance.fps else Gosu.fps end end def milliseconds if RUBY_ENGINE == "opal" @__initial_milliseconds ||= `performance.now()` (`performance.now()` - @__initial_milliseconds).round(3) else Gosu.milliseconds end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
author_engine-0.5.0 | lib/author_engine/game/common/parts/common.rb |
author_engine-0.4.0 | lib/author_engine/game/common/parts/common.rb |