mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Basic networking implemented, currently non functional
This commit is contained in:
@@ -3,9 +3,10 @@ class IMICRTS
|
||||
Overlay = Struct.new(:image, :position, :angle, :alpha)
|
||||
def setup
|
||||
window.show_cursor = true
|
||||
@options[:networking_mode] ||= :host
|
||||
|
||||
@player = Player.new(id: 0)
|
||||
@director = Director.new(map: Map.new(map_file: "maps/test_map.tmx"), players: [@player])
|
||||
@director = Director.new(map: Map.new(map_file: "maps/test_map.tmx"), networking_mode: @options[:networking_mode], players: [@player])
|
||||
|
||||
@selected_entities = []
|
||||
@overlays = []
|
||||
@@ -178,7 +179,7 @@ class IMICRTS
|
||||
end
|
||||
|
||||
def finalize
|
||||
# TODO: Release bound objects/remove self from Window.states array
|
||||
@director.finalize
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user