stickycamera and command not found mesage

This commit is contained in:
2023-02-20 14:58:01 +01:00
parent 9d9d37e173
commit f0f484268b
6 changed files with 138 additions and 84 deletions

View File

@@ -1,12 +1,12 @@
[gd_scene load_steps=2 format=3 uid="uid://bt4pohi6srcvi"]
[gd_scene load_steps=2 format=3 uid="uid://dlkpivjpbxnlg"]
[ext_resource type="Script" path="res://src/scene-scripts/console.cs" id="1_c6bre"]
[ext_resource type="Script" path="res://src/scene-scripts/console/console.cs" id="1_gdt1r"]
[node name="popup_panel" type="PopupPanel"]
transparent_bg = true
size = Vector2i(1537, 193)
visible = true
script = ExtResource("1_c6bre")
script = ExtResource("1_gdt1r")
[node name="v_box_container" type="VBoxContainer" parent="."]
offset_left = 4.0
@@ -17,17 +17,20 @@ offset_bottom = 189.0
[node name="rich_text_label" type="RichTextLabel" parent="v_box_container"]
custom_minimum_size = Vector2(0, 150)
layout_mode = 2
focus_mode = 2
bbcode_enabled = true
text = "[color=red][b]USING CHEATS MAY DISABLE ACHIEVEMENTS[/b][/color]"
text = "[color=red][b]USING CHEATS MAY PAUSE ACHIEVEMENTS WHILE THE CHEATS ARE ACTIVE[/b][/color]
"
scroll_following = true
selection_enabled = true
[node name="line_edit" type="LineEdit" parent="v_box_container"]
layout_mode = 2
placeholder_text = "Type in cheat or command. Use \"help\" for help."
max_length = 200
context_menu_enabled = false
clear_button_enabled = true
flat = true
draw_control_chars = true
select_all_on_focus = true
caret_blink = true
caret_blink_interval = 0.5

View File

@@ -45,7 +45,7 @@ metadata/_edit_lock_ = true
[node name="player" parent="." instance=ExtResource("2_0skrb")]
playerName = "Yannik"
[node name="camera_2d" parent="player" index="2"]
[node name="main_cam" parent="player" index="2"]
limit_left = -1791
limit_top = -1023
limit_right = 1791

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://src/scene-scripts/player.cs" id="1_qehox"]
[ext_resource type="Texture2D" uid="uid://olceowuycu8c" path="res://assets/textures/debug/dummy-player-atlas.png" id="2_yu1q5"]
[ext_resource type="PackedScene" uid="uid://bkm7365u1mm3o" path="res://scenes/gui/dialog_bubble.tscn" id="3_8f573"]
[ext_resource type="PackedScene" uid="uid://bt4pohi6srcvi" path="res://scenes/gui/console.tscn" id="4_kw3hh"]
[ext_resource type="PackedScene" uid="uid://dlkpivjpbxnlg" path="res://scenes/gui/console.tscn" id="4_kw3hh"]
[sub_resource type="AtlasTexture" id="AtlasTexture_tokqm"]
atlas = ExtResource("2_yu1q5")
@@ -87,7 +87,7 @@ animations = [{
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_38v5o"]
radius = 7.99997
height = 33.9946
height = 32.0
[node name="player" type="CharacterBody2D"]
process_mode = 1
@@ -114,9 +114,8 @@ sprite_frames = SubResource("SpriteFrames_2x1cy")
animation = &"move_down"
metadata/_edit_lock_ = true
[node name="camera_2d" type="Camera2D" parent="."]
[node name="main_cam" type="Camera2D" parent="."]
zoom = Vector2(0.8, 0.8)
process_callback = 0
position_smoothing_enabled = true
position_smoothing_speed = 3.0
drag_horizontal_enabled = true
@@ -128,6 +127,10 @@ drag_bottom_margin = 0.15
editor_draw_drag_margin = true
metadata/_edit_lock_ = true
[node name="cheat_cam" type="Camera2D" parent="."]
zoom = Vector2(0.8, 0.8)
metadata/_edit_lock_ = true
[node name="audio_listener_2d" type="AudioListener2D" parent="."]
current = true
metadata/_edit_lock_ = true