text animation
This commit is contained in:
parent
96ee7bfe2e
commit
23891e339d
4 changed files with 39 additions and 2 deletions
16
Game name.gd
Normal file
16
Game name.gd
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
extends Label
|
||||||
|
|
||||||
|
var frequency = 5
|
||||||
|
var amplitude = 550
|
||||||
|
var time = 0
|
||||||
|
# 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):
|
||||||
|
#pass
|
||||||
|
time += delta
|
||||||
|
var movement = cos(time*frequency)*amplitude
|
||||||
|
position.y+=movement * delta
|
BIN
alien-bulls.mp3
Normal file
BIN
alien-bulls.mp3
Normal file
Binary file not shown.
19
alien-bulls.mp3.import
Normal file
19
alien-bulls.mp3.import
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://dawltfnifxgiq"
|
||||||
|
path="res://.godot/imported/alien-bulls.mp3-8618ad5650cb5e91981b0ee087ac4c40.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://alien-bulls.mp3"
|
||||||
|
dest_files=["res://.godot/imported/alien-bulls.mp3-8618ad5650cb5e91981b0ee087ac4c40.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=true
|
||||||
|
loop_offset=13.0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
|
@ -1,6 +1,7 @@
|
||||||
[gd_scene load_steps=2 format=3 uid="uid://p010jtursgo2"]
|
[gd_scene load_steps=3 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"]
|
||||||
|
|
||||||
[node name="title" type="Control"]
|
[node name="title" type="Control"]
|
||||||
layout_mode = 3
|
layout_mode = 3
|
||||||
|
@ -11,7 +12,7 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
script = ExtResource("1_fbo7u")
|
script = ExtResource("1_fbo7u")
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="."]
|
[node name="Game name" type="Label" parent="."]
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = 108.0
|
offset_left = 108.0
|
||||||
offset_top = 271.0
|
offset_top = 271.0
|
||||||
|
@ -19,3 +20,4 @@ offset_right = 269.0
|
||||||
offset_bottom = 297.0
|
offset_bottom = 297.0
|
||||||
scale = Vector2(6.38131, 6.11486)
|
scale = Vector2(6.38131, 6.11486)
|
||||||
text = "The Red Robot Radio"
|
text = "The Red Robot Radio"
|
||||||
|
script = ExtResource("2_bbb0f")
|
||||||
|
|
Loading…
Add table
Reference in a new issue