Skip to content

Commit

Permalink
old game, small icon and description
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainSqrBeard committed Aug 6, 2023
1 parent 5cede7d commit c5794fc
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
Binary file modified Resources/Images/icon.ico
Binary file not shown.
Binary file modified Resources/Scenes/Level1.scn
Binary file not shown.
25 changes: 23 additions & 2 deletions Resources/Scenes/MainMenu.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=10 format=3 uid="uid://dtqvnt0hbokx0"]
[gd_scene load_steps=11 format=3 uid="uid://dtqvnt0hbokx0"]

[ext_resource type="PackedScene" uid="uid://c8n7sxg0ctaca" path="res://Resources/Objects/Button.tscn" id="1_3434k"]
[ext_resource type="FontFile" uid="uid://blsiii5e8afcm" path="res://Resources/Fonts/ComicSansMSPixel.ttf" id="1_q41n4"]
Expand All @@ -7,6 +7,7 @@
[ext_resource type="Script" path="res://Resources/Scripts/Controllers/SceneController.cs" id="4_alm0o"]
[ext_resource type="Script" path="res://Resources/Scripts/Controllers/SpeedrunModeController.cs" id="6_3ey5q"]
[ext_resource type="Script" path="res://Resources/Scripts/Action/GameStopper.cs" id="6_q3rpf"]
[ext_resource type="Script" path="res://Resources/Scripts/Action/Shell.cs" id="6_u5ugj"]

[sub_resource type="LabelSettings" id="LabelSettings_0mbtl"]
font = ExtResource("1_q41n4")
Expand Down Expand Up @@ -115,12 +116,30 @@ offset_right = 341.0
offset_bottom = -75.0

[node name="Label" parent="PlayButton" index="0"]
text = "Play"
text = "New Game"

[node name="SceneController" type="Node" parent="PlayButton"]
script = ExtResource("4_alm0o")
ScenePath = "res://Resources/Scenes/Level1.scn"

[node name="OldGameButton" parent="." instance=ExtResource("1_3434k")]
layout_mode = 2
anchors_preset = 0
anchor_top = 0.5
anchor_right = 0.0
anchor_bottom = 0.5
offset_left = 873.0
offset_top = 174.0
offset_right = 1132.0
offset_bottom = 304.0

[node name="Label" parent="OldGameButton" index="0"]
text = "Old Game"

[node name="Shell" type="Node" parent="OldGameButton"]
script = ExtResource("6_u5ugj")
Link = "https://www.maxthetomas.ru/games/not-horse-plinko"

[node name="SpeedrunButton" parent="." instance=ExtResource("1_3434k")]
layout_mode = 1
anchors_preset = -1
Expand Down Expand Up @@ -160,10 +179,12 @@ text = "Exit"
script = ExtResource("6_q3rpf")

[connection signal="pressed" from="PlayButton" to="PlayButton/SceneController" method="ChangeScene"]
[connection signal="pressed" from="OldGameButton" to="OldGameButton/Shell" method="Activate"]
[connection signal="button_down" from="SpeedrunButton" to="SpeedrunButton/SpeedrunModeController" method="Enable"]
[connection signal="button_up" from="SpeedrunButton" to="SpeedrunButton/SpeedrunModeController" method="Disable"]
[connection signal="pressed" from="ExitButton" to="ExitButton/GameStopper" method="Stop"]

[editable path="PlayButton"]
[editable path="OldGameButton"]
[editable path="SpeedrunButton"]
[editable path="ExitButton"]
18 changes: 18 additions & 0 deletions Resources/Scripts/Action/Shell.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Godot;

/// <summary>
/// This class provides functionality to open a URL or file.
/// </summary>
public partial class Shell : Node
{

[Export] public string Link;

/// <summary>
/// Opens the specified URL or file.
/// </summary>
private void Activate()
{
OS.ShellOpen(Link);
}
}
1 change: 1 addition & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config_version=5
[application]

config/name="Not Horse Plinko 2D"
config/description="A game on Godot about not horse plinko in 2D"
run/main_scene="res://Resources/Scenes/MainMenu.tscn"
config/features=PackedStringArray("4.0", "C#", "Forward Plus")
boot_splash/bg_color=Color(0, 0, 0, 1)
Expand Down

0 comments on commit c5794fc

Please sign in to comment.