way too many changes to list, oops. big rewrite.
This commit is contained in:
BIN
Projectiles/Bomb/bomb.png
Normal file
BIN
Projectiles/Bomb/bomb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 799 B |
34
Projectiles/Bomb/bomb.png.import
Normal file
34
Projectiles/Bomb/bomb.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b54d5dc4jmlau"
|
||||
path="res://.godot/imported/bomb.png-d9cfc866620347d46b9fe4fdccd92ded.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Projectiles/Bomb/bomb.png"
|
||||
dest_files=["res://.godot/imported/bomb.png-d9cfc866620347d46b9fe4fdccd92ded.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
19
Projectiles/Bomb/bomb_projectile.gd
Normal file
19
Projectiles/Bomb/bomb_projectile.gd
Normal file
@ -0,0 +1,19 @@
|
||||
class_name BombProjectile extends ExplosiveProjectile
|
||||
|
||||
var max_bounces: int = 1
|
||||
var bounces: int = 0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
apply_central_impulse(direction.normalized() * force)
|
||||
#print(direction.length())
|
||||
#print(force)
|
||||
if owner_id == 0:
|
||||
max_bounces = 0
|
||||
|
||||
|
||||
func _on_body_entered(_body: Node) -> void:
|
||||
bounces += 1
|
||||
var collided_body: bool = get_colliding_bodies()[0].get_collision_layer_value(3)
|
||||
if bounces > max_bounces or collided_body:
|
||||
explode()
|
1
Projectiles/Bomb/bomb_projectile.gd.uid
Normal file
1
Projectiles/Bomb/bomb_projectile.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://cue37hfrlm61m
|
26
Projectiles/Bomb/bomb_projectile.tscn
Normal file
26
Projectiles/Bomb/bomb_projectile.tscn
Normal file
@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c8oq5unisjqne"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://7f4dfphgiswr" path="res://Scenes/Projectiles/explosive_projectile.tscn" id="1_kf2wi"]
|
||||
[ext_resource type="Script" uid="uid://cue37hfrlm61m" path="res://Projectiles/Bomb/bomb_projectile.gd" id="2_qvo4u"]
|
||||
[ext_resource type="Texture2D" uid="uid://b54d5dc4jmlau" path="res://Projectiles/Bomb/bomb.png" id="3_ilhep"]
|
||||
[ext_resource type="AudioStream" uid="uid://dknygn5eyuhxt" path="res://Audio/shot1.wav" id="4_uh8y6"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_bbpul"]
|
||||
bounce = 0.6
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_sy5qq"]
|
||||
random_pitch = 1.1
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("4_uh8y6")
|
||||
|
||||
[node name="Bomb" instance=ExtResource("1_kf2wi")]
|
||||
physics_material_override = SubResource("PhysicsMaterial_bbpul")
|
||||
gravity_scale = 1.0
|
||||
script = ExtResource("2_qvo4u")
|
||||
|
||||
[node name="Sprite3D" parent="." index="1"]
|
||||
pixel_size = 0.015
|
||||
texture = ExtResource("3_ilhep")
|
||||
|
||||
[node name="AudioStreamPlayer" parent="." index="2"]
|
||||
stream = SubResource("AudioStreamRandomizer_sy5qq")
|
7
Projectiles/Fireball/fireball_projectile.gd
Normal file
7
Projectiles/Fireball/fireball_projectile.gd
Normal file
@ -0,0 +1,7 @@
|
||||
class_name FireballProjectile extends StatusApplyingProjectile
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusDoT = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
1
Projectiles/Fireball/fireball_projectile.gd.uid
Normal file
1
Projectiles/Fireball/fireball_projectile.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://bl5um0g8hhtjw
|
BIN
Projectiles/Fireball/fireball_projectile.png
Normal file
BIN
Projectiles/Fireball/fireball_projectile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
34
Projectiles/Fireball/fireball_projectile.png.import
Normal file
34
Projectiles/Fireball/fireball_projectile.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://baarbcx0nxi7w"
|
||||
path="res://.godot/imported/fireball_projectile.png-90d248f102524998e0c8b25c8dff96fc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Projectiles/Fireball/fireball_projectile.png"
|
||||
dest_files=["res://.godot/imported/fireball_projectile.png-90d248f102524998e0c8b25c8dff96fc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
21
Projectiles/Fireball/fireball_projectile.tscn
Normal file
21
Projectiles/Fireball/fireball_projectile.tscn
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://ddpixntjsbpqp"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://beq6rn0babncg" path="res://Scenes/Projectiles/status_applying_projectile.tscn" id="1_a8cjq"]
|
||||
[ext_resource type="Script" uid="uid://bl5um0g8hhtjw" path="res://Projectiles/Fireball/fireball_projectile.gd" id="2_rin44"]
|
||||
[ext_resource type="Resource" uid="uid://dbanx8taicddm" path="res://Resources/StatusEffects/on_fire.tres" id="3_vb4ff"]
|
||||
[ext_resource type="Texture2D" uid="uid://baarbcx0nxi7w" path="res://Projectiles/Fireball/fireball_projectile.png" id="4_uua74"]
|
||||
[ext_resource type="AudioStream" uid="uid://dknygn5eyuhxt" path="res://Audio/shot1.wav" id="5_k3tme"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_bxaub"]
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("5_k3tme")
|
||||
|
||||
[node name="Fireball" instance=ExtResource("1_a8cjq")]
|
||||
script = ExtResource("2_rin44")
|
||||
status_stats = ExtResource("3_vb4ff")
|
||||
|
||||
[node name="Sprite3D" parent="." index="1"]
|
||||
texture = ExtResource("4_uua74")
|
||||
|
||||
[node name="AudioStreamPlayer" parent="." index="2"]
|
||||
stream = SubResource("AudioStreamRandomizer_bxaub")
|
7
Projectiles/Icicle/icicle_projectile.gd
Normal file
7
Projectiles/Icicle/icicle_projectile.gd
Normal file
@ -0,0 +1,7 @@
|
||||
class_name IcicleProjectile extends StatusApplyingProjectile
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusSlow = StatusSlow.new()
|
||||
status.stats = status_stats
|
||||
return status
|
1
Projectiles/Icicle/icicle_projectile.gd.uid
Normal file
1
Projectiles/Icicle/icicle_projectile.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://bnddiewx0br8
|
BIN
Projectiles/Icicle/icicle_projectile.png
Normal file
BIN
Projectiles/Icicle/icicle_projectile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 969 B |
34
Projectiles/Icicle/icicle_projectile.png.import
Normal file
34
Projectiles/Icicle/icicle_projectile.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cqmt5m0grnppx"
|
||||
path="res://.godot/imported/icicle_projectile.png-ec7a72c499d062e77d2576290fd26a56.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Projectiles/Icicle/icicle_projectile.png"
|
||||
dest_files=["res://.godot/imported/icicle_projectile.png-ec7a72c499d062e77d2576290fd26a56.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
13
Projectiles/Icicle/icicle_projectile.tscn
Normal file
13
Projectiles/Icicle/icicle_projectile.tscn
Normal file
@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dyurjxotdkf1u"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://beq6rn0babncg" path="res://Scenes/Projectiles/status_applying_projectile.tscn" id="1_mmk8p"]
|
||||
[ext_resource type="Script" uid="uid://bnddiewx0br8" path="res://Projectiles/Icicle/icicle_projectile.gd" id="2_nukn5"]
|
||||
[ext_resource type="Resource" uid="uid://fed6kimfbcwv" path="res://Resources/StatusEffects/cold.tres" id="3_ruu1t"]
|
||||
[ext_resource type="Texture2D" uid="uid://cqmt5m0grnppx" path="res://Projectiles/Icicle/icicle_projectile.png" id="4_ycq5n"]
|
||||
|
||||
[node name="Icicle" instance=ExtResource("1_mmk8p")]
|
||||
script = ExtResource("2_nukn5")
|
||||
status_stats = ExtResource("3_ruu1t")
|
||||
|
||||
[node name="Sprite3D" parent="." index="1"]
|
||||
texture = ExtResource("4_ycq5n")
|
BIN
Projectiles/Rocket/rocket.png
Normal file
BIN
Projectiles/Rocket/rocket.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 835 B |
34
Projectiles/Rocket/rocket.png.import
Normal file
34
Projectiles/Rocket/rocket.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bode8mfmr3r1h"
|
||||
path="res://.godot/imported/rocket.png-aa5d7fa2fa6ee99cfc5dd41e1474e365.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Projectiles/Rocket/rocket.png"
|
||||
dest_files=["res://.godot/imported/rocket.png-aa5d7fa2fa6ee99cfc5dd41e1474e365.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
1
Projectiles/Rocket/rocket_projectile.gd
Normal file
1
Projectiles/Rocket/rocket_projectile.gd
Normal file
@ -0,0 +1 @@
|
||||
class_name RocketProjectile extends HomingProjectile
|
1
Projectiles/Rocket/rocket_projectile.gd.uid
Normal file
1
Projectiles/Rocket/rocket_projectile.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://bs1sle66bd7e
|
21
Projectiles/Rocket/rocket_projectile.tscn
Normal file
21
Projectiles/Rocket/rocket_projectile.tscn
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://p2vwo8ivben6"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://di2wwvkv4wov1" path="res://Scenes/Projectiles/homing_projectile.tscn" id="1_fnn4i"]
|
||||
[ext_resource type="Script" uid="uid://bs1sle66bd7e" path="res://Projectiles/Rocket/rocket_projectile.gd" id="2_86up0"]
|
||||
[ext_resource type="Texture2D" uid="uid://bode8mfmr3r1h" path="res://Projectiles/Rocket/rocket.png" id="3_aonkx"]
|
||||
[ext_resource type="AudioStream" uid="uid://dknygn5eyuhxt" path="res://Audio/shot1.wav" id="4_i5kff"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_4rf40"]
|
||||
random_pitch = 1.1
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("4_i5kff")
|
||||
|
||||
[node name="Rocket" instance=ExtResource("1_fnn4i")]
|
||||
script = ExtResource("2_86up0")
|
||||
|
||||
[node name="Sprite3D" parent="." index="1"]
|
||||
pixel_size = 0.013
|
||||
texture = ExtResource("3_aonkx")
|
||||
|
||||
[node name="AudioStreamPlayer" parent="." index="2"]
|
||||
stream = SubResource("AudioStreamRandomizer_4rf40")
|
Reference in New Issue
Block a user