From 0f936568e26ba467a80bf81181796404a0492f7b Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Mon, 18 Sep 2023 09:23:52 -0700 Subject: [PATCH] better intro --- player.gd | 12 ++++++++++++ title.tscn | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 player.gd diff --git a/player.gd b/player.gd new file mode 100644 index 0000000..4098686 --- /dev/null +++ b/player.gd @@ -0,0 +1,12 @@ +extends Sprite2D + +var angular_speed = PI +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + rotation += angular_speed * delta + #pass diff --git a/title.tscn b/title.tscn index 383d1ad..db86a7b 100644 --- a/title.tscn +++ b/title.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://p010jtursgo2"] +[gd_scene load_steps=10 format=3 uid="uid://p010jtursgo2"] [ext_resource type="Script" path="res://title.gd" id="1_fbo7u"] [ext_resource type="Script" path="res://Game name.gd" id="2_bbb0f"] @@ -7,6 +7,8 @@ [ext_resource type="Script" path="res://fps.gd" id="3_tsoef"] [ext_resource type="Script" path="res://start.gd" id="4_cc41w"] [ext_resource type="Script" path="res://exit.gd" id="5_scoec"] +[ext_resource type="Texture2D" uid="uid://cpd31c6o18rmh" path="res://sprites/ss.png" id="8_tne35"] +[ext_resource type="Script" path="res://player.gd" id="9_7e625"] [node name="title" type="Control"] layout_mode = 3 @@ -26,6 +28,12 @@ stream = ExtResource("2_bhkux") autoplay = true script = ExtResource("3_bn1r3") +[node name="player" type="Sprite2D" parent="."] +position = Vector2(631, 499) +scale = Vector2(0.3, 0.3) +texture = ExtResource("8_tne35") +script = ExtResource("9_7e625") + [node name="fps" type="Label" parent="."] layout_mode = 0 offset_right = 40.0