-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ARKANYOTA/steam-api
Steam API
- Loading branch information
Showing
36 changed files
with
410 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[configuration] | ||
entry_symbol = "godotsteam_init" | ||
compatibility_minimum = "4.1" | ||
|
||
[libraries] | ||
macos.debug = "osx/libgodotsteam.macos.template_debug.framework" | ||
macos.release = "osx/libgodotsteam.macos.template_release.framework" | ||
windows.debug.x86_64 = "win64/libgodotsteam.windows.template_debug.x86_64.dll" | ||
windows.debug.x86_32 = "win32/libgodotsteam.windows.template_debug.x86_32.dll" | ||
windows.release.x86_64 = "win64/libgodotsteam.windows.template_release.x86_64.dll" | ||
windows.release.x86_32 = "win32/libgodotsteam.windows.template_release.x86_32.dll" | ||
linux.debug.x86_64 = "linux64/libgodotsteam.linux.template_debug.x86_64.so" | ||
linux.debug.x86_32 = "linux32/libgodotsteam.linux.template_debug.x86_32.so" | ||
linux.release.x86_64 = "linux64/libgodotsteam.linux.template_release.x86_64.so" | ||
linux.release.x86_32 = "linux32/libgodotsteam.linux.template_release.x86_32.so" | ||
|
||
[dependencies] | ||
windows.x86_64 = { "win64/steam_api64.dll": "" } | ||
windows.x86_32 = { "win32/steam_api.dll": "" } | ||
linux.x86_64 = { "linux64/libsteam_api.so": "" } | ||
linux.x86_32 = { "linux32/libsteam_api.so": "" } |
Binary file added
BIN
+4.05 MB
src/addons/godotsteam/linux32/libgodotsteam.linux.template_debug.x86_32.so
Binary file not shown.
Binary file added
BIN
+3.93 MB
src/addons/godotsteam/linux32/libgodotsteam.linux.template_release.x86_32.so
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.76 MB
src/addons/godotsteam/linux64/libgodotsteam.linux.template_debug.x86_64.so
Binary file not shown.
Binary file added
BIN
+3.67 MB
src/addons/godotsteam/linux64/libgodotsteam.linux.template_release.x86_64.so
Binary file not shown.
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
src/addons/godotsteam/osx/libgodotsteam.macos.template_debug.framework/Resources/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleExecutable</key> | ||
<string>libgodotsteam.debug</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>org.coaguco.godotsteam</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>libgodotsteam.debug</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>4.5.2</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>MacOSX</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>4.5.2</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.12</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+5.72 MB
...steam/osx/libgodotsteam.macos.template_debug.framework/libgodotsteam.macos.template_debug
Binary file not shown.
Binary file added
BIN
+596 KB
src/addons/godotsteam/osx/libgodotsteam.macos.template_debug.framework/libsteam_api.dylib
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
...addons/godotsteam/osx/libgodotsteam.macos.template_release.framework/Resources/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleExecutable</key> | ||
<string>libgodotsteam</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>org.coaguco.godotsteam</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>libgodotsteam</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>4.5.2</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>MacOSX</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>4.5.2</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.12</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+5.61 MB
...m/osx/libgodotsteam.macos.template_release.framework/libgodotsteam.macos.template_release
Binary file not shown.
Binary file added
BIN
+596 KB
src/addons/godotsteam/osx/libgodotsteam.macos.template_release.framework/libsteam_api.dylib
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.06 MB
src/addons/godotsteam/win32/libgodotsteam.windows.template_debug.x86_32.dll
Binary file not shown.
Binary file added
BIN
+1.68 MB
src/addons/godotsteam/win32/libgodotsteam.windows.template_release.x86_32.dll
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.65 MB
src/addons/godotsteam/win64/libgodotsteam.windows.template_debug.x86_64.dll
Binary file not shown.
Binary file added
BIN
+2.13 MB
src/addons/godotsteam/win64/libgodotsteam.windows.template_release.x86_64.dll
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.65 MB
src/addons/godotsteam/win64/~libgodotsteam.windows.template_debug.x86_64.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
[gd_resource type="LabelSettings" load_steps=2 format=3 uid="uid://b5nxegdlm352f"] | ||
|
||
[ext_resource type="FontFile" uid="uid://djmgql28si3cf" path="res://assets/fonts/font_normal.ttf" id="1_kvt47"] | ||
[ext_resource type="FontFile" uid="uid://cjyup1ooil314" path="res://assets/fonts/font_normal.ttf" id="1_kvt47"] | ||
|
||
[resource] | ||
font = ExtResource("1_kvt47") | ||
font_size = 10 | ||
font_color = Color(1, 0, 0, 1) | ||
font_size = 4 | ||
outline_size = 2 | ||
outline_color = Color(0, 0, 0, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://clch7rqviicn6"] | ||
|
||
[ext_resource type="Script" path="res://scripts/achievements/achievement_manager.gd" id="1_m7vyf"] | ||
|
||
[node name="AchievementManager" type="Node"] | ||
script = ExtResource("1_m7vyf") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://faky8wdeat6a"] | ||
|
||
[ext_resource type="PackedScene" uid="uid://clch7rqviicn6" path="res://scenes/achievements/achievement_manager.tscn" id="1_cw8f3"] | ||
[ext_resource type="Script" path="res://scripts/achievements/achievement_manager_steam.gd" id="2_ifq44"] | ||
|
||
[node name="AchievementManagerSteam" instance=ExtResource("1_cw8f3")] | ||
script = ExtResource("2_ifq44") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://c631vn0vdu25v"] | ||
|
||
[ext_resource type="Script" path="res://scripts/integration/steam_interface.gd" id="1_i0mro"] | ||
|
||
[node name="SteamInterface" type="Node"] | ||
process_mode = 3 | ||
script = ExtResource("1_i0mro") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,76 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://do8khq28rqe3n"] | ||
[gd_scene load_steps=5 format=3 uid="uid://do8khq28rqe3n"] | ||
|
||
[ext_resource type="LabelSettings" uid="uid://cl1yg37xye2ku" path="res://assets/resources/label_settings.tres" id="1_voncg"] | ||
[ext_resource type="PackedScene" uid="uid://wmysu03x830w" path="res://scenes/levels/visuals/city_visuals.tscn" id="1_uhilt"] | ||
[ext_resource type="Texture2D" uid="uid://b3l0i7o6emx6i" path="res://assets/images/logo.png" id="2_5nfmw"] | ||
[ext_resource type="FontFile" uid="uid://cjyup1ooil314" path="res://assets/fonts/font_normal.ttf" id="3_mfx0u"] | ||
|
||
[sub_resource type="LabelSettings" id="LabelSettings_7ciee"] | ||
font = ExtResource("3_mfx0u") | ||
font_size = 8 | ||
outline_size = 2 | ||
outline_color = Color(0, 0, 0, 1) | ||
|
||
[node name="RedirectPageToOurGames" type="Node2D"] | ||
|
||
[node name="Control" type="Control" parent="."] | ||
[node name="CityVisuals" parent="." instance=ExtResource("1_uhilt")] | ||
|
||
[node name="CanvasLayer" type="CanvasLayer" parent="."] | ||
|
||
[node name="Control" type="Control" parent="CanvasLayer"] | ||
layout_mode = 3 | ||
anchors_preset = 0 | ||
offset_right = 40.0 | ||
offset_bottom = 40.0 | ||
|
||
[node name="Label" type="Label" parent="Control"] | ||
layout_mode = 0 | ||
offset_left = 19.0 | ||
offset_top = 23.0 | ||
offset_right = 220.0 | ||
offset_bottom = 80.0 | ||
text = "Hey man, you are on an unknown URL. | ||
And end the demo for an unknown URL. | ||
If you think this is a mistake, | ||
please report it to us. | ||
Otherwise: Please go to our URL:" | ||
label_settings = ExtResource("1_voncg") | ||
|
||
[node name="Yolwoocle" type="LinkButton" parent="Control"] | ||
offset_left = 77.0 | ||
offset_top = 80.0 | ||
offset_right = 155.0 | ||
offset_bottom = 103.0 | ||
text = "Yolwoocle" | ||
uri = "https://yolwoocle.itch.io/globs" | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
|
||
[node name="Arkanyota" type="LinkButton" parent="Control"] | ||
offset_left = 77.0 | ||
offset_top = 99.0 | ||
offset_right = 158.0 | ||
offset_bottom = 122.0 | ||
text = "ArkanYota" | ||
uri = "https://arkanyota.github.io/gmtk2024" | ||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control"] | ||
layout_mode = 1 | ||
anchors_preset = 5 | ||
anchor_left = 0.5 | ||
anchor_right = 0.5 | ||
offset_left = -63.0 | ||
offset_top = 11.0 | ||
offset_right = 63.0 | ||
offset_bottom = 53.0 | ||
grow_horizontal = 2 | ||
texture = ExtResource("2_5nfmw") | ||
|
||
[node name="Label" type="Label" parent="CanvasLayer/Control"] | ||
layout_mode = 1 | ||
anchors_preset = 8 | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
offset_left = -121.0 | ||
offset_top = -4.5 | ||
offset_right = 123.0 | ||
offset_bottom = 31.5 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
text = "This is the end of the demo | ||
on this website. | ||
You can continue playing by clicking here:" | ||
label_settings = SubResource("LabelSettings_7ciee") | ||
horizontal_alignment = 1 | ||
|
||
[node name="Yolwoocle" type="LinkButton" parent="CanvasLayer/Control"] | ||
layout_mode = 1 | ||
anchors_preset = 8 | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
offset_left = -35.0 | ||
offset_top = 38.5 | ||
offset_right = 33.0 | ||
offset_bottom = 58.5 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
theme_override_constants/outline_size = 3 | ||
theme_override_constants/underline_spacing = 5 | ||
theme_override_fonts/font = ExtResource("3_mfx0u") | ||
theme_override_font_sizes/font_size = 0 | ||
text = "itch.io" | ||
uri = "https://yolwoocle.itch.io/globs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
extends Node | ||
class_name AchievementManager | ||
|
||
var achievements: Dictionary = { | ||
"ACH_TEST_01": {achieved = false, hidden = false}, | ||
} | ||
|
||
func _init(): | ||
pass | ||
|
||
func achievement_exists(achievement_name: String) -> bool: | ||
return achievements.has(achievement_name) | ||
|
||
func grant(achievement_name: String) -> bool: | ||
return false | ||
|
||
func revoke(achievement_name: String) -> bool: | ||
return false | ||
|
||
func revoke_all() -> void: | ||
for ach in achievements: | ||
revoke(ach) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
extends AchievementManager | ||
|
||
func _ready(): | ||
pass | ||
|
||
|
||
func grant(achievement_name: String) -> bool: | ||
if not GameManager.steam_interface: | ||
return false | ||
if not achievement_exists(achievement_name): | ||
return false | ||
|
||
return GameManager.steam_interface.grant_achievement("ACH_TEST_01") | ||
|
||
func revoke(achievement_name: String) -> bool: | ||
if not GameManager.steam_interface: | ||
return false | ||
if not achievement_exists(achievement_name): | ||
return false | ||
|
||
return GameManager.steam_interface.revoke_achievement(achievement_name) |
Oops, something went wrong.