Fixed crash due to old code from initial import, various clean up.

This commit is contained in:
2019-01-30 13:37:22 -06:00
parent 4d36268b04
commit 76ac1d553a
5 changed files with 103 additions and 82 deletions

View File

@@ -0,0 +1,27 @@
module CyberarmEngine
module Common
def push_state(klass, options={})
$window.push_state(klass, options)
end
def current_state
$window.current_state
end
def pop_state
$window.pop_state
end
def show_cursor
$window.show_cursor
end
def show_cursor=boolean
$window.show_cursor = boolean
end
def draw_rect(x, y, width, height, color, z = 0)
$window.draw_rect(x,y,width,height,color,z)
end
end
end