Updated Camera to use Matrix, Map now draws image tiles instead of rects, fixed selected units order pushing full array instead of contents of array.

This commit is contained in:
2019-10-06 21:34:39 -05:00
parent 0c22996b9f
commit cc93b5993d
6 changed files with 40 additions and 35 deletions

View File

@@ -1,7 +1,9 @@
class IMICRTS
class Window < CyberarmEngine::Engine
attr_reader :mouse
def setup
@last_update_time = Gosu.milliseconds
@mouse = CyberarmEngine::Vector.new
self.caption = "#{IMICRTS::NAME} (#{IMICRTS::VERSION} #{IMICRTS::VERSION_NAME})"
if ARGV.join.include?("--fast")
@@ -14,6 +16,7 @@ class IMICRTS
end
def update
@mouse.x, @mouse.y = self.mouse_x, self.mouse_y
super
@last_update_time = Gosu.milliseconds