Lil guy
This commit is contained in:
1 parent
9a2e3d8b58
commit
fa1050d017
7 files changed
+35
-5
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 454 B |
@@ -40,4 +40,4 @@ process/normal_map_invert_y=false
|
|||||||
process/hdr_as_srgb=false
|
process/hdr_as_srgb=false
|
||||||
process/hdr_clamp_exposure=false
|
process/hdr_clamp_exposure=false
|
||||||
process/size_limit=0
|
process/size_limit=0
|
||||||
detect_3d/compress_to=1
|
detect_3d/compress_to=0
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
extends RichTextLabel
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready() -> void:
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
text = "FPS: " + str(Engine.get_frames_per_second())
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://bds4m5we8nwe3
|
||||||
@@ -27,6 +27,11 @@ func _process(delta: float) -> void:
|
|||||||
#velocity.x = 0
|
#velocity.x = 0
|
||||||
|
|
||||||
var direction = Input.get_axis("move_left","move_right")
|
var direction = Input.get_axis("move_left","move_right")
|
||||||
|
if direction < 0:
|
||||||
|
$Sprite2D.flip_h = true
|
||||||
|
elif direction > 0:
|
||||||
|
$Sprite2D.flip_h = false
|
||||||
|
|
||||||
if direction:
|
if direction:
|
||||||
velocity.x = direction * SPEED
|
velocity.x = direction * SPEED
|
||||||
else:
|
else:
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ size = Vector2(16, 16)
|
|||||||
script = ExtResource("1_sy00s")
|
script = ExtResource("1_sy00s")
|
||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=962368438]
|
[node name="Camera2D" type="Camera2D" parent="." unique_id=962368438]
|
||||||
zoom = Vector2(1.2, 1.2)
|
zoom = Vector2(1.35, 1.35)
|
||||||
position_smoothing_enabled = true
|
position_smoothing_enabled = true
|
||||||
position_smoothing_speed = 0.5
|
position_smoothing_speed = 0.5
|
||||||
|
|
||||||
|
|||||||
+18
-3
@@ -3,6 +3,7 @@
|
|||||||
[ext_resource type="Script" uid="uid://boovn4st1uq41" path="res://rich_text_label.gd" id="1_036b0"]
|
[ext_resource type="Script" uid="uid://boovn4st1uq41" path="res://rich_text_label.gd" id="1_036b0"]
|
||||||
[ext_resource type="PackedScene" uid="uid://pmnwck5v0ntm" path="res://player_2d.tscn" id="1_aqk2v"]
|
[ext_resource type="PackedScene" uid="uid://pmnwck5v0ntm" path="res://player_2d.tscn" id="1_aqk2v"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ckqable762x8v" path="res://block.tscn" id="2_036b0"]
|
[ext_resource type="PackedScene" uid="uid://ckqable762x8v" path="res://block.tscn" id="2_036b0"]
|
||||||
|
[ext_resource type="Script" uid="uid://bds4m5we8nwe3" path="res://fps_label.gd" id="2_dwbse"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dx4pfup3sbk0f" path="res://long_block.tscn" id="3_dwbse"]
|
[ext_resource type="PackedScene" uid="uid://dx4pfup3sbk0f" path="res://long_block.tscn" id="3_dwbse"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bos6oh7nwyeca" path="res://vertical_long_block.tscn" id="4_pkg7o"]
|
[ext_resource type="PackedScene" uid="uid://bos6oh7nwyeca" path="res://vertical_long_block.tscn" id="4_pkg7o"]
|
||||||
|
|
||||||
@@ -12,13 +13,27 @@ process_mode = 3
|
|||||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1982310971]
|
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1982310971]
|
||||||
|
|
||||||
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer" unique_id=63102975]
|
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer" unique_id=63102975]
|
||||||
offset_left = 5.0
|
anchors_preset = 15
|
||||||
offset_right = 130.0
|
anchor_right = 1.0
|
||||||
offset_bottom = 40.0
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
bbcode_enabled = true
|
bbcode_enabled = true
|
||||||
text = "FALL TIMER:"
|
text = "FALL TIMER:"
|
||||||
script = ExtResource("1_036b0")
|
script = ExtResource("1_036b0")
|
||||||
|
|
||||||
|
[node name="RichTextLabel2" type="RichTextLabel" parent="CanvasLayer" unique_id=1423365940]
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_top = 22.0
|
||||||
|
offset_bottom = 22.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
bbcode_enabled = true
|
||||||
|
text = "FPS:"
|
||||||
|
script = ExtResource("2_dwbse")
|
||||||
|
|
||||||
[node name="Player2D" parent="." unique_id=889851478 instance=ExtResource("1_aqk2v")]
|
[node name="Player2D" parent="." unique_id=889851478 instance=ExtResource("1_aqk2v")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
position = Vector2(55, 59)
|
position = Vector2(55, 59)
|
||||||
|
|||||||
Reference in new issue
Block a user