mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 07:15:53 +00:00
Mainframe
This commit is contained in:
parent
fc833ae300
commit
a13355be42
16 changed files with 369 additions and 13 deletions
|
|
@ -6,6 +6,7 @@ using Cirno.Scripts.Resources;
|
|||
|
||||
public partial class Barrel : Area2D, IDestructible
|
||||
{
|
||||
[Export] public bool Indestructible { get; private set; }
|
||||
[Export] public float Health = 1f;
|
||||
|
||||
[Export] public float ExplosionRadius = 1;
|
||||
|
|
@ -132,7 +133,7 @@ public partial class Barrel : Area2D, IDestructible
|
|||
|
||||
public void Hit(float damage, DamageType damageType = DamageType.Neutral)
|
||||
{
|
||||
if (_isDestroyed) return;
|
||||
if (_isDestroyed || Indestructible) return;
|
||||
|
||||
_currentHealth -= damage;
|
||||
if (_currentHealth > 0) return;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=19 format=4 uid="uid://bx31ou6tw3kd1"]
|
||||
[gd_scene load_steps=21 format=4 uid="uid://bx31ou6tw3kd1"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_jpse7"]
|
||||
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_4hnih"]
|
||||
|
|
@ -16,6 +16,8 @@
|
|||
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="6_tf4ep"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/Events/DialogueStartEvent.cs" id="7_u7oae"]
|
||||
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="9_700kw"]
|
||||
[ext_resource type="PackedScene" uid="uid://cke02i4e3bxld" path="res://Scenes/Props/MainFrame2.tscn" id="17_u3bx7"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqrkisw6jg24w" path="res://Scenes/Props/MainFrame1.tscn" id="18_27jx1"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_53p3c"]
|
||||
script = ExtResource("4_ls56o")
|
||||
|
|
@ -111,3 +113,15 @@ position = Vector2(111, 305)
|
|||
|
||||
[node name="AlarmManager" type="Node2D" parent="."]
|
||||
script = ExtResource("6_m31cm")
|
||||
|
||||
[node name="Mainframe2" parent="." instance=ExtResource("17_u3bx7")]
|
||||
position = Vector2(275, 511)
|
||||
|
||||
[node name="Mainframe" parent="." instance=ExtResource("18_27jx1")]
|
||||
position = Vector2(248, 511)
|
||||
|
||||
[node name="Mainframe3" parent="." instance=ExtResource("18_27jx1")]
|
||||
position = Vector2(264, 511)
|
||||
|
||||
[node name="Mainframe4" parent="." instance=ExtResource("18_27jx1")]
|
||||
position = Vector2(287, 511)
|
||||
|
|
|
|||
60
Scenes/Props/MainFrame1.tscn
Normal file
60
Scenes/Props/MainFrame1.tscn
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cqrkisw6jg24w"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scenes/Barrel.cs" id="1_503tw"]
|
||||
[ext_resource type="Texture2D" uid="uid://dq8wg0n5q7b6b" path="res://Sprites/Props/MainFrame1.png" id="2_4mou8"]
|
||||
[ext_resource type="PackedScene" uid="uid://bxvsefskms5kj" path="res://Scenes/Props/MainFrame1_Broken.tscn" id="2_pr6n8"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5da8j"]
|
||||
atlas = ExtResource("2_4mou8")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mli0e"]
|
||||
atlas = ExtResource("2_4mou8")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_kpm16"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5da8j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mli0e")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
|
||||
size = Vector2(14, 24)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vguns"]
|
||||
size = Vector2(13, 20)
|
||||
|
||||
[node name="Mainframe" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_503tw")
|
||||
Health = 8.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
DebrisScene = ExtResource("2_pr6n8")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_kpm16")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.193815
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0.5, -3)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
50
Scenes/Props/MainFrame1_Broken.tscn
Normal file
50
Scenes/Props/MainFrame1_Broken.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://bxvsefskms5kj"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scenes/Barrel.cs" id="1_ybt0d"]
|
||||
[ext_resource type="Texture2D" uid="uid://dq8wg0n5q7b6b" path="res://Sprites/Props/MainFrame1.png" id="2_ep53m"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h5128"]
|
||||
atlas = ExtResource("2_ep53m")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_qdal4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h5128")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
|
||||
size = Vector2(14, 24)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vguns"]
|
||||
size = Vector2(13, 20)
|
||||
|
||||
[node name="Mainframe" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_ybt0d")
|
||||
Indestructible = true
|
||||
Health = 8.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_qdal4")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0.5, -3)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
59
Scenes/Props/MainFrame2.tscn
Normal file
59
Scenes/Props/MainFrame2.tscn
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cke02i4e3bxld"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scenes/Barrel.cs" id="1_ob786"]
|
||||
[ext_resource type="PackedScene" uid="uid://baye68t8ikn01" path="res://Scenes/Props/MainFrame2_Broken.tscn" id="2_o2ikx"]
|
||||
[ext_resource type="Texture2D" uid="uid://brpfyvd44r0ha" path="res://Sprites/Props/MainFrame2.png" id="2_y51ds"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ida3m"]
|
||||
atlas = ExtResource("2_y51ds")
|
||||
region = Rect2(0, 0, 8, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iqtwx"]
|
||||
atlas = ExtResource("2_y51ds")
|
||||
region = Rect2(8, 0, 8, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_8ejte"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ida3m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iqtwx")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
|
||||
size = Vector2(6, 24)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vguns"]
|
||||
size = Vector2(6, 20)
|
||||
|
||||
[node name="Mainframe2" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_ob786")
|
||||
Health = 8.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
DebrisScene = ExtResource("2_o2ikx")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_8ejte")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
50
Scenes/Props/MainFrame2_Broken.tscn
Normal file
50
Scenes/Props/MainFrame2_Broken.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://baye68t8ikn01"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scenes/Barrel.cs" id="1_a45cr"]
|
||||
[ext_resource type="Texture2D" uid="uid://brpfyvd44r0ha" path="res://Sprites/Props/MainFrame2.png" id="2_moasd"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g5e65"]
|
||||
atlas = ExtResource("2_moasd")
|
||||
region = Rect2(16, 0, 8, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_modcc"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g5e65")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
|
||||
size = Vector2(6, 24)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vguns"]
|
||||
size = Vector2(6, 20)
|
||||
|
||||
[node name="Mainframe2Broken" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_a45cr")
|
||||
Indestructible = true
|
||||
Health = 8.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_modcc")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
File diff suppressed because one or more lines are too long
BIN
Sprites/Props/MainFrame1.aseprite
(Stored with Git LFS)
Normal file
BIN
Sprites/Props/MainFrame1.aseprite
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Sprites/Props/MainFrame1.png
(Stored with Git LFS)
Normal file
BIN
Sprites/Props/MainFrame1.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
Sprites/Props/MainFrame1.png.import
Normal file
34
Sprites/Props/MainFrame1.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dq8wg0n5q7b6b"
|
||||
path="res://.godot/imported/MainFrame1.png-8d5707f8a77aeac4d8904733050ffc49.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Props/MainFrame1.png"
|
||||
dest_files=["res://.godot/imported/MainFrame1.png-8d5707f8a77aeac4d8904733050ffc49.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
|
||||
BIN
Sprites/Props/MainFrame2.aseprite
(Stored with Git LFS)
Normal file
BIN
Sprites/Props/MainFrame2.aseprite
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Sprites/Props/MainFrame2.png
(Stored with Git LFS)
Normal file
BIN
Sprites/Props/MainFrame2.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
Sprites/Props/MainFrame2.png.import
Normal file
34
Sprites/Props/MainFrame2.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://brpfyvd44r0ha"
|
||||
path="res://.godot/imported/MainFrame2.png-23b0e927f1983ba2fc81fd21e7bfee25.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Props/MainFrame2.png"
|
||||
dest_files=["res://.godot/imported/MainFrame2.png-23b0e927f1983ba2fc81fd21e7bfee25.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
|
||||
BIN
Tilesets/factory.aseprite
(Stored with Git LFS)
BIN
Tilesets/factory.aseprite
(Stored with Git LFS)
Binary file not shown.
BIN
Tilesets/factory.png
(Stored with Git LFS)
BIN
Tilesets/factory.png
(Stored with Git LFS)
Binary file not shown.
|
|
@ -1,10 +1,11 @@
|
|||
[gd_resource type="TileSet" load_steps=34 format=3 uid="uid://6k28roiljylj"]
|
||||
[gd_resource type="TileSet" load_steps=35 format=3 uid="uid://6k28roiljylj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://tphqodqyere1" path="res://Tilesets/factory.png" id="1_70kxh"]
|
||||
[ext_resource type="PackedScene" uid="uid://bj28qiai2x2ar" path="res://Scenes/Props/Barrel.tscn" id="2_cxg4b"]
|
||||
[ext_resource type="PackedScene" uid="uid://c27co22bjym3c" path="res://Scenes/Actors/Camera.tscn" id="3_fhx8p"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgk7fgwiis425" path="res://Scenes/Props/Box_Red.tscn" id="3_hrh63"]
|
||||
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="4_brv02"]
|
||||
[ext_resource type="PackedScene" uid="uid://dux8pv1y8wkt0" path="res://Scenes/Props/Capacitor.tscn" id="4_rjv5q"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqq3q37hugdlj" path="res://Scenes/Door.tscn" id="5_1xipm"]
|
||||
[ext_resource type="PackedScene" uid="uid://uaf5r6cd71hu" path="res://Scenes/Props/LargeTank.tscn" id="6_p8eu6"]
|
||||
[ext_resource type="PackedScene" uid="uid://7cpk3c3d8cl7" path="res://Scenes/Props/MediumLiquidTank.tscn" id="7_k6a3n"]
|
||||
|
|
@ -232,7 +233,10 @@ texture = ExtResource("1_70kxh")
|
|||
6:4/0 = 0
|
||||
7:4/0 = 0
|
||||
8:4/0 = 0
|
||||
9:4/next_alternative_id = 2
|
||||
9:4/0 = 0
|
||||
9:4/1 = 1
|
||||
9:4/1/flip_v = true
|
||||
0:5/0 = 0
|
||||
0:5/0/z_index = 1
|
||||
0:5/0/terrain_set = 0
|
||||
|
|
@ -862,6 +866,14 @@ texture = ExtResource("1_70kxh")
|
|||
10:4/0 = 0
|
||||
10:14/0 = 0
|
||||
10:15/0 = 0
|
||||
6:14/0 = 0
|
||||
7:14/0 = 0
|
||||
8:14/0 = 0
|
||||
9:14/0 = 0
|
||||
9:15/0 = 0
|
||||
8:15/0 = 0
|
||||
7:15/0 = 0
|
||||
6:15/0 = 0
|
||||
|
||||
[sub_resource type="TileSetScenesCollectionSource" id="TileSetScenesCollectionSource_qg3vu"]
|
||||
resource_name = "Props"
|
||||
|
|
@ -875,6 +887,7 @@ scenes/7/scene = ExtResource("8_vuaww")
|
|||
scenes/8/scene = ExtResource("9_wc4jy")
|
||||
scenes/9/scene = ExtResource("10_hg2bp")
|
||||
scenes/10/scene = ExtResource("3_fhx8p")
|
||||
scenes/11/scene = ExtResource("4_rjv5q")
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_wgdjv"]
|
||||
texture = ExtResource("12_fb37q")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue