Sha256: 975bc66270e2247ef1b7bd099a68cb35d7f0d10e860ef0f33b9233789f9475b8
Contents?: true
Size: 596 Bytes
Versions: 7
Compression:
Stored size: 596 Bytes
Contents
module Physicist module Laboratory class View < Dedalus::ApplicationView def app_screen Screen.new( scientist: scientist_view, map_grid: application.workspace_view.grid_map, camera: camera_location ) end def scientist_view application.scientist_view end def tile_size 64 end def camera_location cx, cy = *scientist_view.current.position mx, my = (window.width / 2) / tile_size, (window.height / 2) / tile_size [ cx - mx, cy - my ] end end end end
Version data entries
7 entries across 7 versions & 1 rubygems