This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rectangular/player/player.tscn

55 lines
1.6 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://ebb4pfxklatj"]
[ext_resource type="Script" path="res://player/player.gd" id="1_fob34"]
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_v306m"]
particle_flag_disable_z = true
emission_shape_scale = Vector3(640, 300, 1)
emission_shape = 3
emission_box_extents = Vector3(1, 1, 1)
direction = Vector3(0, 1, 0)
spread = 0.0
initial_velocity_min = 300.0
initial_velocity_max = 400.0
gravity = Vector3(0, 0, 0)
scale_min = 2.0
scale_max = 2.5
color = Color(1, 1, 1, 0.75)
collision_mode = 2
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7cq61"]
size = Vector2(16, 16)
[node name="Player" type="CharacterBody2D"]
floor_block_on_wall = false
script = ExtResource("1_fob34")
[node name="Camera2D" type="Camera2D" parent="."]
process_callback = 0
position_smoothing_enabled = true
drag_horizontal_enabled = true
drag_vertical_enabled = true
[node name="Rain" type="GPUParticles2D" parent="Camera2D"]
position = Vector2(0, -640)
amount = 2048
amount_ratio = 0.5
process_material = SubResource("ParticleProcessMaterial_v306m")
lifetime = 3.0
preprocess = 5.0
fixed_fps = 0
visibility_rect = Rect2(-512, 320, 1024, 640)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_7cq61")
[node name="RayCastUp1" type="RayCast2D" parent="."]
position = Vector2(-4, 0)
target_position = Vector2(0, -8.1)
[node name="RayCastUp2" type="RayCast2D" parent="."]
position = Vector2(4, 0)
target_position = Vector2(0, -8.1)
[node name="Polygon2D" type="Polygon2D" parent="."]
polygon = PackedVector2Array(-9, -9, -9, 9, 9, 9, 9, -9)