This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld47/objects/Projectile.tscn

53 lines
1.5 KiB
Text

[gd_scene load_steps=8 format=2]
[ext_resource path="res://objects/Projectile.gd" type="Script" id=1]
[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0.188235, 0.156863, 0.156863, 1 )
[sub_resource type="CylinderMesh" id=2]
material = SubResource( 1 )
[sub_resource type="SpatialMaterial" id=3]
flags_unshaded = true
vertex_color_use_as_albedo = true
params_blend_mode = 1
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
albedo_color = Color( 0.941176, 0.831373, 0.686275, 1 )
[sub_resource type="ParticlesMaterial" id=4]
emission_shape = 1
emission_sphere_radius = 0.1
spread = 30.0
gravity = Vector3( 0, 0, 0 )
scale = 0.05
[sub_resource type="QuadMesh" id=5]
[sub_resource type="CylinderShape" id=6]
height = 4.67603
[node name="Projectile" type="KinematicBody"]
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( -1.62921e-09, -0.2, 0, 0.01, -3.25841e-08, 0, 0, 0, 0.01, -0.222077, 0, 0 )
mesh = SubResource( 2 )
material/0 = null
[node name="Particles" type="Particles" parent="."]
material_override = SubResource( 3 )
amount = 32
lifetime = 2.0
speed_scale = 15.0
randomness = 1.0
local_coords = false
process_material = SubResource( 4 )
draw_pass_1 = SubResource( 5 )
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( -4.37114e-10, -0.1, 0, 0.01, -4.37114e-09, 0, 0, 0, 0.01, -0.196706, 0, 0.000216901 )
shape = SubResource( 6 )