Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiltop committed May 22, 2024
1 parent 72dd7bf commit 16b2760
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ In godot, make a new script called settings.gd (in the root folder). In the sett
extends Node

var sens = 0.001
var base_url = "https://example.com/" #Url of the server
var password = "example" #Password for the server to authenticate the client
var base_url = "http://localhost:8000/"
var password = "password" #your servers password

var save_file = "user://runs.save"
var volume = 0
```

Make sure it is in this exact format, or the game might not run properly.
Expand Down
3 changes: 1 addition & 2 deletions menus/settings/settings_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ func initialize_sens_input():
sens_input.text_changed.connect(update_sens)

func initialize_fps_max_input():
fps_max_input.text = str(Settings.max_fps)
fps_max_input.text = str(Engine.max_fps)
fps_max_input.text_changed.connect(update_max_fps)

func update_max_fps(value: String):
var fps = int(value)
Settings.max_fps = fps
Engine.max_fps = fps

func initialize_screen_input():
Expand Down
2 changes: 2 additions & 0 deletions steam.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ var potential_lobby: int = 0
var spawned_players: Array = []

func _ready():

Engine.max_fps = 144
Steam.lobby_joined.connect(on_lobby_joined)
Steam.lobby_created.connect(on_lobby_created)
Steam.p2p_session_request.connect(p2p_session_request)
Expand Down

0 comments on commit 16b2760

Please sign in to comment.