Beeg checkin
This commit is contained in:
13
Player/Pisces/Attacks/ShotgunBullet.cs
Normal file
13
Player/Pisces/Attacks/ShotgunBullet.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Godot;
|
||||
using System.Linq;
|
||||
|
||||
public partial class ShotgunBullet : Projectile
|
||||
{
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
var pellets = GetChildren().OfType<RigidBody3D>();
|
||||
|
||||
foreach (var pellet in pellets)
|
||||
pellet.Translate(new Vector3(pellet.Rotation.Y, 0, Speed * -(float)delta));
|
||||
}
|
||||
}
|
||||
81
Player/Pisces/Attacks/ShotgunBullet.tscn
Normal file
81
Player/Pisces/Attacks/ShotgunBullet.tscn
Normal file
@@ -0,0 +1,81 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bq40xbqibrk1y"]
|
||||
|
||||
[ext_resource type="Script" path="res://Player/Pisces/Attacks/ShotgunBullet.cs" id="1_0khuu"]
|
||||
[ext_resource type="Texture2D" uid="uid://crlvrwo2l11ja" path="res://Textures/Projectiles/Projectile_Pisces_MultiAttack.png" id="2_a612r"]
|
||||
[ext_resource type="AudioStream" uid="uid://cw1jlubd7wmw6" path="res://Audio/SFX/blue laser.wav" id="2_oxtlx"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_eme14"]
|
||||
radius = 0.3
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_752q2"]
|
||||
radius = 0.3
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ebbqv"]
|
||||
radius = 0.3
|
||||
|
||||
[node name="ShotgunBullet" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.73894, 0)
|
||||
script = ExtResource("1_0khuu")
|
||||
Cooldown = 0.5
|
||||
_soundEffect = ExtResource("2_oxtlx")
|
||||
_projectileSpeed = 15.0
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
transform = Transform3D(0.99863, 0, -0.052336, 0, 1, 0, 0.052336, 0, 0.99863, -0.334469, 0, 0)
|
||||
collision_layer = 34
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_eme14")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D/CollisionShape3D"]
|
||||
axis = 1
|
||||
texture = ExtResource("2_a612r")
|
||||
|
||||
[node name="RigidBody3D2" type="RigidBody3D" parent="."]
|
||||
transform = Transform3D(0.99863, 0, 0.052336, 0, 1, 0, -0.052336, 0, 0.99863, 0.463951, 0, 0)
|
||||
collision_layer = 34
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D2"]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_752q2")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D2/CollisionShape3D"]
|
||||
axis = 1
|
||||
texture = ExtResource("2_a612r")
|
||||
|
||||
[node name="RigidBody3D3" type="RigidBody3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0600076, 0, -0.345734)
|
||||
collision_layer = 34
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D3"]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_ebbqv")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D3/CollisionShape3D"]
|
||||
axis = 1
|
||||
texture = ExtResource("2_a612r")
|
||||
|
||||
[node name="TTL" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
40
Player/Pisces/Attacks/Single.tscn
Normal file
40
Player/Pisces/Attacks/Single.tscn
Normal file
@@ -0,0 +1,40 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cyn2wn6ffsnu7"]
|
||||
|
||||
[ext_resource type="Script" path="res://Player/Pisces/Attacks/SingleShot.cs" id="1_18l5k"]
|
||||
[ext_resource type="AudioStream" uid="uid://cw1jlubd7wmw6" path="res://Audio/SFX/blue laser.wav" id="2_7lbn3"]
|
||||
[ext_resource type="Texture2D" uid="uid://kecmkchurnin" path="res://Textures/Projectiles/Projectile_Pisces_SingleAttack.png" id="2_d8lwd"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_njobr"]
|
||||
radius = 0.3
|
||||
|
||||
[node name="Single" type="Node3D"]
|
||||
script = ExtResource("1_18l5k")
|
||||
Cooldown = 0.3
|
||||
_soundEffect = ExtResource("2_7lbn3")
|
||||
_projectileSpeed = 10.0
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
collision_layer = 34
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0.644825, 0)
|
||||
shape = SubResource("CylinderShape3D_njobr")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D/CollisionShape3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.31565, 0.765425, 0.303541)
|
||||
centered = false
|
||||
axis = 1
|
||||
texture = ExtResource("2_d8lwd")
|
||||
|
||||
[node name="TTL" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
wait_time = 0.8
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
11
Player/Pisces/Attacks/SingleShot.cs
Normal file
11
Player/Pisces/Attacks/SingleShot.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
using System.Linq;
|
||||
|
||||
public partial class SingleShot : Projectile
|
||||
{
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
var pellet = GetChildren().OfType<RigidBody3D>().Single();
|
||||
pellet.Translate(new Vector3(0, 0, Speed * -(float)delta));
|
||||
}
|
||||
}
|
||||
886
Player/Pisces/Models/fwitch.gltf
Normal file
886
Player/Pisces/Models/fwitch.gltf
Normal file
File diff suppressed because one or more lines are too long
32
Player/Pisces/Models/fwitch.gltf.import
Normal file
32
Player/Pisces/Models/fwitch.gltf.import
Normal file
@@ -0,0 +1,32 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://yosw0j58nvrf"
|
||||
path="res://.godot/imported/fwitch.gltf-81abec961b3eeb978fc59a30df8d729c.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Player/Pisces/Models/fwitch.gltf"
|
||||
dest_files=["res://.godot/imported/fwitch.gltf-81abec961b3eeb978fc59a30df8d729c.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type="Node3D"
|
||||
nodes/root_name="Scene Root"
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/embedded_image_handling=1
|
||||
39
Player/Pisces/P1PiscesWitch.tscn
Normal file
39
Player/Pisces/P1PiscesWitch.tscn
Normal file
@@ -0,0 +1,39 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b38hcomu4tpm5"]
|
||||
|
||||
[ext_resource type="Script" path="res://Player/Base/P1Controls.cs" id="1_13s3m"]
|
||||
[ext_resource type="PackedScene" uid="uid://cyn2wn6ffsnu7" path="res://Player/Pisces/Attacks/Single.tscn" id="2_y0wmm"]
|
||||
[ext_resource type="PackedScene" uid="uid://bq40xbqibrk1y" path="res://Player/Pisces/Attacks/ShotgunBullet.tscn" id="3_p4fqi"]
|
||||
[ext_resource type="PackedScene" uid="uid://yosw0j58nvrf" path="res://Player/Pisces/Models/fwitch.gltf" id="4_mtwuo"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_xynge"]
|
||||
size = Vector3(3.04879, 3.92906, 2.56521)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_fqik1"]
|
||||
radius = 0.704872
|
||||
height = 1.67894
|
||||
|
||||
[node name="PiscesP1" type="CharacterBody3D" groups=["Player"]]
|
||||
transform = Transform3D(0.33, 0, 0, 0, 0.33, 0, 0, 0, 0.33, 0, 0.332056, 0)
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_13s3m")
|
||||
_fireProjectile = ExtResource("2_y0wmm")
|
||||
_altFireProjectile = ExtResource("3_p4fqi")
|
||||
|
||||
[node name="Pivot" type="Node3D" parent="."]
|
||||
|
||||
[node name="fwitch" parent="Pivot" instance=ExtResource("4_mtwuo")]
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="Pivot"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.75657e-15, 0, 0)
|
||||
collision_layer = 16
|
||||
collision_mask = 4100
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pivot/Area3D"]
|
||||
transform = Transform3D(0.999665, -0.0258978, -7.10543e-15, 0.0258978, 0.999665, 0, 0, 0, 1, 0.0162379, 2.20309, -0.302385)
|
||||
shape = SubResource("BoxShape3D_xynge")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.06805, -0.211049)
|
||||
shape = SubResource("CapsuleShape3D_fqik1")
|
||||
|
||||
[connection signal="body_entered" from="Pivot/Area3D" to="." method="OnHit"]
|
||||
39
Player/Pisces/P2PiscesWitch.tscn
Normal file
39
Player/Pisces/P2PiscesWitch.tscn
Normal file
@@ -0,0 +1,39 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dfanwejjy3iue"]
|
||||
|
||||
[ext_resource type="Script" path="res://Player/Base/P2Controls.cs" id="1_0onpw"]
|
||||
[ext_resource type="PackedScene" uid="uid://cyn2wn6ffsnu7" path="res://Player/Pisces/Attacks/Single.tscn" id="2_285w6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bq40xbqibrk1y" path="res://Player/Pisces/Attacks/ShotgunBullet.tscn" id="3_00thi"]
|
||||
[ext_resource type="PackedScene" uid="uid://yosw0j58nvrf" path="res://Player/Pisces/Models/fwitch.gltf" id="4_hwtlk"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_gqlci"]
|
||||
size = Vector3(3.04879, 3.92906, 2.56521)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_fqik1"]
|
||||
radius = 0.704872
|
||||
height = 1.67894
|
||||
|
||||
[node name="PiscesP2" type="CharacterBody3D" groups=["Player"]]
|
||||
transform = Transform3D(0.33, 0, 0, 0, 0.33, 0, 0, 0, 0.33, 0, 0.533944, 0)
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_0onpw")
|
||||
_fireProjectile = ExtResource("2_285w6")
|
||||
_altFireProjectile = ExtResource("3_00thi")
|
||||
|
||||
[node name="Pivot" type="Node3D" parent="."]
|
||||
|
||||
[node name="fwitch" parent="Pivot" instance=ExtResource("4_hwtlk")]
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="Pivot"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.75657e-15, 0, 0)
|
||||
collision_layer = 16
|
||||
collision_mask = 4100
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pivot/Area3D"]
|
||||
transform = Transform3D(0.999665, -0.0258978, -7.10543e-15, 0.0258978, 0.999665, 0, 0, 0, 1, -0.0242356, 2.05297, -0.302385)
|
||||
shape = SubResource("BoxShape3D_gqlci")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.06805, -0.211049)
|
||||
shape = SubResource("CapsuleShape3D_fqik1")
|
||||
|
||||
[connection signal="body_entered" from="Pivot/Area3D" to="." method="OnHit"]
|
||||
Reference in New Issue
Block a user