gaming
This commit is contained in:
parent
57eeede288
commit
57f147236a
13 changed files with 227 additions and 24 deletions
58
Prefabs/lander.tscn
Normal file
58
Prefabs/lander.tscn
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://crrbht7mwhgyc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cd54ktlkabbla" path="res://ship.gd" id="1_do8h0"]
|
||||
[ext_resource type="Texture2D" uid="uid://bd5oswedqnenh" path="res://Sprites/LanderArt.png" id="2_do8h0"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ykrsh"]
|
||||
size = Vector2(8, 2)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_do8h0"]
|
||||
offsets = PackedFloat32Array(0, 0.0886699, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0)
|
||||
|
||||
[node name="Lander" type="RigidBody2D" node_paths=PackedStringArray("particles_l", "particles_r")]
|
||||
gravity_scale = 0.2
|
||||
script = ExtResource("1_do8h0")
|
||||
thrust_power = 500.0
|
||||
turn_power = 1000.0
|
||||
particles_l = NodePath("Particles/ThrusterLeft")
|
||||
particles_r = NodePath("Particles/ThrusterRight")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_do8h0")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-12, 15)
|
||||
shape = SubResource("RectangleShape2D_ykrsh")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(12, 15)
|
||||
shape = SubResource("RectangleShape2D_ykrsh")
|
||||
|
||||
[node name="Particles" type="Node2D" parent="."]
|
||||
|
||||
[node name="ThrusterLeft" type="CPUParticles2D" parent="Particles"]
|
||||
position = Vector2(-12, 15)
|
||||
direction = Vector2(0, 1)
|
||||
spread = 0.0
|
||||
gravity = Vector2(0, 0)
|
||||
initial_velocity_min = 56.0
|
||||
initial_velocity_max = 56.0
|
||||
damping_min = 34.4
|
||||
damping_max = 60.8
|
||||
scale_amount_min = 6.0
|
||||
scale_amount_max = 6.0
|
||||
color_ramp = SubResource("Gradient_do8h0")
|
||||
|
||||
[node name="ThrusterRight" type="CPUParticles2D" parent="Particles"]
|
||||
position = Vector2(12, 15)
|
||||
direction = Vector2(0, 1)
|
||||
spread = 0.0
|
||||
gravity = Vector2(0, 0)
|
||||
initial_velocity_min = 56.0
|
||||
initial_velocity_max = 56.0
|
||||
damping_min = 34.4
|
||||
damping_max = 60.8
|
||||
scale_amount_min = 6.0
|
||||
scale_amount_max = 6.0
|
||||
color_ramp = SubResource("Gradient_do8h0")
|
||||
Loading…
Add table
Add a link
Reference in a new issue