Updated excon gem, disabled netcode in Game to able game to be "playable"

This commit is contained in:
2020-08-01 11:18:53 -05:00
parent e09bd06d24
commit 9558370ab9
2 changed files with 7 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ GEM
specs: specs:
clipboard (1.3.4) clipboard (1.3.4)
cri (2.1.0) cri (2.1.0)
excon (0.75.0) excon (0.76.0)
gosu (0.15.2) gosu (0.15.2)
gosu (0.15.2-x64-mingw32) gosu (0.15.2-x64-mingw32)
gosu_more_drawables (0.3.1) gosu_more_drawables (0.3.1)

View File

@@ -9,11 +9,11 @@ class IMICFPS
@player = @map.find_entity_by(name: "character") @player = @map.find_entity_by(name: "character")
@camera = PerspectiveCamera.new( position: @player.position.clone, aspect_ratio: window.aspect_ratio ) @camera = PerspectiveCamera.new( position: @player.position.clone, aspect_ratio: window.aspect_ratio )
@camera_controller = CameraController.new(mode: :fpv, camera: @camera, entity: @player) @camera_controller = CameraController.new(mode: :fpv, camera: @camera, entity: @player)
@director = Networking::Director.new # @director = Networking::Director.new
@director.load_map(map_parser: @options[:map_parser]) # @director.load_map(map_parser: @options[:map_parser])
@connection = Networking::Connection.new(address: "localhost", port: Networking::DEFAULT_SERVER_PORT) # @connection = Networking::Connection.new(address: "localhost", port: Networking::DEFAULT_SERVER_PORT)
@connection.connect # @connection.connect
@hud = HUD.new(@player) @hud = HUD.new(@player)
@@ -38,8 +38,8 @@ class IMICFPS
@hud.update @hud.update
@camera_controller.update @camera_controller.update
@connection.update # @connection.update
@director.tick(window.dt) # @director.tick(window.dt)
@map.update @map.update
@demo.update if @demo @demo.update if @demo