bullets, bullet factory, shove attack, scenemanager
This commit is contained in:
1 parent
a98540de07
commit
8a78da855c
9 files changed
+166
-16
No files matched your search
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bu8e4iyw8pc03"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dsryf6gxqcm1k" path="res://Scripts/character_body_2d.gd" id="1_0y7nr"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_2poj3"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
script = ExtResource("1_0y7nr")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_2poj3")
|
||||
debug_color = Color(0.613557, 0.363647, 0.991688, 0.42)
|
||||
|
||||
[node name="RightCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(16, 0)
|
||||
|
||||
[node name="LeftCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-16, 0)
|
||||
|
||||
[node name="RightSpawn" type="Node2D" parent="."]
|
||||
position = Vector2(17, -8)
|
||||
|
||||
[node name="LeftSpawn" type="Node2D" parent="."]
|
||||
position = Vector2(-14, -9)
|
||||
@@ -0,0 +1,14 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cm8o5vpn4a00"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://q1ok5ukbtibm" path="res://bullet.gd" id="1_xjght"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oduel"]
|
||||
size = Vector2(14, 4)
|
||||
|
||||
[node name="Bullet" type="Area2D"]
|
||||
script = ExtResource("1_xjght")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_oduel")
|
||||
debug_color = Color(0.995859, 0, 0.197667, 0.42)
|
||||
+18
-16
@@ -1,35 +1,31 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c6mxse0hqjro7"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c6mxse0hqjro7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dsryf6gxqcm1k" path="res://Scripts/character_body_2d.gd" id="1_ebmjs"]
|
||||
[ext_resource type="Script" uid="uid://tno7aku0yyke" path="res://Scripts/gamecontroller.gd" id="1_wrm1d"]
|
||||
[ext_resource type="Script" uid="uid://bs4frobn6kxne" path="res://Scripts/scene_manager.gd" id="2_i6g32"]
|
||||
[ext_resource type="PackedScene" uid="uid://cd7fv3pwgr880" path="res://Scenes/crate.tscn" id="3_3dryh"]
|
||||
[ext_resource type="PackedScene" uid="uid://bu8e4iyw8pc03" path="res://Scenes/Player.tscn" id="4_3dryh"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5d8himq5sttt" path="res://Scenes/trigger.tscn" id="4_wowpa"]
|
||||
[ext_resource type="PackedScene" uid="uid://cm8o5vpn4a00" path="res://Scenes/bullet.tscn" id="5_wowpa"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2poj3"]
|
||||
size = Vector2(50, 20)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_2poj3"]
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_wrm1d")
|
||||
|
||||
[node name="SceneManager" type="Node2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_i6g32")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(595, 337)
|
||||
scale = Vector2(1.50487, 1.09333)
|
||||
scale = Vector2(4.146, 0.985995)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
scale = Vector2(1, 1)
|
||||
shape = SubResource("RectangleShape2D_2poj3")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(576, 303)
|
||||
script = ExtResource("1_ebmjs")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_2poj3")
|
||||
debug_color = Color(0.613557, 0.363647, 0.991688, 0.42)
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("3_3dryh")]
|
||||
position = Vector2(596, 262)
|
||||
|
||||
@@ -40,11 +36,17 @@ position = Vector2(616, 222)
|
||||
position = Vector2(574, 222)
|
||||
|
||||
[node name="Area2D2" parent="." instance=ExtResource("4_wowpa")]
|
||||
position = Vector2(511, 397)
|
||||
position = Vector2(507, 414)
|
||||
effect = "destroy"
|
||||
|
||||
[node name="Area2D3" parent="." instance=ExtResource("4_wowpa")]
|
||||
position = Vector2(684, 400)
|
||||
position = Vector2(679, 430)
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("4_3dryh")]
|
||||
position = Vector2(614, 314)
|
||||
|
||||
[node name="Bullet" parent="." instance=ExtResource("5_wowpa")]
|
||||
position = Vector2(520, 265)
|
||||
|
||||
[connection signal="areatrigger" from="Area2D2" to="." method="_on_areatrigger"]
|
||||
[connection signal="areatrigger" from="Area2D3" to="." method="_on_areatrigger"]
|
||||
Reference in new issue
Block a user