mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-13 06:42:35 +00:00
Updated excon gem, disabled netcode in Game to able game to be "playable"
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user