Updated levels and added map selection logic
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
class_name Drone
|
||||
|
||||
extends RigidBody3D
|
||||
|
||||
# Local coords to axis
|
||||
@@ -21,7 +23,6 @@ extends RigidBody3D
|
||||
@export var flip_over_detection_ray: RayCast3D
|
||||
@export var flip_over_timer: Timer
|
||||
@export var input_suggestion_label: Label
|
||||
@export var reset_point: Marker3D
|
||||
|
||||
var animation_initalized: bool = false
|
||||
var using_joy_controller: bool = true
|
||||
@@ -86,7 +87,7 @@ func _physics_process(_delta): # Still needed for other physics
|
||||
|
||||
func _input(_event):
|
||||
if Input.is_action_just_pressed("reset_drone"):
|
||||
global_position = reset_point.global_position
|
||||
global_position = GameManager.reset_point.global_position
|
||||
global_rotation = Vector3.ZERO
|
||||
linear_velocity = Vector3.ZERO
|
||||
angular_velocity = Vector3.ZERO
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=105 format=4 uid="uid://dwvmna8qc0vb4"]
|
||||
[gd_scene load_steps=107 format=4 uid="uid://dwvmna8qc0vb4"]
|
||||
|
||||
[ext_resource type="Script" path="res://core/drone/drone.gd" id="1_de83i"]
|
||||
[ext_resource type="Material" uid="uid://d0gkxc5fuh354" path="res://core/resources/materials/black_carbon_fiber.tres" id="2_phv8m"]
|
||||
@@ -10,6 +10,7 @@
|
||||
[ext_resource type="Material" uid="uid://uy2txkh3slat" path="res://core/resources/materials/pink_motor.tres" id="6_3gtkc"]
|
||||
[ext_resource type="Script" path="res://core/scripts/camera_3d.gd" id="9_8eblv"]
|
||||
[ext_resource type="Shader" path="res://core/resources/shaders/vhs.gdshader" id="9_66bpw"]
|
||||
[ext_resource type="Shader" path="res://core/resources/shaders/fisheye.gdshader" id="10_5gurm"]
|
||||
[ext_resource type="Texture2D" uid="uid://bv7klk2tmhya2" path="res://assets/textures/rgba-noise-medium.png" id="10_ylv8e"]
|
||||
[ext_resource type="PackedScene" uid="uid://c6w6axh4l4w8d" path="res://core/tools/fps_label.tscn" id="12_u7iaa"]
|
||||
|
||||
@@ -1074,6 +1075,10 @@ _surfaces = [{
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_oy56j")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0hj7y"]
|
||||
shader = ExtResource("10_5gurm")
|
||||
shader_parameter/fisheye_strength = 1.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pkxv0"]
|
||||
shader = ExtResource("9_66bpw")
|
||||
shader_parameter/curvature = 0.0
|
||||
@@ -1327,6 +1332,23 @@ script = ExtResource("9_8eblv")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="VisualComponets/CameraPivot/Camera3D"]
|
||||
|
||||
[node name="FisheyeVFX" type="Control" parent="VisualComponets/CameraPivot/Camera3D/CanvasLayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="VisualComponets/CameraPivot/Camera3D/CanvasLayer/FisheyeVFX"]
|
||||
material = SubResource("ShaderMaterial_0hj7y")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VHSVFX" type="Control" parent="VisualComponets/CameraPivot/Camera3D/CanvasLayer"]
|
||||
visible = false
|
||||
layout_mode = 3
|
||||
|
||||
Reference in New Issue
Block a user