-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
12 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
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,12 @@ | ||
extends Label | ||
|
||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
text = Engine.get_license_text() | ||
|
||
|
||
func _unhandled_input(event): | ||
if event is InputEventKey: | ||
if event.pressed and event.keycode == KEY_L: | ||
visible = !visible |
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,24 +1,32 @@ | ||
[gd_scene load_steps=4 format=3 uid="uid://dss4vqph6ixgk"] | ||
[gd_scene load_steps=5 format=3 uid="uid://dss4vqph6ixgk"] | ||
|
||
[ext_resource type="PackedScene" uid="uid://djahqxlcbinjp" path="res://board.tscn" id="1_i8xh8"] | ||
[ext_resource type="Script" path="res://FPSCounter.gd" id="2_avnxl"] | ||
[ext_resource type="Script" path="res://License.gd" id="2_qsvb4"] | ||
[ext_resource type="Script" path="res://Camera2D.gd" id="2_wwmnb"] | ||
|
||
[node name="Main" type="Node"] | ||
|
||
[node name="CanvasLayer" type="CanvasLayer" parent="."] | ||
|
||
[node name="FPSCounter" type="Label" parent="CanvasLayer"] | ||
offset_left = 12.0 | ||
offset_top = 8.0 | ||
offset_right = 52.0 | ||
offset_bottom = 31.0 | ||
script = ExtResource("2_avnxl") | ||
|
||
[node name="License" type="Label" parent="CanvasLayer"] | ||
offset_right = 40.0 | ||
offset_bottom = 23.0 | ||
script = ExtResource("2_qsvb4") | ||
|
||
[node name="Camera2D" type="Camera2D" parent="."] | ||
offset = Vector2(500, 300) | ||
script = ExtResource("2_wwmnb") | ||
speed = 500 | ||
zoom_speed = 0.5 | ||
min_zoom = 1.0 | ||
|
||
[node name="FPSCounter" type="Label" parent="Camera2D"] | ||
offset_left = -41.0 | ||
offset_top = -24.0 | ||
offset_right = -1.0 | ||
offset_bottom = -1.0 | ||
script = ExtResource("2_avnxl") | ||
|
||
[node name="Board" parent="." instance=ExtResource("1_i8xh8")] | ||
columns = 100 |