week2 prep, simple bullet creation
This commit is contained in:
1 parent
d62e6ac024
commit
fcb6b1c889
8 files changed
+166
-20
No files matched your search
@@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://sh1w4h1sgw7g"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_88s8x"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f10ps"]
|
||||
size = Vector2(8, 4)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_88s8x")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_f10ps")
|
||||
debug_color = Color(0.93687, 0.231161, 0.261845, 0.42)
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jqoba"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D"]
|
||||
[node name="RigidBody2D" type="RigidBody2D" groups=["pushables"]]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://r8jj43l4t6is"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://r8jj43l4t6is"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_8i1rq"]
|
||||
[ext_resource type="PackedScene" uid="uid://di3tq4f0xmdqc" path="res://scenes/crate.tscn" id="1_tfj4n"]
|
||||
[ext_resource type="Script" path="res://scripts/charactercontroller.gd" id="2_e3e8k"]
|
||||
[ext_resource type="PackedScene" uid="uid://xq3wqrcyvdhn" path="res://scenes/player.tscn" id="3_0kw1i"]
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_hm0br"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jk5qv"]
|
||||
@@ -11,8 +11,6 @@ size = Vector2(66, 20)
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_acecj"]
|
||||
distance = -430.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_qrixx"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8j7te"]
|
||||
radius = 29.0
|
||||
|
||||
@@ -26,6 +24,13 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("RectangleShape2D_jk5qv")
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(740, 416)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
shape = SubResource("RectangleShape2D_jk5qv")
|
||||
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("1_tfj4n")]
|
||||
position = Vector2(526, 297)
|
||||
rotation = 2.0228
|
||||
@@ -46,15 +51,8 @@ rotation = 0.0531393
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="floor"]
|
||||
shape = SubResource("WorldBoundaryShape2D_acecj")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(441, 314)
|
||||
script = ExtResource("2_e3e8k")
|
||||
PUSH_FORCE = 70
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_qrixx")
|
||||
debug_color = Color(0.345561, 0.615334, 0.230675, 0.42)
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_0kw1i")]
|
||||
position = Vector2(554, 334)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(597, 419)
|
||||
@@ -65,5 +63,7 @@ metadata/_edit_group_ = true
|
||||
shape = SubResource("CircleShape2D_8j7te")
|
||||
debug_color = Color(0.827271, 0.252084, 0.761388, 0.42)
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
|
||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://xq3wqrcyvdhn"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/charactercontroller.gd" id="1_kf287"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_qrixx"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
script = ExtResource("1_kf287")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_qrixx")
|
||||
debug_color = Color(0.345561, 0.615334, 0.230675, 0.42)
|
||||
|
||||
[node name="RightRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(16, -1)
|
||||
|
||||
[node name="LeftRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-16, -1)
|
||||
|
||||
[node name="RightTarget" type="Node2D" parent="."]
|
||||
position = Vector2(15, -10)
|
||||
|
||||
[node name="LeftTarget" type="Node2D" parent="."]
|
||||
position = Vector2(-15, -10)
|
||||
Reference in new issue
Block a user