stuff
This commit is contained in:
1 parent
77eb50f69e
commit
abd5200f21
13 files changed
+209
-33
No files matched your search
@@ -0,0 +1,14 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://lwju71dirkcy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://diuug3xgjo1se" path="res://scripts/crate.gd" id="1_qgfyo"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r8wv2"]
|
||||
|
||||
[node name="Crate" type="RigidBody2D" groups=["pushable"]]
|
||||
rotation = 0.90108
|
||||
script = ExtResource("1_qgfyo")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_r8wv2")
|
||||
debug_color = Color(0.875314, 0.341029, 0.122297, 0.42)
|
||||
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://vycud8mssmb3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://doxxkkrf00ef2" path="res://scripts/bullet.gd" id="1_xjght"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4mw4s"]
|
||||
|
||||
[node name="bullet" type="Area2D"]
|
||||
script = ExtResource("1_xjght")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
rotation = 1.58879
|
||||
shape = SubResource("CapsuleShape2D_4mw4s")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c5uf1o0s4syv7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bxlrsqltut2xn" path="res://scripts/Player.gd" id="1_v0iea"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ag0er"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_v0iea")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_ag0er")
|
||||
debug_color = Color(3.08037e-06, 0.641589, 0.331866, 0.42)
|
||||
|
||||
[node name="RightCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(48, 0)
|
||||
|
||||
[node name="LeftCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-47, 0)
|
||||
|
||||
[node name="BulletSpawnPointRight" type="Node2D" parent="."]
|
||||
position = Vector2(16, -5)
|
||||
|
||||
[node name="BulletSpawnPointLeft" type="Node2D" parent="."]
|
||||
position = Vector2(-16, -5)
|
||||
+12
-28
@@ -1,21 +1,23 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://ibkufgrwjwro"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://buhkldpol3slp" path="res://scripts/gamecontroller.gd" id="1_3d84a"]
|
||||
[ext_resource type="Script" uid="uid://bxlrsqltut2xn" path="res://scripts/Player.gd" id="1_r8wv2"]
|
||||
[ext_resource type="PackedScene" uid="uid://4a4u47173cyb" path="res://Scenes/trigger.tscn" id="2_lptsb"]
|
||||
[ext_resource type="Script" uid="uid://bo0opwq3l73ec" path="res://scripts/scene_manager.gd" id="2_t43dh"]
|
||||
[ext_resource type="PackedScene" uid="uid://lwju71dirkcy" path="res://Scenes/Crate.tscn" id="3_u2cf2"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5uf1o0s4syv7" path="res://Scenes/player.tscn" id="4_f0he5"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ag0er"]
|
||||
size = Vector2(82, 20)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r8wv2"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_ag0er"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ag0er"]
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_3d84a")
|
||||
|
||||
[node name="SCENEMANAGER" type="Node2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_t43dh")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(113, 130)
|
||||
metadata/_edit_group_ = true
|
||||
@@ -23,23 +25,11 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("RectangleShape2D_ag0er")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
[node name="Crate1" parent="." instance=ExtResource("3_u2cf2")]
|
||||
position = Vector2(128, 41)
|
||||
rotation = 0.90108
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
shape = SubResource("RectangleShape2D_r8wv2")
|
||||
debug_color = Color(0.875314, 0.341029, 0.122297, 0.42)
|
||||
|
||||
[node name="RigidBody2D2" type="RigidBody2D" parent="."]
|
||||
position = Vector2(114, -1)
|
||||
rotation = 0.90108
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
|
||||
shape = SubResource("RectangleShape2D_r8wv2")
|
||||
debug_color = Color(0.875314, 0.341029, 0.122297, 0.42)
|
||||
[node name="Crate2" parent="." instance=ExtResource("3_u2cf2")]
|
||||
position = Vector2(171, 73)
|
||||
|
||||
[node name="ground" type="StaticBody2D" parent="."]
|
||||
position = Vector2(186, 270)
|
||||
@@ -48,16 +38,10 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ground"]
|
||||
shape = SubResource("WorldBoundaryShape2D_ag0er")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
[node name="Player" parent="." instance=ExtResource("4_f0he5")]
|
||||
position = Vector2(127, 108)
|
||||
script = ExtResource("1_r8wv2")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_ag0er")
|
||||
debug_color = Color(3.08037e-06, 0.641589, 0.331866, 0.42)
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("2_lptsb")]
|
||||
position = Vector2(88, 86)
|
||||
position = Vector2(82, 87)
|
||||
|
||||
[connection signal="areaTriggerSignal" from="Area2D" to="." method="_on_trigger"]
|
||||
Reference in new issue
Block a user