Stubbed out files for networking

This commit is contained in:
2020-03-26 14:25:55 -05:00
parent bb21de2e2a
commit 75185425b6
14 changed files with 194 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ class IMICFPS
@player = @map.find_entity_by(name: "character")
@camera = Camera.new(position: @player.position.clone)
@camera.attach_to(@player)
@director = Networking::Director.new(mode: :memory, hostname: "i-mic.rubyclan.org", port: 56789, interface: { server: Networking::MemoryServer, connection: Networking::MemoryConnection }, state: self)
@crosshair = Crosshair.new
@@ -39,6 +40,7 @@ class IMICFPS
control_player
@camera.update
@director.tick(window.dt)
if window.config.get(:debug_options, :stats)
@text.text = update_text