diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-07-23 17:15:46 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-07-23 17:15:46 -0400 |
commit | 6c3e080ad94dcbd3a3db678dd55da51cde869335 (patch) | |
tree | cb1f97786cc4c088095971434d7ebd8c1d9518b6 /Main.tscn | |
parent | 0a153dbfe61d04ff0f87cd0a35f0185c98116aba (diff) | |
download | chicken-chaser-gd-6c3e080ad94dcbd3a3db678dd55da51cde869335.tar.gz chicken-chaser-gd-6c3e080ad94dcbd3a3db678dd55da51cde869335.zip |
Add FPS Counter
Diffstat (limited to 'Main.tscn')
-rw-r--r-- | Main.tscn | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,10 +1,11 @@ -[gd_scene load_steps=12 format=2] +[gd_scene load_steps=14 format=2] [ext_resource path="res://Main.gd" type="Script" id=1] [ext_resource path="res://Ground.png" type="Texture" id=2] [ext_resource path="res://Player.tscn" type="PackedScene" id=3] [ext_resource path="res://Chicken.tscn" type="PackedScene" id=4] [ext_resource path="res://fence.tres" type="Material" id=5] +[ext_resource path="res://FPS Counter.gd" type="Script" id=6] [sub_resource type="BoxShape" id=1] extents = Vector3( 25, 1, 25 ) @@ -25,6 +26,9 @@ extents = Vector3( 5, 1, 0.05 ) [sub_resource type="BoxShape" id=6] extents = Vector3( 0.05, 1, 5 ) +[sub_resource type="Theme" id=8] +Label/colors/font_color = Color( 0.00784314, 0.0392157, 0.811765, 1 ) + [node name="Main" type="Node"] script = ExtResource( 1 ) chicken = ExtResource( 4 ) @@ -87,13 +91,22 @@ transform = Transform( 1, 0, 0, 0, 0.968718, 0.248166, 0, -0.248166, 0.968718, 0 [node name="UI" type="Control" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 +theme = SubResource( 8 ) [node name="Controls" type="Label" parent="UI"] margin_right = 166.0 margin_bottom = 82.0 -custom_colors/font_color = Color( 0.00784314, 0.0392157, 0.811765, 1 ) text = "move: WASD or Left Stick look: Arrows or Right Stick up: Space or Right Trigger down: Ctrl or Left Trigger Release Cursor: Esc" + +[node name="FPS Counter" type="Label" parent="UI"] +anchor_left = 1.0 +anchor_right = 1.0 +margin_left = -114.0 +margin_bottom = 14.0 +text = "FPS: 10000000.00" +align = 2 +script = ExtResource( 6 ) |