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:
clipboard (1.3.4)
cri (2.1.0)
excon (0.75.0)
excon (0.76.0)
gosu (0.15.2)
gosu (0.15.2-x64-mingw32)
gosu_more_drawables (0.3.1)

View File

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