bullet factory, push attack
This commit is contained in:
1 parent
b35e6f4f60
commit
5dcc0e729b
7 files changed
+256
-79
No files matched your search
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cy7x36mdb5oxu"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/bullet.gd" id="1_74gno"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vnal2"]
|
||||
size = Vector2(20, 4)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_74gno")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_vnal2")
|
||||
debug_color = Color(0.857955, 0.291109, 0.565473, 0.42)
|
||||
|
||||
[connection signal="body_shape_entered" from="." to="." method="_on_body_shape_entered"]
|
||||
@@ -1,8 +1,15 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cpuc12n61qg6b"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://cpuc12n61qg6b"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/trigger.gd" id="1_a0h8u"]
|
||||
[ext_resource type="Script" path="res://Scripts/gamecontroller.gd" id="1_amnm6"]
|
||||
[ext_resource type="Script" path="res://Scripts/Player.gd" id="2_e5caj"]
|
||||
[ext_resource type="PackedScene" uid="uid://b0snboj7mbad5" path="res://Scenes/player.tscn" id="3_3yq6m"]
|
||||
[ext_resource type="PackedScene" uid="uid://cy7x36mdb5oxu" path="res://Scenes/bullet.tscn" id="4_bk63h"]
|
||||
[ext_resource type="Script" path="res://Scripts/scene_manager.gd" id="5_4nsas"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_qkap3"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_skxer"]
|
||||
radius = 48.0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yfjal"]
|
||||
size = Vector2(65, 20)
|
||||
@@ -10,77 +17,9 @@ size = Vector2(65, 20)
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_57esh"]
|
||||
size = Vector2(52, 56)
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_qkap3"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_skxer"]
|
||||
radius = 48.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_xiumq"]
|
||||
|
||||
[node name="FebFabGame" type="Node2D"]
|
||||
script = ExtResource("1_amnm6")
|
||||
|
||||
[node name="Brick" type="StaticBody2D" parent="."]
|
||||
position = Vector2(606, 379)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Brick"]
|
||||
position = Vector2(-0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_yfjal")
|
||||
|
||||
[node name="Brick3" type="StaticBody2D" parent="."]
|
||||
position = Vector2(353, 385)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Brick3"]
|
||||
position = Vector2(-0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_yfjal")
|
||||
|
||||
[node name="Brick2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(478, 490)
|
||||
rotation = 0.699225
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Brick2"]
|
||||
position = Vector2(-0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_yfjal")
|
||||
|
||||
[node name="Crate1" type="RigidBody2D" parent="."]
|
||||
position = Vector2(642, 251)
|
||||
rotation = -0.585206
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crate1"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="Crate4" type="RigidBody2D" parent="."]
|
||||
position = Vector2(353, 97)
|
||||
rotation = 1.62165
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crate4"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="Crate2" type="RigidBody2D" parent="."]
|
||||
position = Vector2(664, 155)
|
||||
rotation = 0.531432
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crate2"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="Crate3" type="RigidBody2D" parent="."]
|
||||
position = Vector2(843, 88)
|
||||
rotation = 0.531432
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crate3"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
position = Vector2(613, 579)
|
||||
metadata/_edit_group_ = true
|
||||
@@ -97,14 +36,80 @@ metadata/_edit_group_ = true
|
||||
shape = SubResource("CircleShape2D_skxer")
|
||||
debug_color = Color(0.50428, 0.445656, 0.95237, 0.42)
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(590, 356)
|
||||
script = ExtResource("2_e5caj")
|
||||
[node name="Level" type="Node2D" parent="."]
|
||||
|
||||
[node name="Brick" type="StaticBody2D" parent="Level"]
|
||||
position = Vector2(606, 379)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_xiumq")
|
||||
debug_color = Color(0.234989, 0.626043, 0.349119, 0.42)
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Brick"]
|
||||
position = Vector2(-0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_yfjal")
|
||||
|
||||
[node name="Brick3" type="StaticBody2D" parent="Level"]
|
||||
position = Vector2(353, 385)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Brick3"]
|
||||
position = Vector2(-0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_yfjal")
|
||||
|
||||
[node name="Brick2" type="StaticBody2D" parent="Level"]
|
||||
position = Vector2(478, 490)
|
||||
rotation = 0.699225
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Brick2"]
|
||||
position = Vector2(-0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_yfjal")
|
||||
|
||||
[node name="Crates" type="Node2D" parent="."]
|
||||
|
||||
[node name="Crate1" type="RigidBody2D" parent="Crates"]
|
||||
position = Vector2(642, 251)
|
||||
rotation = -0.585206
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/Crate1"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="Crate4" type="RigidBody2D" parent="Crates"]
|
||||
position = Vector2(353, 97)
|
||||
rotation = 1.62165
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/Crate4"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="Crate2" type="RigidBody2D" parent="Crates"]
|
||||
position = Vector2(664, 155)
|
||||
rotation = 0.531432
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/Crate2"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="Crate3" type="RigidBody2D" parent="Crates"]
|
||||
position = Vector2(843, 88)
|
||||
rotation = 0.531432
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/Crate3"]
|
||||
shape = SubResource("RectangleShape2D_57esh")
|
||||
debug_color = Color(0.812962, 0.406946, 0.115236, 0.42)
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_3yq6m")]
|
||||
position = Vector2(440, 243)
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("4_bk63h")]
|
||||
position = Vector2(236, 307)
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("5_4nsas")
|
||||
|
||||
[connection signal="areaTrigger" from="Trigger" to="." method="_on_trigger_area_trigger"]
|
||||
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
|
||||
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b0snboj7mbad5"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Player.gd" id="1_mjl5w"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_xiumq"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
script = ExtResource("1_mjl5w")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_xiumq")
|
||||
debug_color = Color(0.234989, 0.626043, 0.349119, 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="rightTarget" type="Node2D" parent="."]
|
||||
position = Vector2(24, -26)
|
||||
|
||||
[node name="leftTarget" type="Node2D" parent="."]
|
||||
position = Vector2(-25, -26)
|
||||
Reference in new issue
Block a user