Sha256: ba9ee9d137cd4923b9f47742b09c9eb342876388f3343b75745046b67f372cb7

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

class AuthorEngine
  class Part
    module Common
      def width; 128; end
      def height; 128; end
      def fps; AuthorEngine::GameRunner.instance.fps; end
      def milliseconds
        @__initial_milliseconds ||= `performance.now()`
        (`performance.now()` - @__initial_milliseconds).round(3)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
author_engine-0.3.1 lib/author_engine/game/opal/parts/common.rb
author_engine-0.3.0 lib/author_engine/game/opal/parts/common.rb