bulletfactory, shove attack, raycasts, unique names
This commit is contained in:
1 parent
d9964626fb
commit
6af1257021
13 files changed
+224
-40
No files matched your search
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c633ux67ehud7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d165adohwtkk5" path="res://scripts/bullet.gd" id="1_mkf8s"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y25gk"]
|
||||
size = Vector2(14, 6)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_mkf8s")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_y25gk")
|
||||
debug_color = Color(0.255636, 0.520768, 0.950461, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,14 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cym46ub26gs80"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dqvbrplt605am" path="res://scripts/crate.gd" id="1_b66cd"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gk4xx"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" groups=["pushables"]]
|
||||
rotation = 1.13734
|
||||
script = ExtResource("1_b66cd")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_gk4xx")
|
||||
debug_color = Color(0.854534, 0.360936, 0.197499, 0.42)
|
||||
+24
-36
@@ -1,29 +1,26 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://cwuxdg5c8ylmp"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cwuxdg5c8ylmp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dmchcjip7pcfj" path="res://scripts/player.gd" id="1_8x5qb"]
|
||||
[ext_resource type="Script" uid="uid://cw3ucen7ivcu3" path="res://scripts/gamecontroller.gd" id="1_wj22x"]
|
||||
[ext_resource type="Script" uid="uid://bus3b1g717jlm" path="res://scripts/scene_manager.gd" id="2_lbhrr"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgk1d1f5ffbbd" path="res://scenes/player.tscn" id="2_lnu2h"]
|
||||
[ext_resource type="PackedScene" uid="uid://clf5mhteceas4" path="res://scenes/trigger.tscn" id="3_jlag1"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ryu2m"]
|
||||
[ext_resource type="PackedScene" uid="uid://cym46ub26gs80" path="res://scenes/crate.tscn" id="4_iywne"]
|
||||
[ext_resource type="PackedScene" uid="uid://c633ux67ehud7" path="res://scenes/bullet.tscn" id="6_p57ef"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_um86g"]
|
||||
size = Vector2(55.5, 41)
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_16wxc"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gk4xx"]
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_wj22x")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(471, 287)
|
||||
script = ExtResource("1_8x5qb")
|
||||
metadata/_edit_group_ = true
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_lbhrr")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_ryu2m")
|
||||
debug_color = Color(0.287381, 0.616681, 0.378827, 0.42)
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("2_lnu2h")]
|
||||
position = Vector2(471, 287)
|
||||
|
||||
[node name="level" type="Node2D" parent="."]
|
||||
|
||||
@@ -59,39 +56,30 @@ shape = SubResource("WorldBoundaryShape2D_16wxc")
|
||||
|
||||
[node name="crates" type="Node2D" parent="."]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="crates"]
|
||||
position = Vector2(468, 257)
|
||||
rotation = 1.13734
|
||||
metadata/_edit_group_ = true
|
||||
[node name="RigidBody2D" parent="crates" instance=ExtResource("4_iywne")]
|
||||
position = Vector2(407, 407)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="crates/RigidBody2D"]
|
||||
shape = SubResource("RectangleShape2D_gk4xx")
|
||||
debug_color = Color(0.854534, 0.360936, 0.197499, 0.42)
|
||||
[node name="RigidBody2D2" parent="crates" instance=ExtResource("4_iywne")]
|
||||
position = Vector2(508, 303)
|
||||
|
||||
[node name="RigidBody2D2" type="RigidBody2D" parent="crates"]
|
||||
position = Vector2(458, 227)
|
||||
rotation = 0.693203
|
||||
metadata/_edit_group_ = true
|
||||
[node name="RigidBody2D3" parent="crates" instance=ExtResource("4_iywne")]
|
||||
position = Vector2(576, 221)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="crates/RigidBody2D2"]
|
||||
shape = SubResource("RectangleShape2D_gk4xx")
|
||||
debug_color = Color(0.854534, 0.360936, 0.197499, 0.42)
|
||||
[node name="RigidBody2D4" parent="crates" instance=ExtResource("4_iywne")]
|
||||
position = Vector2(403, 324)
|
||||
|
||||
[node name="RigidBody2D3" type="RigidBody2D" parent="crates"]
|
||||
position = Vector2(451, 306)
|
||||
rotation = -2.5155
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="crates/RigidBody2D3"]
|
||||
shape = SubResource("RectangleShape2D_gk4xx")
|
||||
debug_color = Color(0.854534, 0.360936, 0.197499, 0.42)
|
||||
[node name="RigidBody2D5" parent="crates" instance=ExtResource("4_iywne")]
|
||||
position = Vector2(357, 331)
|
||||
|
||||
[node name="Trigger" parent="." instance=ExtResource("3_jlag1")]
|
||||
position = Vector2(396, 385)
|
||||
position = Vector2(189, 316)
|
||||
|
||||
[node name="Trigger2" parent="." instance=ExtResource("3_jlag1")]
|
||||
position = Vector2(638, 390)
|
||||
effect = "teleport"
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("6_p57ef")]
|
||||
position = Vector2(366, 300)
|
||||
|
||||
[connection signal="triggerFired" from="Trigger" to="." method="_on_trigger_fired"]
|
||||
[connection signal="triggerFired" from="Trigger2" to="." method="_on_trigger_fired"]
|
||||
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cgk1d1f5ffbbd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dmchcjip7pcfj" path="res://scripts/player.gd" id="1_3vyb7"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ryu2m"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
script = ExtResource("1_3vyb7")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_ryu2m")
|
||||
debug_color = Color(0.287381, 0.616681, 0.378827, 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(12, -5)
|
||||
|
||||
[node name="LeftSpawn" type="Node2D" parent="."]
|
||||
position = Vector2(-13, -5)
|
||||
Reference in new issue
Block a user