Skip to content

Commit

Permalink
add godotsteam and initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Jun 20, 2024
1 parent af4a557 commit 4f76d23
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- run: curl https://github.com/GodotSteam/GodotSteam/releases/download/v4.8-gde/godotsteam-gdextension-plugin.zip -o godotsteam-gdextension-plugin.zip
- run: unzip godotsteam-gdextension-plugin.zip

- run: curl -o godot.zip -L https://github.com/godotengine/godot-builds/releases/download/${{env.GODOT_VERSION}}/Godot_v${{env.GODOT_VERSION}}_win64.exe.zip
- run: unzip godot.zip
- run: curl -o templates.zip -L https://github.com/godotengine/godot-builds/releases/download/${{env.GODOT_VERSION}}/Godot_v${{env.GODOT_VERSION}}_export_templates.tpz
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Godot 4+ specific ignores
.godot/
android/
.vscode/
.vscode/
addons/
4 changes: 4 additions & 0 deletions Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ extends Node2D
var bananas: int = 0

func _ready() -> void:
var initialize_response: Dictionary = Steam.steamInitEx()
$SteamStatus.text=str(initialize_response)
print("Did Steam initialize?: %s " % initialize_response)

$Button.connect("pressed", Callable(self, "_on_button_pressed"))
$SubViewportContainer/Label.text = "bananas: " + str(bananas)

Expand Down
23 changes: 15 additions & 8 deletions node_2d.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ theme = SubResource("Theme_p6gxr")
text = "bananas: 0"

[node name="Button" type="Button" parent="."]
offset_left = 82.0
offset_top = 227.0
offset_right = 609.0
offset_bottom = 395.0
offset_left = 81.0
offset_top = 258.0
offset_right = 608.0
offset_bottom = 426.0
theme = SubResource("Theme_ul4r8")
text = "click me"

[node name="Button2" type="Button" parent="."]
offset_left = 645.0
offset_top = 227.0
offset_right = 884.0
offset_bottom = 395.0
offset_left = 643.0
offset_top = 259.0
offset_right = 882.0
offset_bottom = 427.0
theme = SubResource("Theme_ul4r8")
text = "vib"

Expand Down Expand Up @@ -112,4 +112,11 @@ offset_right = 891.0
offset_bottom = 504.0
text = "duration"

[node name="SteamStatus" type="Label" parent="."]
offset_left = 24.0
offset_top = 192.0
offset_right = 303.0
offset_bottom = 251.0
text = "steam status here"

[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]
4 changes: 4 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ run/main_scene="res://node_2d.tscn"
config/features=PackedStringArray("4.3", "Forward Plus")
boot_splash/show_image=false

[debug]

file_logging/enable_file_logging=true

[display]

window/size/viewport_width=1280
Expand Down

0 comments on commit 4f76d23

Please sign in to comment.