mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 08:55:54 +00:00
Bad tank movement
This commit is contained in:
parent
12f0062fe8
commit
90d2a95fa8
10 changed files with 514 additions and 8 deletions
245
Scenes/Actors/ActorEnemyTest.tscn
Normal file
245
Scenes/Actors/ActorEnemyTest.tscn
Normal file
|
|
@ -0,0 +1,245 @@
|
|||
[gd_scene load_steps=32 format=3 uid="uid://bqjcwxene73l2"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Components/Actors/Actor.cs" id="1_k5cyk"]
|
||||
[ext_resource type="Texture2D" uid="uid://hukxr2e63gky" path="res://Sprites/Actors/Robot3.png" id="2_wt8wl"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/Actors/ActorTankMovement.cs" id="3_738kr"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/Actors/KeyboardInputProvider.cs" id="4_8bcq6"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/Actors/AnimationHandler.cs" id="5_c7ovk"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_spe0p"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wjwtx"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3ip5h"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_48rwl"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 224, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t3srr"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 224, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rfyhw"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 224, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vwjtc"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 32, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_synp8"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 32, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qwhd0"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 32, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ue6d2"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 192, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0ofyy"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 192, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_36xaf"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 192, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q325s"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 64, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0ao0j"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 64, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7gqg8"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 64, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qjdm5"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 128, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w72lm"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 128, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_p3mq3"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 128, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_p7tp3"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 160, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lvaxr"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 160, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y3l85"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 160, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v1l62"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(0, 96, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b8g6v"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(16, 96, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ykxak"]
|
||||
atlas = ExtResource("2_wt8wl")
|
||||
region = Rect2(32, 96, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ix17a"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_spe0p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wjwtx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3ip5h")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_down",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_48rwl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t3srr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rfyhw")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_down_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vwjtc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_synp8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qwhd0")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_down_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ue6d2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0ofyy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_36xaf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q325s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0ao0j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7gqg8")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qjdm5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w72lm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_p3mq3")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_up",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_p7tp3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lvaxr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_y3l85")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_up_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v1l62")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b8g6v")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ykxak")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk_up_right",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_2b36v"]
|
||||
radius = 5.0
|
||||
|
||||
[node name="ActorEnemyTest" type="CharacterBody2D"]
|
||||
collision_layer = 16
|
||||
collision_mask = 115
|
||||
script = ExtResource("1_k5cyk")
|
||||
MovementSpeed = 40.0
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, 4)
|
||||
sprite_frames = SubResource("SpriteFrames_ix17a")
|
||||
animation = &"walk_down"
|
||||
|
||||
[node name="MovementProvider" type="Node2D" parent="."]
|
||||
script = ExtResource("3_738kr")
|
||||
|
||||
[node name="InputProvider" type="Node2D" parent="MovementProvider"]
|
||||
script = ExtResource("4_8bcq6")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_2b36v")
|
||||
|
||||
[node name="AnimationHandler" type="Node2D" parent="." node_paths=PackedStringArray("_animatedSprite")]
|
||||
script = ExtResource("5_c7ovk")
|
||||
_animatedSprite = NodePath("../AnimatedSprite2D")
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=69 format=4 uid="uid://bv451a8wgty4u"]
|
||||
[gd_scene load_steps=70 format=4 uid="uid://bv451a8wgty4u"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_8tmoj"]
|
||||
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_8mh54"]
|
||||
|
|
@ -59,6 +59,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://cd36ch65jijg0" path="res://Scenes/Activable/BulletEmitter.tscn" id="49_64oga"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5fiv1nioghfb" path="res://Scenes/Actors/Marisa.tscn" id="50_mp5ma"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/Events/ControlEnemyEvent.cs" id="52_5m7td"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqjcwxene73l2" path="res://Scenes/Actors/ActorEnemyTest.tscn" id="55_chha6"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8wuck"]
|
||||
|
||||
|
|
@ -515,6 +516,9 @@ offset_bottom = 2.0
|
|||
text = "Briefing Test"
|
||||
label_settings = ExtResource("14_c4c20")
|
||||
|
||||
[node name="ActorEnemyTest" parent="Computer4" instance=ExtResource("55_chha6")]
|
||||
position = Vector2(100, 104)
|
||||
|
||||
[node name="Ammo1" parent="." instance=ExtResource("34_17pjh")]
|
||||
position = Vector2(-792, -396)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue