Compare commits
5 Commits
dfc9201f62
...
master
Author | SHA1 | Date | |
---|---|---|---|
bc3108ea37 | |||
7257242fce | |||
03abf91f59 | |||
e6f8989d16 | |||
db2a090acc |
@@ -6,7 +6,7 @@ namespace Mr.BrickAdventures.Autoloads;
|
|||||||
public partial class SpeedRunManager : Node
|
public partial class SpeedRunManager : Node
|
||||||
{
|
{
|
||||||
public bool IsRunning { get; private set; } = false;
|
public bool IsRunning { get; private set; } = false;
|
||||||
public bool IsVisible { get; private set; } = true;
|
public bool IsVisible { get; private set; } = false;
|
||||||
|
|
||||||
private double _startTime;
|
private double _startTime;
|
||||||
private double _levelStartTime;
|
private double _levelStartTime;
|
||||||
|
31
objects/entities/bouncing_mushroom.tscn
Normal file
31
objects/entities/bouncing_mushroom.tscn
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
[gd_scene load_steps=5 format=3 uid="uid://c0j1yun5s7kns"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bu0yv6rktj221" path="res://sprites/bouncing_mushroom.png" id="1_t1exj"]
|
||||||
|
[ext_resource type="Script" uid="uid://bgbnof7aeydmq" path="res://scripts/components/JumpPadComponent.cs" id="2_w2gbr"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://qo2ngbnkix85" path="res://objects/fxs/bounce_gfx.tscn" id="3_w2gbr"]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ci3ij"]
|
||||||
|
size = Vector2(22, 10)
|
||||||
|
|
||||||
|
[node name="Bouncing Mushrrom" type="Area2D"]
|
||||||
|
modulate = Color(1.1, 1.1, 1.1, 1)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 4
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
position = Vector2(0, -13)
|
||||||
|
shape = SubResource("RectangleShape2D_ci3ij")
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(0, -8)
|
||||||
|
texture = ExtResource("1_t1exj")
|
||||||
|
hframes = 2
|
||||||
|
|
||||||
|
[node name="JumpPadComponent" type="Node" parent="." node_paths=PackedStringArray("Area", "Sprite", "Particles")]
|
||||||
|
script = ExtResource("2_w2gbr")
|
||||||
|
JumpForce = 600.0
|
||||||
|
Area = NodePath("..")
|
||||||
|
Sprite = NodePath("../Sprite2D")
|
||||||
|
Particles = NodePath("../BounceGFX")
|
||||||
|
|
||||||
|
[node name="BounceGFX" parent="." instance=ExtResource("3_w2gbr")]
|
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=54 format=3 uid="uid://bqi5s710xb1ju"]
|
[gd_scene load_steps=58 format=3 uid="uid://bqi5s710xb1ju"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://csel4s0e4g5uf" path="res://scripts/components/PlayerController.cs" id="1_yysbb"]
|
[ext_resource type="Script" uid="uid://csel4s0e4g5uf" path="res://scripts/components/PlayerController.cs" id="1_yysbb"]
|
||||||
[ext_resource type="Shader" uid="uid://bs4xvm4qkurpr" path="res://shaders/hit_flash.tres" id="2_lgb3u"]
|
[ext_resource type="Shader" uid="uid://bs4xvm4qkurpr" path="res://shaders/hit_flash.tres" id="2_lgb3u"]
|
||||||
@@ -42,6 +42,10 @@
|
|||||||
[ext_resource type="Script" uid="uid://c00siqtssccr6" path="res://scripts/components/PacXonGridInteractor.cs" id="42_xuhvf"]
|
[ext_resource type="Script" uid="uid://c00siqtssccr6" path="res://scripts/components/PacXonGridInteractor.cs" id="42_xuhvf"]
|
||||||
[ext_resource type="Script" uid="uid://ceoxet1nqws8w" path="res://scripts/components/SpriteTilterComponent.cs" id="43_xuhvf"]
|
[ext_resource type="Script" uid="uid://ceoxet1nqws8w" path="res://scripts/components/SpriteTilterComponent.cs" id="43_xuhvf"]
|
||||||
[ext_resource type="Script" uid="uid://cmk4m7mplqnrm" path="res://scripts/components/PacXonTrailComponent.cs" id="44_uno3u"]
|
[ext_resource type="Script" uid="uid://cmk4m7mplqnrm" path="res://scripts/components/PacXonTrailComponent.cs" id="44_uno3u"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://de5emerpbiknb" path="res://objects/fxs/foot_step_gfx.tscn" id="45_bl1gx"]
|
||||||
|
[ext_resource type="Script" uid="uid://d3ksrjt1ek4gi" path="res://scripts/components/FootstepGfx.cs" id="46_6n1ss"]
|
||||||
|
[ext_resource type="Script" uid="uid://bpopfy6m4a0br" path="res://scripts/components/JumpGfxComponent.cs" id="47_oefns"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bqhondao5bm6k" path="res://objects/fxs/jump_cloud_fx.tscn" id="48_bnap0"]
|
||||||
[ext_resource type="Script" uid="uid://b1h8r5irryxcx" path="res://scripts/components/PlayerSfxComponent.cs" id="49_qec3q"]
|
[ext_resource type="Script" uid="uid://b1h8r5irryxcx" path="res://scripts/components/PlayerSfxComponent.cs" id="49_qec3q"]
|
||||||
[ext_resource type="Script" uid="uid://b2aanqykvdnev" path="res://scripts/components/PlayerGraphicsComponent.cs" id="50_dhjci"]
|
[ext_resource type="Script" uid="uid://b2aanqykvdnev" path="res://scripts/components/PlayerGraphicsComponent.cs" id="50_dhjci"]
|
||||||
|
|
||||||
@@ -308,3 +312,23 @@ metadata/_custom_type_script = "uid://c00siqtssccr6"
|
|||||||
[node name="PacXonTrailComponent" type="Line2D" parent="."]
|
[node name="PacXonTrailComponent" type="Line2D" parent="."]
|
||||||
script = ExtResource("44_uno3u")
|
script = ExtResource("44_uno3u")
|
||||||
metadata/_custom_type_script = "uid://cmk4m7mplqnrm"
|
metadata/_custom_type_script = "uid://cmk4m7mplqnrm"
|
||||||
|
|
||||||
|
[node name="Feet" type="Marker2D" parent="."]
|
||||||
|
position = Vector2(0, 16)
|
||||||
|
|
||||||
|
[node name="FootstepGfx" type="Node2D" parent="." node_paths=PackedStringArray("_controller", "_marker")]
|
||||||
|
script = ExtResource("46_6n1ss")
|
||||||
|
_particles = ExtResource("45_bl1gx")
|
||||||
|
_controller = NodePath("..")
|
||||||
|
_marker = NodePath("../Feet")
|
||||||
|
_stepInterval = 0.4
|
||||||
|
_stepIntervalRandomness = 0.15
|
||||||
|
_minMoveSpeed = 4.0
|
||||||
|
_randomOffsetRange = 0.3
|
||||||
|
metadata/_custom_type_script = "uid://d3ksrjt1ek4gi"
|
||||||
|
|
||||||
|
[node name="JumpGfxComponent" type="Node2D" parent="." node_paths=PackedStringArray("Controller")]
|
||||||
|
script = ExtResource("47_oefns")
|
||||||
|
ParticleScene = ExtResource("48_bnap0")
|
||||||
|
Controller = NodePath("..")
|
||||||
|
metadata/_custom_type_script = "uid://bpopfy6m4a0br"
|
||||||
|
@@ -1,13 +1,17 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://dstko446qydsc"]
|
[gd_scene load_steps=7 format=3 uid="uid://dstko446qydsc"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_6gptm"]
|
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_6gptm"]
|
||||||
[ext_resource type="Script" uid="uid://ctfrbj52ejay4" path="res://scripts/components/DestroyableComponent.cs" id="2_q37h7"]
|
[ext_resource type="Script" uid="uid://bnaxy8cw3wrko" path="res://scripts/components/PeriodicShootingComponent.cs" id="2_q37h7"]
|
||||||
[ext_resource type="Script" uid="uid://dgb8bqcri7nsj" path="res://scripts/components/HealthComponent.cs" id="3_bhwy3"]
|
[ext_resource type="PackedScene" uid="uid://chetx6gmnwbxi" path="res://objects/entities/cannon_bullet.tscn" id="3_ww0hb"]
|
||||||
|
[ext_resource type="Script" uid="uid://b3j23e7b7x8ro" path="res://scripts/components/RecoilComponent.cs" id="4_bhwy3"]
|
||||||
|
[ext_resource type="Script" uid="uid://c707c53k7c5ae" path="res://scripts/components/SquashAndStretchComponent.cs" id="5_ww0hb"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_j5sus"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_j5sus"]
|
||||||
size = Vector2(16, 16)
|
size = Vector2(16, 16)
|
||||||
|
|
||||||
[node name="Cannon" type="StaticBody2D"]
|
[node name="Cannon" type="StaticBody2D"]
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 0
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
texture = ExtResource("1_6gptm")
|
texture = ExtResource("1_6gptm")
|
||||||
@@ -15,12 +19,29 @@ hframes = 12
|
|||||||
vframes = 12
|
vframes = 12
|
||||||
frame = 42
|
frame = 42
|
||||||
|
|
||||||
[node name="DestroyableComponent" type="Node" parent="." node_paths=PackedStringArray("Health")]
|
|
||||||
script = ExtResource("2_q37h7")
|
|
||||||
Health = NodePath("../HealthComponent")
|
|
||||||
|
|
||||||
[node name="HealthComponent" type="Node2D" parent="."]
|
|
||||||
script = ExtResource("3_bhwy3")
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
shape = SubResource("RectangleShape2D_j5sus")
|
shape = SubResource("RectangleShape2D_j5sus")
|
||||||
|
|
||||||
|
[node name="PeriodicShootingComponent" type="Node" parent="." node_paths=PackedStringArray("BulletSpawnPointRight")]
|
||||||
|
script = ExtResource("2_q37h7")
|
||||||
|
BulletScene = ExtResource("3_ww0hb")
|
||||||
|
ShootInterval = 3.0
|
||||||
|
ShootDirection = Vector2(0, -1)
|
||||||
|
BulletSpawnPointRight = NodePath("../Bullet spawn")
|
||||||
|
ShootingIntervalVariation = 0.61
|
||||||
|
metadata/_custom_type_script = "uid://bnaxy8cw3wrko"
|
||||||
|
|
||||||
|
[node name="Bullet spawn" type="Marker2D" parent="."]
|
||||||
|
position = Vector2(0, -16)
|
||||||
|
|
||||||
|
[node name="RecoilComponent" type="Node" parent="." node_paths=PackedStringArray("RecoilTarget")]
|
||||||
|
script = ExtResource("4_bhwy3")
|
||||||
|
RecoilTarget = NodePath("../Sprite2D")
|
||||||
|
RecoilDistance = 4.0
|
||||||
|
RecoilDuration = 0.12
|
||||||
|
metadata/_custom_type_script = "uid://b3j23e7b7x8ro"
|
||||||
|
|
||||||
|
[node name="SquashAndStretchComponent" type="Node" parent="." node_paths=PackedStringArray("TargetNode")]
|
||||||
|
script = ExtResource("5_ww0hb")
|
||||||
|
TargetNode = NodePath("../Sprite2D")
|
||||||
|
metadata/_custom_type_script = "uid://c707c53k7c5ae"
|
||||||
|
72
objects/entities/cannon_bullet.tscn
Normal file
72
objects/entities/cannon_bullet.tscn
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
[gd_scene load_steps=11 format=3 uid="uid://chetx6gmnwbxi"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_alaj6"]
|
||||||
|
[ext_resource type="Script" uid="uid://2i7p7v135u7c" path="res://scripts/components/DamageComponent.cs" id="2_xmjlg"]
|
||||||
|
[ext_resource type="Script" uid="uid://cs6u3sh68f43j" path="res://scripts/components/OutOfScreenComponent.cs" id="3_jege3"]
|
||||||
|
[ext_resource type="Script" uid="uid://oyf25mpc5etr" path="res://scripts/components/LifetimeComponent.cs" id="4_aniyw"]
|
||||||
|
[ext_resource type="Script" uid="uid://cbexrnnj47f87" path="res://scripts/components/LaunchComponent.cs" id="5_3ks47"]
|
||||||
|
[ext_resource type="Script" uid="uid://c7p06t0eax8am" path="res://scripts/components/StraightMotionComponent.cs" id="6_4cg6n"]
|
||||||
|
[ext_resource type="Script" uid="uid://cfw8nbrarex0i" path="res://scripts/components/BulletComponent.cs" id="7_cr5p0"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c1iorglk708g0" path="res://objects/fxs/terrain_hit_fx.tscn" id="8_ivkeb"]
|
||||||
|
[ext_resource type="Script" uid="uid://dgb8bqcri7nsj" path="res://scripts/components/HealthComponent.cs" id="9_gx2e5"]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_txsw8"]
|
||||||
|
radius = 4.0
|
||||||
|
|
||||||
|
[node name="Bullet" type="Area2D"]
|
||||||
|
collision_layer = 64
|
||||||
|
collision_mask = 21
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
shape = SubResource("CircleShape2D_txsw8")
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
|
modulate = Color(1.5, 1, 1, 1)
|
||||||
|
scale = Vector2(0.5, 0.5)
|
||||||
|
texture = ExtResource("1_alaj6")
|
||||||
|
hframes = 12
|
||||||
|
vframes = 12
|
||||||
|
frame = 79
|
||||||
|
|
||||||
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||||
|
position = Vector2(2.38419e-07, 2.38419e-07)
|
||||||
|
scale = Vector2(0.4, 0.4)
|
||||||
|
|
||||||
|
[node name="DamageComponent" type="Node" parent="." node_paths=PackedStringArray("Area", "DamageTimer")]
|
||||||
|
script = ExtResource("2_xmjlg")
|
||||||
|
Area = NodePath("..")
|
||||||
|
DamageTimer = NodePath("../Timer")
|
||||||
|
|
||||||
|
[node name="Timer" type="Timer" parent="."]
|
||||||
|
wait_time = 5.0
|
||||||
|
autostart = true
|
||||||
|
|
||||||
|
[node name="OutOfScreenComponent" type="Node" parent="." node_paths=PackedStringArray("VisibilityNotifier")]
|
||||||
|
script = ExtResource("3_jege3")
|
||||||
|
VisibilityNotifier = NodePath("../VisibleOnScreenNotifier2D")
|
||||||
|
|
||||||
|
[node name="LifetimeComponent" type="Node" parent="."]
|
||||||
|
script = ExtResource("4_aniyw")
|
||||||
|
LifeTime = 10.0
|
||||||
|
|
||||||
|
[node name="LaunchComponent" type="Node2D" parent="."]
|
||||||
|
script = ExtResource("5_3ks47")
|
||||||
|
Speed = 160.0
|
||||||
|
|
||||||
|
[node name="StraightMotionComponent" type="Node" parent="." node_paths=PackedStringArray("LaunchComponent")]
|
||||||
|
script = ExtResource("6_4cg6n")
|
||||||
|
LaunchComponent = NodePath("../LaunchComponent")
|
||||||
|
|
||||||
|
[node name="BulletComponent" type="Node" parent="." node_paths=PackedStringArray("Area", "TerrainHitFx", "BulletSprite")]
|
||||||
|
script = ExtResource("7_cr5p0")
|
||||||
|
Area = NodePath("..")
|
||||||
|
TerrainHitFx = NodePath("../TerrainHitFX")
|
||||||
|
BulletSprite = NodePath("../Sprite2D")
|
||||||
|
|
||||||
|
[node name="TerrainHitFX" parent="." instance=ExtResource("8_ivkeb")]
|
||||||
|
z_index = 3
|
||||||
|
|
||||||
|
[node name="HealthComponent" type="Node2D" parent="."]
|
||||||
|
script = ExtResource("9_gx2e5")
|
||||||
|
Health = 0.1
|
||||||
|
metadata/_custom_type_script = "uid://dgb8bqcri7nsj"
|
@@ -1,33 +0,0 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://dfwpha0d18dmn"]
|
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_rwgpm"]
|
|
||||||
[ext_resource type="Script" uid="uid://2i7p7v135u7c" path="res://scripts/components/DamageComponent.cs" id="2_hrj61"]
|
|
||||||
[ext_resource type="Script" uid="uid://df1llrbm80e02" path="res://scripts/components/BeamComponent.cs" id="3_hrj61"]
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ptfn7"]
|
|
||||||
size = Vector2(8, 16)
|
|
||||||
|
|
||||||
[node name="Cannon Ray" type="Area2D"]
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 5
|
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
||||||
texture_repeat = 2
|
|
||||||
texture = ExtResource("1_rwgpm")
|
|
||||||
region_enabled = true
|
|
||||||
region_rect = Rect2(176, 64, 16, 16)
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
||||||
shape = SubResource("RectangleShape2D_ptfn7")
|
|
||||||
|
|
||||||
[node name="DamageComponent" type="Node" parent="." node_paths=PackedStringArray("Area")]
|
|
||||||
script = ExtResource("2_hrj61")
|
|
||||||
Area = NodePath("..")
|
|
||||||
|
|
||||||
[node name="BeamComponent" type="Node2D" parent="." node_paths=PackedStringArray("Root", "Sprite", "CollisionShape")]
|
|
||||||
position = Vector2(0, -8)
|
|
||||||
script = ExtResource("3_hrj61")
|
|
||||||
ExpansionSpeed = 16.0
|
|
||||||
Root = NodePath(".")
|
|
||||||
Sprite = NodePath("../Sprite2D")
|
|
||||||
CollisionShape = NodePath("../CollisionShape2D")
|
|
@@ -1,35 +0,0 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://d3lt4rhxduv44"]
|
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_l5x2w"]
|
|
||||||
[ext_resource type="Script" uid="uid://2i7p7v135u7c" path="res://scripts/components/DamageComponent.cs" id="2_0kbpg"]
|
|
||||||
[ext_resource type="Script" uid="uid://df1llrbm80e02" path="res://scripts/components/BeamComponent.cs" id="3_0kbpg"]
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ptfn7"]
|
|
||||||
size = Vector2(16, 8)
|
|
||||||
|
|
||||||
[node name="Cannon Ray" type="Area2D"]
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 5
|
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
||||||
texture_repeat = 2
|
|
||||||
rotation = 1.5708
|
|
||||||
texture = ExtResource("1_l5x2w")
|
|
||||||
region_enabled = true
|
|
||||||
region_rect = Rect2(176, 64, 16, 16)
|
|
||||||
region_filter_clip_enabled = true
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
||||||
shape = SubResource("RectangleShape2D_ptfn7")
|
|
||||||
|
|
||||||
[node name="DamageComponent" type="Node" parent="." node_paths=PackedStringArray("Area")]
|
|
||||||
script = ExtResource("2_0kbpg")
|
|
||||||
Area = NodePath("..")
|
|
||||||
|
|
||||||
[node name="BeamComponent" type="Node2D" parent="." node_paths=PackedStringArray("Root", "Sprite", "CollisionShape")]
|
|
||||||
position = Vector2(8, 0)
|
|
||||||
script = ExtResource("3_0kbpg")
|
|
||||||
ExpansionSpeed = 16.0
|
|
||||||
Root = NodePath("..")
|
|
||||||
Sprite = NodePath("../Sprite2D")
|
|
||||||
CollisionShape = NodePath("../CollisionShape2D")
|
|
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=28 format=3 uid="uid://bwdlmualj6xbw"]
|
[gd_scene load_steps=29 format=3 uid="uid://bwdlmualj6xbw"]
|
||||||
|
|
||||||
[ext_resource type="Shader" uid="uid://bs4xvm4qkurpr" path="res://shaders/hit_flash.tres" id="1_ep4yr"]
|
[ext_resource type="Shader" uid="uid://bs4xvm4qkurpr" path="res://shaders/hit_flash.tres" id="1_ep4yr"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cu72810eyk4dx" path="res://sprites/enemy-robot.png" id="2_hjtwe"]
|
[ext_resource type="Texture2D" uid="uid://cu72810eyk4dx" path="res://sprites/enemy-robot.png" id="2_hjtwe"]
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
[ext_resource type="PackedScene" uid="uid://ck6nml06tm6ue" path="res://objects/fxs/ice_fx.tscn" id="16_68hnm"]
|
[ext_resource type="PackedScene" uid="uid://ck6nml06tm6ue" path="res://objects/fxs/ice_fx.tscn" id="16_68hnm"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b12tppjkkqpt4" path="res://objects/fxs/hit_particles.tscn" id="18_pxaaa"]
|
[ext_resource type="PackedScene" uid="uid://b12tppjkkqpt4" path="res://objects/fxs/hit_particles.tscn" id="18_pxaaa"]
|
||||||
[ext_resource type="Script" uid="uid://cgfynrn68lp12" path="res://scripts/components/KnockbackComponent.cs" id="19_xku20"]
|
[ext_resource type="Script" uid="uid://cgfynrn68lp12" path="res://scripts/components/KnockbackComponent.cs" id="19_xku20"]
|
||||||
|
[ext_resource type="Script" uid="uid://bhbgjr8ty2n85" path="res://scripts/components/EnemyControllerComponent.cs" id="20_5lji2"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pwwji"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pwwji"]
|
||||||
size = Vector2(25, 31)
|
size = Vector2(25, 31)
|
||||||
@@ -97,13 +98,12 @@ RightRay = NodePath("../Right Ray")
|
|||||||
LeftWallRay = NodePath("../Left Wall Ray")
|
LeftWallRay = NodePath("../Left Wall Ray")
|
||||||
RightWallRay = NodePath("../Right Wall Ray")
|
RightWallRay = NodePath("../Right Wall Ray")
|
||||||
|
|
||||||
[node name="PeriodicShootingComponent" type="Node" parent="." node_paths=PackedStringArray("SideToSideMovement", "BulletSpawnRight", "BulletSpawnLeft")]
|
[node name="PeriodicShootingComponent" type="Node" parent="." node_paths=PackedStringArray("BulletSpawnPointRight", "BulletSpawnPointLeft")]
|
||||||
script = ExtResource("6_lgbyy")
|
script = ExtResource("6_lgbyy")
|
||||||
BulletScene = ExtResource("7_r48kf")
|
BulletScene = ExtResource("7_r48kf")
|
||||||
SideToSideMovement = NodePath("../SideToSideMovement")
|
BulletSpawnPointRight = NodePath("../Sprite2D/right bullet spawn")
|
||||||
BulletSpawnRight = NodePath("../Sprite2D/right bullet spawn")
|
BulletSpawnPointLeft = NodePath("../Sprite2D/left bullet spawn")
|
||||||
BulletSpawnLeft = NodePath("../Sprite2D/left bullet spawn")
|
ShootingIntervalVariation = 0.3
|
||||||
ShootingIntervalVariation = 0.1
|
|
||||||
|
|
||||||
[node name="EnemyDeathComponent" type="Node" parent="." node_paths=PackedStringArray("CollisionShape", "Health")]
|
[node name="EnemyDeathComponent" type="Node" parent="." node_paths=PackedStringArray("CollisionShape", "Health")]
|
||||||
script = ExtResource("8_pxaaa")
|
script = ExtResource("8_pxaaa")
|
||||||
@@ -187,3 +187,9 @@ process_material = SubResource("ParticleProcessMaterial_pxaaa")
|
|||||||
[node name="KnockbackComponent" type="Node" parent="."]
|
[node name="KnockbackComponent" type="Node" parent="."]
|
||||||
script = ExtResource("19_xku20")
|
script = ExtResource("19_xku20")
|
||||||
metadata/_custom_type_script = "uid://cgfynrn68lp12"
|
metadata/_custom_type_script = "uid://cgfynrn68lp12"
|
||||||
|
|
||||||
|
[node name="EnemyControllerComponent" type="Node" parent="." node_paths=PackedStringArray("MovementComponent", "ShootingComponent")]
|
||||||
|
script = ExtResource("20_5lji2")
|
||||||
|
MovementComponent = NodePath("../SideToSideMovement")
|
||||||
|
ShootingComponent = NodePath("../PeriodicShootingComponent")
|
||||||
|
metadata/_custom_type_script = "uid://bhbgjr8ty2n85"
|
||||||
|
@@ -123,12 +123,12 @@ bus = &"sfx"
|
|||||||
script = ExtResource("6_q78ru")
|
script = ExtResource("6_q78ru")
|
||||||
Area = NodePath("../Hitbox")
|
Area = NodePath("../Hitbox")
|
||||||
|
|
||||||
[node name="PeriodicShootingComponent" type="Node" parent="." node_paths=PackedStringArray("BulletSpawnRight", "BulletSpawnLeft")]
|
[node name="PeriodicShootingComponent" type="Node" parent="." node_paths=PackedStringArray("BulletSpawnPointRight", "BulletSpawnPointLeft")]
|
||||||
script = ExtResource("7_weo6b")
|
script = ExtResource("7_weo6b")
|
||||||
BulletScene = ExtResource("7_4ajjm")
|
BulletScene = ExtResource("7_4ajjm")
|
||||||
ShootInterval = 2.0
|
ShootInterval = 2.0
|
||||||
BulletSpawnRight = NodePath("../laser spawn point right")
|
BulletSpawnPointRight = NodePath("../laser spawn point right")
|
||||||
BulletSpawnLeft = NodePath("../laser spawn point left")
|
BulletSpawnPointLeft = NodePath("../laser spawn point left")
|
||||||
ShootingIntervalVariation = 0.5
|
ShootingIntervalVariation = 0.5
|
||||||
|
|
||||||
[node name="EnemyDeathComponent" type="Node" parent="." node_paths=PackedStringArray("CollisionShape", "Health")]
|
[node name="EnemyDeathComponent" type="Node" parent="." node_paths=PackedStringArray("CollisionShape", "Health")]
|
||||||
|
39
objects/fxs/bounce_gfx.tscn
Normal file
39
objects/fxs/bounce_gfx.tscn
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
[gd_scene load_steps=6 format=3 uid="uid://qo2ngbnkix85"]
|
||||||
|
|
||||||
|
[sub_resource type="Gradient" id="Gradient_qxp43"]
|
||||||
|
offsets = PackedFloat32Array(0, 0.289256, 0.790634)
|
||||||
|
colors = PackedColorArray(0.635294, 1, 0.952941, 1, 0.380392, 0.827451, 0.890196, 1, 0.188235, 0.317647, 0.509804, 1)
|
||||||
|
|
||||||
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_1jx8o"]
|
||||||
|
gradient = SubResource("Gradient_qxp43")
|
||||||
|
use_hdr = true
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_8fwqm"]
|
||||||
|
_data = [Vector2(0.251928, 1), 0.0, -3.43942, 0, 0, Vector2(1, 0.340954), 0.0, 0.0, 0, 0]
|
||||||
|
point_count = 2
|
||||||
|
|
||||||
|
[sub_resource type="CurveTexture" id="CurveTexture_365fl"]
|
||||||
|
curve = SubResource("Curve_8fwqm")
|
||||||
|
|
||||||
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_wfuta"]
|
||||||
|
particle_flag_disable_z = true
|
||||||
|
emission_shape = 3
|
||||||
|
emission_box_extents = Vector3(10, 1, 1)
|
||||||
|
angle_min = -45.0
|
||||||
|
angle_max = 45.0
|
||||||
|
direction = Vector3(0, 1, 0)
|
||||||
|
spread = 15.0
|
||||||
|
initial_velocity_min = 5.0
|
||||||
|
initial_velocity_max = 10.0
|
||||||
|
gravity = Vector3(0, 98, 0)
|
||||||
|
scale_curve = SubResource("CurveTexture_365fl")
|
||||||
|
color_ramp = SubResource("GradientTexture1D_1jx8o")
|
||||||
|
|
||||||
|
[node name="BounceGFX" type="GPUParticles2D"]
|
||||||
|
emitting = false
|
||||||
|
amount = 52
|
||||||
|
one_shot = true
|
||||||
|
explosiveness = 1.0
|
||||||
|
fixed_fps = 24
|
||||||
|
collision_base_size = 3.32
|
||||||
|
process_material = SubResource("ParticleProcessMaterial_wfuta")
|
52
objects/fxs/foot_step_gfx.tscn
Normal file
52
objects/fxs/foot_step_gfx.tscn
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
[gd_scene load_steps=7 format=3 uid="uid://de5emerpbiknb"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://v7tt4w6bejux" path="res://scripts/components/CleanupComponent.cs" id="1_lnlfk"]
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_lnlfk"]
|
||||||
|
_data = [Vector2(0.00771208, 1), 0.0, 0.0, 0, 0, Vector2(0.347044, 0.89662), -1.20644, -1.20644, 0, 0, Vector2(1, 0.0114315), 0.0, 0.0, 0, 0]
|
||||||
|
point_count = 3
|
||||||
|
|
||||||
|
[sub_resource type="CurveTexture" id="CurveTexture_a3r26"]
|
||||||
|
curve = SubResource("Curve_lnlfk")
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_et0te"]
|
||||||
|
_data = [Vector2(0, 1), 0.0, -2.46687, 0, 0, Vector2(0.192802, 0.6834), 0.0, 0.0, 0, 0, Vector2(0.449871, 1), -0.471266, -0.471266, 0, 0, Vector2(1, 0), -3.06444, 0.0, 0, 0]
|
||||||
|
point_count = 4
|
||||||
|
|
||||||
|
[sub_resource type="CurveTexture" id="CurveTexture_lnlfk"]
|
||||||
|
width = 2048
|
||||||
|
curve = SubResource("Curve_et0te")
|
||||||
|
|
||||||
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_a3r26"]
|
||||||
|
particle_flag_disable_z = true
|
||||||
|
emission_shape = 1
|
||||||
|
emission_sphere_radius = 1.0
|
||||||
|
direction = Vector3(0, -1, 0)
|
||||||
|
spread = 0.93
|
||||||
|
flatness = 1.0
|
||||||
|
initial_velocity_min = 11.0
|
||||||
|
initial_velocity_max = 11.0
|
||||||
|
angular_velocity_min = -80.0
|
||||||
|
angular_velocity_max = -80.0
|
||||||
|
gravity = Vector3(0, 0, 0)
|
||||||
|
scale_min = 1.25
|
||||||
|
scale_max = 1.75
|
||||||
|
scale_curve = SubResource("CurveTexture_lnlfk")
|
||||||
|
color = Color(0.47451, 0.47451, 0.47451, 1)
|
||||||
|
alpha_curve = SubResource("CurveTexture_a3r26")
|
||||||
|
|
||||||
|
[node name="FootStepGfx" type="GPUParticles2D"]
|
||||||
|
emitting = false
|
||||||
|
amount = 42
|
||||||
|
lifetime = 2.0
|
||||||
|
one_shot = true
|
||||||
|
speed_scale = 2.0
|
||||||
|
explosiveness = 1.0
|
||||||
|
fixed_fps = 24
|
||||||
|
process_material = SubResource("ParticleProcessMaterial_a3r26")
|
||||||
|
|
||||||
|
[node name="CleanupComponent" type="Node" parent="."]
|
||||||
|
script = ExtResource("1_lnlfk")
|
||||||
|
metadata/_custom_type_script = "uid://v7tt4w6bejux"
|
||||||
|
|
||||||
|
[connection signal="finished" from="." to="CleanupComponent" method="CleanUp"]
|
52
objects/fxs/jump_cloud_fx.tscn
Normal file
52
objects/fxs/jump_cloud_fx.tscn
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
[gd_scene load_steps=7 format=3 uid="uid://bqhondao5bm6k"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://v7tt4w6bejux" path="res://scripts/components/CleanupComponent.cs" id="1_0051n"]
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_0051n"]
|
||||||
|
_data = [Vector2(0.00771208, 1), 0.0, 0.0, 0, 0, Vector2(0.347044, 0.89662), -1.20644, -1.20644, 0, 0, Vector2(1, 0.0114315), 0.0, 0.0, 0, 0]
|
||||||
|
point_count = 3
|
||||||
|
|
||||||
|
[sub_resource type="CurveTexture" id="CurveTexture_oxugj"]
|
||||||
|
curve = SubResource("Curve_0051n")
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_cc2b5"]
|
||||||
|
_data = [Vector2(0, 1), 0.0, -2.46687, 0, 0, Vector2(0.192802, 0.6834), 0.0, 0.0, 0, 0, Vector2(0.449871, 1), -0.471266, -0.471266, 0, 0, Vector2(1, 0), -3.06444, 0.0, 0, 0]
|
||||||
|
point_count = 4
|
||||||
|
|
||||||
|
[sub_resource type="CurveTexture" id="CurveTexture_qdic5"]
|
||||||
|
width = 2048
|
||||||
|
curve = SubResource("Curve_cc2b5")
|
||||||
|
|
||||||
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_vwfwg"]
|
||||||
|
particle_flag_disable_z = true
|
||||||
|
emission_shape = 1
|
||||||
|
emission_sphere_radius = 2.25
|
||||||
|
angle_min = 23.1
|
||||||
|
angle_max = 107.8
|
||||||
|
direction = Vector3(0, 1, 0)
|
||||||
|
spread = 4.0
|
||||||
|
initial_velocity_min = 8.0
|
||||||
|
initial_velocity_max = 8.0
|
||||||
|
angular_velocity_min = -80.0
|
||||||
|
angular_velocity_max = -80.0
|
||||||
|
gravity = Vector3(0, 0, 0)
|
||||||
|
scale_min = 3.0
|
||||||
|
scale_max = 4.0
|
||||||
|
scale_curve = SubResource("CurveTexture_qdic5")
|
||||||
|
alpha_curve = SubResource("CurveTexture_oxugj")
|
||||||
|
|
||||||
|
[node name="FootStepGfx" type="GPUParticles2D"]
|
||||||
|
emitting = false
|
||||||
|
amount = 64
|
||||||
|
lifetime = 2.0
|
||||||
|
one_shot = true
|
||||||
|
speed_scale = 4.0
|
||||||
|
explosiveness = 1.0
|
||||||
|
fixed_fps = 24
|
||||||
|
process_material = SubResource("ParticleProcessMaterial_vwfwg")
|
||||||
|
|
||||||
|
[node name="CleanupComponent" type="Node" parent="."]
|
||||||
|
script = ExtResource("1_0051n")
|
||||||
|
metadata/_custom_type_script = "uid://v7tt4w6bejux"
|
||||||
|
|
||||||
|
[connection signal="finished" from="." to="CleanupComponent" method="CleanUp"]
|
40
objects/level/moving_platform.tscn
Normal file
40
objects/level/moving_platform.tscn
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
[gd_scene load_steps=4 format=3 uid="uid://dt6rnh7v6dcmd"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://g4ryqvpelmvl" path="res://scripts/components/MovingPlatformComponent.cs" id="1_hd47u"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="2_6wunj"]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1avbh"]
|
||||||
|
size = Vector2(48, 4)
|
||||||
|
|
||||||
|
[node name="MovingPlatformComponent" type="AnimatableBody2D"]
|
||||||
|
script = ExtResource("1_hd47u")
|
||||||
|
metadata/_custom_type_script = "uid://g4ryqvpelmvl"
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
shape = SubResource("RectangleShape2D_1avbh")
|
||||||
|
|
||||||
|
[node name="Gfx" type="Node2D" parent="."]
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="Gfx"]
|
||||||
|
position = Vector2(-16, 6)
|
||||||
|
texture = ExtResource("2_6wunj")
|
||||||
|
hframes = 12
|
||||||
|
vframes = 12
|
||||||
|
frame = 81
|
||||||
|
|
||||||
|
[node name="Sprite2D2" type="Sprite2D" parent="Gfx"]
|
||||||
|
position = Vector2(0, 6)
|
||||||
|
texture = ExtResource("2_6wunj")
|
||||||
|
hframes = 12
|
||||||
|
vframes = 12
|
||||||
|
frame = 82
|
||||||
|
|
||||||
|
[node name="Sprite2D3" type="Sprite2D" parent="Gfx"]
|
||||||
|
position = Vector2(16, 6)
|
||||||
|
texture = ExtResource("2_6wunj")
|
||||||
|
hframes = 12
|
||||||
|
vframes = 12
|
||||||
|
frame = 83
|
||||||
|
|
||||||
|
[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
|
||||||
|
scale = Vector2(1, 0.2)
|
@@ -1,4 +1,4 @@
|
|||||||
[gd_resource type="TileSet" load_steps=15 format=3 uid="uid://bc5a20s6kuy8e"]
|
[gd_resource type="TileSet" load_steps=17 format=3 uid="uid://bc5a20s6kuy8e"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_ej5iv"]
|
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_ej5iv"]
|
||||||
[ext_resource type="PackedScene" uid="uid://54w4wisfj8v8" path="res://objects/entities/coin.tscn" id="2_31a0q"]
|
[ext_resource type="PackedScene" uid="uid://54w4wisfj8v8" path="res://objects/entities/coin.tscn" id="2_31a0q"]
|
||||||
@@ -6,8 +6,10 @@
|
|||||||
[ext_resource type="PackedScene" uid="uid://ct8fim6mduyl3" path="res://objects/entities/collapsing_bridge.tscn" id="3_x63lh"]
|
[ext_resource type="PackedScene" uid="uid://ct8fim6mduyl3" path="res://objects/entities/collapsing_bridge.tscn" id="3_x63lh"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bargnp4twtmxg" path="res://objects/entities/big_coin.tscn" id="4_ov0dn"]
|
[ext_resource type="PackedScene" uid="uid://bargnp4twtmxg" path="res://objects/entities/big_coin.tscn" id="4_ov0dn"]
|
||||||
[ext_resource type="PackedScene" uid="uid://buff711j0f2ph" path="res://objects/entities/spike_wheel.tscn" id="4_x63lh"]
|
[ext_resource type="PackedScene" uid="uid://buff711j0f2ph" path="res://objects/entities/spike_wheel.tscn" id="4_x63lh"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c0j1yun5s7kns" path="res://objects/entities/bouncing_mushroom.tscn" id="5_ov0dn"]
|
||||||
[ext_resource type="PackedScene" uid="uid://d08dfqmirnd66" path="res://objects/entities/big_treasure.tscn" id="5_xxibl"]
|
[ext_resource type="PackedScene" uid="uid://d08dfqmirnd66" path="res://objects/entities/big_treasure.tscn" id="5_xxibl"]
|
||||||
[ext_resource type="PackedScene" uid="uid://073ts5cxtwbl" path="res://objects/entities/treasure.tscn" id="6_fmgww"]
|
[ext_resource type="PackedScene" uid="uid://073ts5cxtwbl" path="res://objects/entities/treasure.tscn" id="6_fmgww"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dstko446qydsc" path="res://objects/entities/cannon.tscn" id="6_xxibl"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cm3rixnnev1pg" path="res://objects/entities/jump_pad.tscn" id="7_0kjxj"]
|
[ext_resource type="PackedScene" uid="uid://cm3rixnnev1pg" path="res://objects/entities/jump_pad.tscn" id="7_0kjxj"]
|
||||||
[ext_resource type="PackedScene" uid="uid://to2xnqev0pu1" path="res://objects/entities/cage.tscn" id="8_83o0w"]
|
[ext_resource type="PackedScene" uid="uid://to2xnqev0pu1" path="res://objects/entities/cage.tscn" id="8_83o0w"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bd51frym6mm7v" path="res://objects/entities/lever.tscn" id="9_at40q"]
|
[ext_resource type="PackedScene" uid="uid://bd51frym6mm7v" path="res://objects/entities/lever.tscn" id="9_at40q"]
|
||||||
@@ -149,6 +151,8 @@ scenes/8/scene = ExtResource("9_at40q")
|
|||||||
scenes/9/scene = ExtResource("10_ivcjr")
|
scenes/9/scene = ExtResource("10_ivcjr")
|
||||||
scenes/10/scene = ExtResource("3_31a0q")
|
scenes/10/scene = ExtResource("3_31a0q")
|
||||||
scenes/11/scene = ExtResource("4_x63lh")
|
scenes/11/scene = ExtResource("4_x63lh")
|
||||||
|
scenes/12/scene = ExtResource("5_ov0dn")
|
||||||
|
scenes/13/scene = ExtResource("6_xxibl")
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
physics_layer_0/collision_layer = 1
|
physics_layer_0/collision_layer = 1
|
||||||
|
@@ -1056,7 +1056,7 @@ texture = ExtResource("2_43n76")
|
|||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
physics_layer_0/collision_layer = 1
|
physics_layer_0/collision_layer = 1
|
||||||
physics_layer_0/collision_mask = 29
|
physics_layer_0/collision_mask = 93
|
||||||
terrain_set_0/mode = 0
|
terrain_set_0/mode = 0
|
||||||
terrain_set_0/terrain_0/name = "Village"
|
terrain_set_0/terrain_0/name = "Village"
|
||||||
terrain_set_0/terrain_0/color = Color(1, 1, 1, 1)
|
terrain_set_0/terrain_0/color = Color(1, 1, 1, 1)
|
||||||
|
170
scenes/level_village_5.tscn
Normal file
170
scenes/level_village_5.tscn
Normal file
File diff suppressed because one or more lines are too long
20
scripts/components/EnemyControllerComponent.cs
Normal file
20
scripts/components/EnemyControllerComponent.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
namespace Mr.BrickAdventures.scripts.components;
|
||||||
|
|
||||||
|
[GlobalClass]
|
||||||
|
public partial class EnemyControllerComponent : Node
|
||||||
|
{
|
||||||
|
[Export] public SideToSideMovementComponent MovementComponent { get; set; }
|
||||||
|
[Export] public PeriodicShootingComponent ShootingComponent { get; set; }
|
||||||
|
|
||||||
|
public override void _Process(double delta)
|
||||||
|
{
|
||||||
|
if (MovementComponent == null || ShootingComponent == null) return;
|
||||||
|
|
||||||
|
if (MovementComponent.Direction != Vector2.Zero)
|
||||||
|
{
|
||||||
|
ShootingComponent.ShootDirection = MovementComponent.Direction;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
scripts/components/EnemyControllerComponent.cs.uid
Normal file
1
scripts/components/EnemyControllerComponent.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://bhbgjr8ty2n85
|
55
scripts/components/FootstepGfx.cs
Normal file
55
scripts/components/FootstepGfx.cs
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
namespace Mr.BrickAdventures.scripts.components;
|
||||||
|
|
||||||
|
[GlobalClass]
|
||||||
|
public partial class FootstepGfx : Node2D
|
||||||
|
{
|
||||||
|
[Export] private PackedScene _particles;
|
||||||
|
[Export] private PlayerController _controller;
|
||||||
|
[Export] private Marker2D _marker;
|
||||||
|
|
||||||
|
[ExportGroup("Footstep Settings")]
|
||||||
|
[Export] private double _stepInterval = 0.5; // Time in seconds between steps
|
||||||
|
[Export] private double _stepIntervalRandomness = 0.1; // Randomness factor for step interval
|
||||||
|
[Export] private double _minMoveSpeed = 10.0; // Minimum speed to trigger footsteps
|
||||||
|
[Export] private double _randomOffsetRange = 5.0; // Range for random offset
|
||||||
|
|
||||||
|
private double _timeSinceLastStep = 0.0;
|
||||||
|
|
||||||
|
public override void _PhysicsProcess(double delta)
|
||||||
|
{
|
||||||
|
if (_controller == null || _particles == null) return;
|
||||||
|
|
||||||
|
var canMakeFootstep = _controller.IsOnFloor() && _controller.Velocity.Length() >= _minMoveSpeed;
|
||||||
|
|
||||||
|
if (canMakeFootstep)
|
||||||
|
{
|
||||||
|
_timeSinceLastStep += delta;
|
||||||
|
var randomFactor = GD.RandRange(-_stepIntervalRandomness, _stepIntervalRandomness);
|
||||||
|
var adjustedStepInterval = _stepInterval + randomFactor;
|
||||||
|
if (_timeSinceLastStep >= adjustedStepInterval)
|
||||||
|
{
|
||||||
|
SpawnFootstep();
|
||||||
|
_timeSinceLastStep = 0.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_timeSinceLastStep = 0.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SpawnFootstep()
|
||||||
|
{
|
||||||
|
if (_marker == null) return;
|
||||||
|
var randomOffset = new Vector2(
|
||||||
|
(float)GD.RandRange(-_randomOffsetRange, _randomOffsetRange),
|
||||||
|
(float)GD.RandRange(-_randomOffsetRange, _randomOffsetRange)
|
||||||
|
);
|
||||||
|
var newParticles = _particles.Instantiate<GpuParticles2D>();
|
||||||
|
newParticles.GlobalPosition = _marker.GlobalPosition + randomOffset;
|
||||||
|
GetTree().CurrentScene.AddChild(newParticles);
|
||||||
|
newParticles.Emitting = true;
|
||||||
|
}
|
||||||
|
}
|
1
scripts/components/FootstepGfx.cs.uid
Normal file
1
scripts/components/FootstepGfx.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://d3ksrjt1ek4gi
|
35
scripts/components/JumpGfxComponent.cs
Normal file
35
scripts/components/JumpGfxComponent.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
namespace Mr.BrickAdventures.scripts.components;
|
||||||
|
|
||||||
|
[GlobalClass]
|
||||||
|
public partial class JumpGfxComponent : Node2D
|
||||||
|
{
|
||||||
|
[Export] public PackedScene ParticleScene { get; set; }
|
||||||
|
[Export] public PlayerController Controller { get; set; }
|
||||||
|
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
if (Controller == null)
|
||||||
|
{
|
||||||
|
GD.PrintErr("JumpGfxComponent must have a reference to a PlayerController.");
|
||||||
|
SetProcess(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.JumpInitiated += OnJumpInitiated;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnJumpInitiated()
|
||||||
|
{
|
||||||
|
SpawnGfx();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SpawnGfx()
|
||||||
|
{
|
||||||
|
var particleInstance = ParticleScene.Instantiate<GpuParticles2D>();
|
||||||
|
particleInstance.GlobalPosition = GlobalPosition;
|
||||||
|
GetTree().CurrentScene.AddChild(particleInstance);
|
||||||
|
particleInstance.Emitting = true;
|
||||||
|
}
|
||||||
|
}
|
1
scripts/components/JumpGfxComponent.cs.uid
Normal file
1
scripts/components/JumpGfxComponent.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://bpopfy6m4a0br
|
@@ -11,6 +11,7 @@ public partial class JumpPadComponent : Node
|
|||||||
[Export] public Sprite2D Sprite { get; set; }
|
[Export] public Sprite2D Sprite { get; set; }
|
||||||
[Export] public int StartAnimationIndex { get; set; } = 0;
|
[Export] public int StartAnimationIndex { get; set; } = 0;
|
||||||
[Export] public float AnimationDuration { get; set; } = 0.5f;
|
[Export] public float AnimationDuration { get; set; } = 0.5f;
|
||||||
|
[Export] public GpuParticles2D Particles { get; set; }
|
||||||
|
|
||||||
public override void _Ready()
|
public override void _Ready()
|
||||||
{
|
{
|
||||||
@@ -27,6 +28,7 @@ public partial class JumpPadComponent : Node
|
|||||||
_ = HandleLaunchPadAnimation();
|
_ = HandleLaunchPadAnimation();
|
||||||
player.Velocity = new Vector2(player.Velocity.X, -JumpForce);
|
player.Velocity = new Vector2(player.Velocity.X, -JumpForce);
|
||||||
player.EmitSignal(PlayerController.SignalName.JumpInitiated);
|
player.EmitSignal(PlayerController.SignalName.JumpInitiated);
|
||||||
|
Particles?.Restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task HandleLaunchPadAnimation()
|
private async Task HandleLaunchPadAnimation()
|
||||||
|
74
scripts/components/MovingPlatformComponent.cs
Normal file
74
scripts/components/MovingPlatformComponent.cs
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
namespace Mr.BrickAdventures.scripts.components;
|
||||||
|
|
||||||
|
[GlobalClass]
|
||||||
|
public partial class MovingPlatformComponent : AnimatableBody2D
|
||||||
|
{
|
||||||
|
public enum LoopModeEnum { OneShot, Loop, PingPong }
|
||||||
|
|
||||||
|
[Export] public Path2D Path { get; set; }
|
||||||
|
[Export(PropertyHint.Range, "10, 1000, 1")] public float Speed { get; set; } = 100.0f;
|
||||||
|
[Export] public LoopModeEnum LoopMode { get; set; } = LoopModeEnum.PingPong;
|
||||||
|
[Export(PropertyHint.Range, "0, 10, 0.1")] public float WaitTime { get; set; } = 1.0f;
|
||||||
|
|
||||||
|
private PathFollow2D _pathFollower;
|
||||||
|
private Tween _tween;
|
||||||
|
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
if (Path == null)
|
||||||
|
{
|
||||||
|
GD.PrintErr("MovingPlatform: Path is not set. The platform will not move.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_pathFollower = new PathFollow2D
|
||||||
|
{
|
||||||
|
Loop = false,
|
||||||
|
Rotates = false
|
||||||
|
};
|
||||||
|
Path.AddChild(_pathFollower);
|
||||||
|
|
||||||
|
StartMovement();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void _PhysicsProcess(double delta)
|
||||||
|
{
|
||||||
|
if (_pathFollower == null) return;
|
||||||
|
|
||||||
|
GlobalPosition = _pathFollower.GlobalPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void StartMovement()
|
||||||
|
{
|
||||||
|
_tween?.Kill();
|
||||||
|
_tween = CreateTween();
|
||||||
|
_tween.SetParallel(false);
|
||||||
|
|
||||||
|
var pathLength =Path.Curve.GetBakedLength();
|
||||||
|
var duration = pathLength / Speed;
|
||||||
|
|
||||||
|
switch (LoopMode)
|
||||||
|
{
|
||||||
|
case LoopModeEnum.OneShot:
|
||||||
|
_tween.TweenProperty(_pathFollower, "progress", pathLength, duration);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case LoopModeEnum.Loop:
|
||||||
|
_tween.TweenProperty(_pathFollower, "progress", pathLength, duration);
|
||||||
|
_tween.TweenInterval(WaitTime);
|
||||||
|
_tween.TweenCallback(Callable.From(() => _pathFollower.Progress = 0));
|
||||||
|
_tween.SetLoops();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case LoopModeEnum.PingPong:
|
||||||
|
_tween.TweenProperty(_pathFollower, "progress", pathLength, duration);
|
||||||
|
_tween.TweenInterval(WaitTime);
|
||||||
|
_tween.TweenProperty(_pathFollower, "progress", 0, duration);
|
||||||
|
_tween.TweenInterval(WaitTime);
|
||||||
|
_tween.SetLoops();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
scripts/components/MovingPlatformComponent.cs.uid
Normal file
1
scripts/components/MovingPlatformComponent.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://g4ryqvpelmvl
|
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using Godot;
|
using Godot;
|
||||||
|
|
||||||
namespace Mr.BrickAdventures.scripts.components;
|
namespace Mr.BrickAdventures.scripts.components;
|
||||||
@@ -8,31 +9,29 @@ public partial class PeriodicShootingComponent : Node
|
|||||||
[Export] public PackedScene BulletScene { get; set; }
|
[Export] public PackedScene BulletScene { get; set; }
|
||||||
[Export] public float ShootInterval { get; set; } = 1.0f;
|
[Export] public float ShootInterval { get; set; } = 1.0f;
|
||||||
[Export] public Vector2 ShootDirection { get; set; } = Vector2.Right;
|
[Export] public Vector2 ShootDirection { get; set; } = Vector2.Right;
|
||||||
[Export] public SideToSideMovementComponent SideToSideMovement { get; set; }
|
[Export] public Node2D BulletSpawnPointRight { get; set; }
|
||||||
[Export] public Node2D BulletSpawnRight { get; set; }
|
[Export] public Node2D BulletSpawnPointLeft { get; set; }
|
||||||
[Export] public Node2D BulletSpawnLeft { get; set; }
|
|
||||||
[Export] public float ShootingIntervalVariation { get; set; } = 0.0f;
|
[Export] public float ShootingIntervalVariation { get; set; } = 0.0f;
|
||||||
|
|
||||||
|
[Signal] public delegate void ShotFiredEventHandler(Vector2 shootDirection);
|
||||||
|
|
||||||
private Timer _timer;
|
private Timer _timer;
|
||||||
|
private RandomNumberGenerator _rng;
|
||||||
|
|
||||||
public override void _Ready()
|
public override void _Ready()
|
||||||
{
|
{
|
||||||
|
_rng = new RandomNumberGenerator();
|
||||||
SetupTimer();
|
SetupTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void _Process(double delta)
|
|
||||||
{
|
|
||||||
if (SideToSideMovement == null) return;
|
|
||||||
|
|
||||||
ShootDirection = SideToSideMovement.Direction != Vector2.Zero ? SideToSideMovement.Direction : Vector2.Right;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SetupTimer()
|
private void SetupTimer()
|
||||||
{
|
{
|
||||||
_timer = new Timer();
|
_timer = new Timer
|
||||||
_timer.WaitTime = GetShootInterval();
|
{
|
||||||
_timer.OneShot = false;
|
WaitTime = GetNextShootInterval(),
|
||||||
_timer.Autostart = true;
|
OneShot = false,
|
||||||
|
Autostart = true
|
||||||
|
};
|
||||||
_timer.Timeout += OnTimerTimeout;
|
_timer.Timeout += OnTimerTimeout;
|
||||||
AddChild(_timer);
|
AddChild(_timer);
|
||||||
}
|
}
|
||||||
@@ -40,33 +39,53 @@ public partial class PeriodicShootingComponent : Node
|
|||||||
private void OnTimerTimeout()
|
private void OnTimerTimeout()
|
||||||
{
|
{
|
||||||
Shoot();
|
Shoot();
|
||||||
_timer.Start();
|
_timer.WaitTime = GetNextShootInterval();
|
||||||
}
|
}
|
||||||
|
|
||||||
private double GetShootInterval()
|
private double GetNextShootInterval()
|
||||||
{
|
{
|
||||||
if (ShootingIntervalVariation == 0f) return ShootInterval;
|
if (ShootingIntervalVariation <= 0f)
|
||||||
|
{
|
||||||
|
return ShootInterval;
|
||||||
|
}
|
||||||
|
|
||||||
var rng = new RandomNumberGenerator();
|
return Math.Max(0.01, ShootInterval + _rng.RandfRange(-ShootingIntervalVariation, ShootingIntervalVariation));
|
||||||
return ShootInterval + rng.RandfRange(-ShootingIntervalVariation, ShootingIntervalVariation);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Shoot()
|
private void Shoot()
|
||||||
{
|
{
|
||||||
|
if (BulletScene == null)
|
||||||
|
{
|
||||||
|
GD.PushError("PeriodicShootingComponent: BulletScene is not set.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ShootDirection == Vector2.Zero) return;
|
if (ShootDirection == Vector2.Zero) return;
|
||||||
|
|
||||||
|
var spawnNode = (ShootDirection.X >= 0 || BulletSpawnPointLeft == null)
|
||||||
|
? BulletSpawnPointRight
|
||||||
|
: BulletSpawnPointLeft;
|
||||||
|
|
||||||
|
if (spawnNode == null)
|
||||||
|
{
|
||||||
|
GD.PrintErr("PeriodicShootingComponent: A suitable bullet spawn point is not set.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var root = Owner as Node2D;
|
var spawnPosition = spawnNode.GlobalPosition;
|
||||||
|
var owner = Owner as Node2D;
|
||||||
|
var ownerRotation = owner?.Rotation ?? 0f;
|
||||||
|
|
||||||
var bulletInstance = BulletScene.Instantiate<Node2D>();
|
var bulletInstance = BulletScene.Instantiate<Node2D>();
|
||||||
var launchComponent = bulletInstance.GetNodeOrNull<LaunchComponent>("LaunchComponent");
|
if (bulletInstance.GetNodeOrNull<LaunchComponent>("LaunchComponent") is { } launchComponent)
|
||||||
var spawnPosition = ShootDirection == Vector2.Right ? BulletSpawnRight.GlobalPosition : BulletSpawnLeft.GlobalPosition;
|
|
||||||
if (launchComponent != null)
|
|
||||||
{
|
{
|
||||||
launchComponent.InitialDirection = ShootDirection;
|
launchComponent.InitialDirection = ShootDirection;
|
||||||
launchComponent.SpawnPosition = spawnPosition;
|
launchComponent.SpawnPosition = spawnPosition;
|
||||||
if (root != null) launchComponent.SpawnRotation = root.Rotation;
|
launchComponent.SpawnRotation = ownerRotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
bulletInstance.Position = spawnPosition;
|
bulletInstance.GlobalPosition = spawnPosition;
|
||||||
GetTree().CurrentScene.AddChild(bulletInstance);
|
GetTree().CurrentScene.AddChild(bulletInstance);
|
||||||
|
EmitSignalShotFired(ShootDirection);
|
||||||
}
|
}
|
||||||
}
|
}
|
51
scripts/components/RecoilComponent.cs
Normal file
51
scripts/components/RecoilComponent.cs
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
namespace Mr.BrickAdventures.scripts.components;
|
||||||
|
|
||||||
|
[GlobalClass]
|
||||||
|
public partial class RecoilComponent : Node
|
||||||
|
{
|
||||||
|
[Export] public Node2D RecoilTarget { get; set; }
|
||||||
|
[Export] public float RecoilDistance { get; set; } = 8f;
|
||||||
|
[Export] public float RecoilDuration { get; set; } = 0.1f;
|
||||||
|
|
||||||
|
private Vector2 _originalPosition;
|
||||||
|
private Tween _recoilTween;
|
||||||
|
private PeriodicShootingComponent _shootingComponent;
|
||||||
|
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
RecoilTarget ??= Owner as Node2D;
|
||||||
|
if (RecoilTarget == null)
|
||||||
|
{
|
||||||
|
GD.PushError("RecoilComponent: RecoilTarget is null");
|
||||||
|
SetProcess(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_originalPosition = RecoilTarget.Position;
|
||||||
|
|
||||||
|
_shootingComponent = Owner.GetNodeOrNull<PeriodicShootingComponent>("PeriodicShootingComponent");
|
||||||
|
if (_shootingComponent != null)
|
||||||
|
{
|
||||||
|
_shootingComponent.ShotFired += TriggerRecoil;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TriggerRecoil(Vector2 shootDirection)
|
||||||
|
{
|
||||||
|
if (RecoilTarget == null) return;
|
||||||
|
|
||||||
|
_recoilTween?.Kill();
|
||||||
|
|
||||||
|
var recoilDirection = -shootDirection.Normalized();
|
||||||
|
var recoilPosition = _originalPosition + recoilDirection * RecoilDistance;
|
||||||
|
|
||||||
|
_recoilTween = CreateTween();
|
||||||
|
_recoilTween.SetEase(Tween.EaseType.Out);
|
||||||
|
_recoilTween.SetTrans(Tween.TransitionType.Cubic);
|
||||||
|
|
||||||
|
_recoilTween.TweenProperty(RecoilTarget, "position", recoilPosition, RecoilDuration / 2);
|
||||||
|
_recoilTween.TweenProperty(RecoilTarget, "position", _originalPosition, RecoilDuration / 2).SetDelay(RecoilDuration / 2);
|
||||||
|
}
|
||||||
|
}
|
1
scripts/components/RecoilComponent.cs.uid
Normal file
1
scripts/components/RecoilComponent.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://b3j23e7b7x8ro
|
71
scripts/components/SquashAndStretchComponent.cs
Normal file
71
scripts/components/SquashAndStretchComponent.cs
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
namespace Mr.BrickAdventures.scripts.components;
|
||||||
|
|
||||||
|
[GlobalClass]
|
||||||
|
public partial class SquashAndStretchComponent : Node
|
||||||
|
{
|
||||||
|
[Export] public Node2D TargetNode { get; set; }
|
||||||
|
[Export(PropertyHint.Range, "0.1, 1.0, 0.01")] public float AnimationDuration { get; set; } = 0.25f;
|
||||||
|
|
||||||
|
[ExportGroup("Effect Strength")]
|
||||||
|
[Export(PropertyHint.Range, "1.0, 2.0, 0.05")] public float SquashFactor { get; set; } = 1.2f;
|
||||||
|
[Export(PropertyHint.Range, "0.5, 1.0, 0.05")] public float StretchFactor { get; set; } = 0.8f;
|
||||||
|
|
||||||
|
private Vector2 _originalScale;
|
||||||
|
private Tween _tween;
|
||||||
|
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
TargetNode ??= Owner as Node2D;
|
||||||
|
|
||||||
|
if (TargetNode == null)
|
||||||
|
{
|
||||||
|
GD.PrintErr("SquashAndStretchComponent: No valid TargetNode found. Disabling component.");
|
||||||
|
SetProcess(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_originalScale = TargetNode.Scale;
|
||||||
|
|
||||||
|
var shootingComponent = Owner.GetNodeOrNull<PeriodicShootingComponent>("PeriodicShootingComponent");
|
||||||
|
if (shootingComponent != null)
|
||||||
|
{
|
||||||
|
shootingComponent.ShotFired += OnShotFired;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GD.PrintErr("SquashAndStretchComponent requires a PeriodicShootingComponent on the same owner to function.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnShotFired(Vector2 shootDirection)
|
||||||
|
{
|
||||||
|
if (TargetNode == null) return;
|
||||||
|
|
||||||
|
_tween?.Kill();
|
||||||
|
|
||||||
|
Vector2 squashScale;
|
||||||
|
Vector2 stretchScale;
|
||||||
|
|
||||||
|
if (Mathf.Abs(shootDirection.X) > Mathf.Abs(shootDirection.Y))
|
||||||
|
{
|
||||||
|
squashScale = new Vector2(StretchFactor, SquashFactor) * _originalScale;
|
||||||
|
stretchScale = new Vector2(SquashFactor, StretchFactor) * _originalScale;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
squashScale = new Vector2(SquashFactor, StretchFactor) * _originalScale;
|
||||||
|
stretchScale = new Vector2(StretchFactor, SquashFactor) * _originalScale;
|
||||||
|
}
|
||||||
|
|
||||||
|
_tween = CreateTween();
|
||||||
|
_tween.SetTrans(Tween.TransitionType.Elastic).SetEase(Tween.EaseType.Out);
|
||||||
|
|
||||||
|
var partDuration = AnimationDuration / 3.0f;
|
||||||
|
|
||||||
|
_tween.TweenProperty(TargetNode, "scale", squashScale, partDuration);
|
||||||
|
_tween.TweenProperty(TargetNode, "scale", stretchScale, partDuration);
|
||||||
|
_tween.TweenProperty(TargetNode, "scale", _originalScale, partDuration);
|
||||||
|
}
|
||||||
|
}
|
1
scripts/components/SquashAndStretchComponent.cs.uid
Normal file
1
scripts/components/SquashAndStretchComponent.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://c707c53k7c5ae
|
BIN
sprites/bouncing_mushroom.png
Normal file
BIN
sprites/bouncing_mushroom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 479 B |
34
sprites/bouncing_mushroom.png.import
Normal file
34
sprites/bouncing_mushroom.png.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bu0yv6rktj221"
|
||||||
|
path="res://.godot/imported/bouncing_mushroom.png-60ba3b31dc13cf870987497004bff09d.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sprites/bouncing_mushroom.png"
|
||||||
|
dest_files=["res://.godot/imported/bouncing_mushroom.png-60ba3b31dc13cf870987497004bff09d.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=false
|
||||||
|
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=1
|
Reference in New Issue
Block a user