Sha256: b794063a94970ccef70dba67e2e4903d584eb07e1115a4ce10c82e34f9f2603d
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
# TODO: Revisar # 1 => Dependencia entre modulos por el director # 2 => Usar una clase o un modulo para este escenario, se usa un modulo # debido a que Screen no tendra estado # 3 => El nombrado de half module Joybox module Common module Screen module_function def self.width Joybox.director.winSize.width end def self.half_width Joybox.director.winSize.width / 2 end def self.height Joybox.director.winSize.height end def self.half_height Joybox.director.winSize.height / 2 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.0.0 | motion/joybox/common/screen.rb |
joybox-0.0.6 | motion/joybox/common/screen.rb |