bullet factory, push attack
This commit is contained in:
1 parent
86a099e02f
commit
adf15b6014
7 files changed
+228
-66
No files matched your search
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dwy0c50ndnu8k"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_v85g0"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pwf7j"]
|
||||
size = Vector2(20, 4)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_v85g0")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_pwf7j")
|
||||
debug_color = Color(0.932915, 0.177129, 0.479323, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -1,72 +1,25 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dhopuj38ic6dp"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dhopuj38ic6dp"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="1_7cb3s"]
|
||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_dasmg"]
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="2_7k2el"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uopew"]
|
||||
size = Vector2(70, 26)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oospb"]
|
||||
size = Vector2(43.1503, 26)
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_igau3"]
|
||||
[ext_resource type="PackedScene" uid="uid://du8aftivw4k25" path="res://scenes/player.tscn" id="3_glxkt"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwy0c50ndnu8k" path="res://scenes/bullet.tscn" id="4_2bgno"]
|
||||
[ext_resource type="Script" path="res://scripts/scene_manager.gd" id="5_6wvkt"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ox8o7"]
|
||||
radius = 31.0161
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_a75m4"]
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uopew"]
|
||||
size = Vector2(70, 26)
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_igau3"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oospb"]
|
||||
size = Vector2(43.1503, 26)
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_dasmg")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(525, 412)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(-26, 3)
|
||||
shape = SubResource("RectangleShape2D_uopew")
|
||||
|
||||
[node name="StaticBody2D3" type="StaticBody2D" parent="."]
|
||||
position = Vector2(525, 412)
|
||||
rotation = 2.16668
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
|
||||
position = Vector2(-26, 3)
|
||||
shape = SubResource("RectangleShape2D_uopew")
|
||||
|
||||
[node name="crate1" type="RigidBody2D" parent="."]
|
||||
position = Vector2(193, 264)
|
||||
rotation = 0.807772
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="crate1"]
|
||||
position = Vector2(23.712, 8.64544)
|
||||
rotation = -1.01686
|
||||
scale = Vector2(2.89246, 1)
|
||||
shape = SubResource("RectangleShape2D_oospb")
|
||||
debug_color = Color(0.907205, 0.191988, 0.583153, 0.42)
|
||||
|
||||
[node name="crate2" type="RigidBody2D" parent="."]
|
||||
position = Vector2(616, 580)
|
||||
rotation = -0.385715
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="crate2"]
|
||||
position = Vector2(107.026, -85.1608)
|
||||
shape = SubResource("RectangleShape2D_oospb")
|
||||
debug_color = Color(0.907205, 0.191988, 0.583153, 0.42)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(11, 464)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
position = Vector2(518, 20)
|
||||
shape = SubResource("WorldBoundaryShape2D_igau3")
|
||||
|
||||
[node name="Trigger" type="Area2D" parent="."]
|
||||
position = Vector2(570, 452)
|
||||
script = ExtResource("1_7cb3s")
|
||||
@@ -76,14 +29,66 @@ metadata/_edit_group_ = true
|
||||
shape = SubResource("CircleShape2D_ox8o7")
|
||||
debug_color = Color(0.448323, 0.465614, 0.961841, 0.42)
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(468, 388)
|
||||
script = ExtResource("2_7k2el")
|
||||
[node name="Level" type="Node2D" parent="."]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Level"]
|
||||
position = Vector2(525, 412)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_a75m4")
|
||||
debug_color = Color(1.05888e-06, 0.616635, 0.591704, 0.42)
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D"]
|
||||
position = Vector2(-26, 3)
|
||||
shape = SubResource("RectangleShape2D_uopew")
|
||||
|
||||
[node name="StaticBody2D3" type="StaticBody2D" parent="Level"]
|
||||
position = Vector2(525, 412)
|
||||
rotation = 2.16668
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D3"]
|
||||
position = Vector2(-26, 3)
|
||||
shape = SubResource("RectangleShape2D_uopew")
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="Level"]
|
||||
position = Vector2(11, 464)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D2"]
|
||||
position = Vector2(518, 20)
|
||||
shape = SubResource("WorldBoundaryShape2D_igau3")
|
||||
|
||||
[node name="crates" type="Node2D" parent="."]
|
||||
|
||||
[node name="crate2" type="RigidBody2D" parent="crates"]
|
||||
position = Vector2(616, 580)
|
||||
rotation = -0.385715
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="crates/crate2"]
|
||||
position = Vector2(107.026, -85.1608)
|
||||
shape = SubResource("RectangleShape2D_oospb")
|
||||
debug_color = Color(0.907205, 0.191988, 0.583153, 0.42)
|
||||
|
||||
[node name="crate1" type="RigidBody2D" parent="crates"]
|
||||
position = Vector2(193, 264)
|
||||
rotation = 0.807772
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="crates/crate1"]
|
||||
position = Vector2(23.712, 8.64544)
|
||||
rotation = -1.01686
|
||||
scale = Vector2(2.89246, 1)
|
||||
shape = SubResource("RectangleShape2D_oospb")
|
||||
debug_color = Color(0.907205, 0.191988, 0.583153, 0.42)
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_glxkt")]
|
||||
position = Vector2(338, 226)
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("4_2bgno")]
|
||||
position = Vector2(330, 271)
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("5_6wvkt")
|
||||
|
||||
[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://du8aftivw4k25"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="1_p8gev"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_a75m4"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
script = ExtResource("1_p8gev")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_a75m4")
|
||||
debug_color = Color(1.05888e-06, 0.616635, 0.591704, 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(11, -10)
|
||||
|
||||
[node name="leftTarget" type="Node2D" parent="."]
|
||||
position = Vector2(-15, -10)
|
||||
Reference in new issue
Block a user