spawns, bullets, factory
This commit is contained in:
1 parent
ad3d83e5bd
commit
eac97fda20
17 files changed
+223
-43
No files matched your search
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://clevnux6u2ybx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bsrl75gqbvfkf" path="res://Scripts/bullet.gd" id="1_xjght"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oduel"]
|
||||
size = Vector2(6, 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.997962, 0, 0.153889, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cjlmg7kqu5u5t"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_m3ihr"]
|
||||
|
||||
[node name="Crate" type="RigidBody2D" groups=["pushables", "shootables"]]
|
||||
rotation = -0.54389
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_m3ihr")
|
||||
debug_color = Color(0.783958, 0.434081, 7.70092e-07, 0.42)
|
||||
+23
-30
@@ -1,21 +1,28 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c3nfwlo4i3hne"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://c3nfwlo4i3hne"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/gamecontroller.gd" id="1_llgwy"]
|
||||
[ext_resource type="Script" path="res://Scripts/character_1.gd" id="1_xvmse"]
|
||||
[ext_resource type="Script" uid="uid://bt6s0tpg6lrha" path="res://Scripts/gamecontroller.gd" id="1_llgwy"]
|
||||
[ext_resource type="Script" uid="uid://bukc3pev3h3fq" path="res://Scripts/scene_manager.gd" id="2_1l0tm"]
|
||||
[ext_resource type="PackedScene" uid="uid://8e4lo2w8tmxq" path="res://Scenes/trigger.tscn" id="2_ja4if"]
|
||||
[ext_resource type="PackedScene" uid="uid://cjlmg7kqu5u5t" path="res://Scenes/crate.tscn" id="2_wowpa"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5qsdhrjyxbr1" path="res://Scenes/player.tscn" id="2_wrm1d"]
|
||||
[ext_resource type="Script" uid="uid://b7utyaqyc131x" path="res://Scripts/crate.gd" id="3_i6g32"]
|
||||
[ext_resource type="PackedScene" uid="uid://clevnux6u2ybx" path="res://Scenes/bullet.tscn" id="6_i6g32"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ejxeh"]
|
||||
size = Vector2(54, 20)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_m3ihr"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_0uq2f"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_4vo57"]
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1l0tm"]
|
||||
size = Vector2(6, 4)
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_llgwy")
|
||||
|
||||
[node name="SceneManager" type="Node2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_1l0tm")
|
||||
|
||||
[node name="Platform" type="StaticBody2D" parent="."]
|
||||
position = Vector2(213, 228)
|
||||
metadata/_edit_group_ = true
|
||||
@@ -23,23 +30,9 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform"]
|
||||
shape = SubResource("RectangleShape2D_ejxeh")
|
||||
|
||||
[node name="Crate 1" type="RigidBody2D" parent="."]
|
||||
[node name="Crate" parent="." instance=ExtResource("2_wowpa")]
|
||||
position = Vector2(177, 34)
|
||||
rotation = -0.54389
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crate 1"]
|
||||
shape = SubResource("RectangleShape2D_m3ihr")
|
||||
debug_color = Color(0.783958, 0.434081, 7.70092e-07, 0.42)
|
||||
|
||||
[node name="Crate 2" type="RigidBody2D" parent="."]
|
||||
position = Vector2(224, 36)
|
||||
rotation = -0.54389
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crate 2"]
|
||||
shape = SubResource("RectangleShape2D_m3ihr")
|
||||
debug_color = Color(0.783958, 0.434081, 7.70092e-07, 0.42)
|
||||
script = ExtResource("3_i6g32")
|
||||
|
||||
[node name="Ground" type="StaticBody2D" parent="."]
|
||||
position = Vector2(214, 284)
|
||||
@@ -48,17 +41,17 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground"]
|
||||
shape = SubResource("WorldBoundaryShape2D_0uq2f")
|
||||
|
||||
[node name="Character 1" type="CharacterBody2D" parent="."]
|
||||
[node name="Player" parent="." instance=ExtResource("2_wrm1d")]
|
||||
position = Vector2(191, 195)
|
||||
script = ExtResource("1_xvmse")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Character 1"]
|
||||
position = Vector2(21, 4)
|
||||
shape = SubResource("CircleShape2D_4vo57")
|
||||
debug_color = Color(0.021275, 0.650889, 0, 0.42)
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("2_ja4if")]
|
||||
position = Vector2(279, 218)
|
||||
|
||||
[node name="Bullet" parent="." instance=ExtResource("6_i6g32")]
|
||||
position = Vector2(101, 87)
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Bullet"]
|
||||
shape = SubResource("RectangleShape2D_1l0tm")
|
||||
debug_color = Color(0.997962, 0, 0.153889, 0.42)
|
||||
|
||||
[connection signal="areaTriggerSignal" from="Area2D" to="." method="_on_trigger"]
|
||||
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c5qsdhrjyxbr1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://crc2khytlo6r" path="res://Scripts/character_1.gd" id="1_v0iea"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_4vo57"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
position = Vector2(-21, -4)
|
||||
script = ExtResource("1_v0iea")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(21, 4)
|
||||
shape = SubResource("CircleShape2D_4vo57")
|
||||
debug_color = Color(0.021275, 0.650889, 0, 0.42)
|
||||
|
||||
[node name="Left Cast" type="RayCast2D" parent="."]
|
||||
position = Vector2(21, 4)
|
||||
target_position = Vector2(-45, 0)
|
||||
|
||||
[node name="Right Cast" type="RayCast2D" parent="."]
|
||||
position = Vector2(21, 4)
|
||||
target_position = Vector2(45, 0)
|
||||
|
||||
[node name="RightSpawn" type="Node2D" parent="."]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="LeftSpawn" type="Node2D" parent="."]
|
||||
metadata/_edit_group_ = true
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://8e4lo2w8tmxq"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/trigger.gd" id="1_ax848"]
|
||||
[ext_resource type="Script" uid="uid://chxs44jhw6xor" path="res://Scripts/trigger.gd" id="1_ax848"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8rju3"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user