better intro
This commit is contained in:
parent
b69f458330
commit
0f936568e2
2 changed files with 21 additions and 1 deletions
12
player.gd
Normal file
12
player.gd
Normal file
|
@ -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
|
10
title.tscn
10
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://title.gd" id="1_fbo7u"]
|
||||||
[ext_resource type="Script" path="res://Game name.gd" id="2_bbb0f"]
|
[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://fps.gd" id="3_tsoef"]
|
||||||
[ext_resource type="Script" path="res://start.gd" id="4_cc41w"]
|
[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="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"]
|
[node name="title" type="Control"]
|
||||||
layout_mode = 3
|
layout_mode = 3
|
||||||
|
@ -26,6 +28,12 @@ stream = ExtResource("2_bhkux")
|
||||||
autoplay = true
|
autoplay = true
|
||||||
script = ExtResource("3_bn1r3")
|
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="."]
|
[node name="fps" type="Label" parent="."]
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_right = 40.0
|
offset_right = 40.0
|
||||||
|
|
Loading…
Reference in a new issue