Initial commit
This commit is contained in:
20
Scenes/Entities/arrow.tscn
Normal file
20
Scenes/Entities/arrow.tscn
Normal file
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bgvwjpxlr21qn"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Arrow.cs" id="1_jkpko"]
|
||||
[ext_resource type="Texture2D" uid="uid://c8sf3phprsqb1" path="res://Assets/Sprites/Arrow.png" id="2_y5esr"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r2lgg"]
|
||||
size = Vector2(21, 92)
|
||||
|
||||
[node name="Arrow" type="RigidBody2D"]
|
||||
gravity_scale = 0.0
|
||||
max_contacts_reported = 5
|
||||
contact_monitor = true
|
||||
script = ExtResource("1_jkpko")
|
||||
|
||||
[node name="Arrow" type="Sprite2D" parent="."]
|
||||
scale = Vector2(2.82, 2.82)
|
||||
texture = ExtResource("2_y5esr")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_r2lgg")
|
38
Scenes/Entities/candy.tscn
Normal file
38
Scenes/Entities/candy.tscn
Normal file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b56lg6dhura8f"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://k0cnmh268s2e" path="res://Assets/Sprites/CandyRainS5E12.png" id="1_dc57j"]
|
||||
[ext_resource type="Script" path="res://Scripts/MoveUpDown.cs" id="2_10e3l"]
|
||||
[ext_resource type="Script" path="res://Scripts/Candy.cs" id="3_d4aun"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mfu86"]
|
||||
|
||||
[node name="Candy" type="Node2D"]
|
||||
|
||||
[node name="Candy" type="RigidBody2D" parent="." node_paths=PackedStringArray("Up", "Down")]
|
||||
position = Vector2(1024, 318)
|
||||
disable_mode = 2
|
||||
mass = 238.6
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = 2
|
||||
max_contacts_reported = 4
|
||||
can_sleep = false
|
||||
freeze_mode = 1
|
||||
script = ExtResource("2_10e3l")
|
||||
Up = NodePath("../Candy Up")
|
||||
Down = NodePath("../Candy Down")
|
||||
speed = 1.215
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Candy"]
|
||||
scale = Vector2(8.83, 8.83)
|
||||
shape = SubResource("RectangleShape2D_mfu86")
|
||||
|
||||
[node name="CandyRainS5e12" type="Sprite2D" parent="Candy"]
|
||||
scale = Vector2(0.07, 0.07)
|
||||
texture = ExtResource("1_dc57j")
|
||||
script = ExtResource("3_d4aun")
|
||||
|
||||
[node name="Candy Up" type="Node2D" parent="."]
|
||||
position = Vector2(1023, 106)
|
||||
|
||||
[node name="Candy Down" type="Node2D" parent="."]
|
||||
position = Vector2(1023, 522)
|
33
Scenes/Entities/cushy.tscn
Normal file
33
Scenes/Entities/cushy.tscn
Normal file
@@ -0,0 +1,33 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b8ukoy7uiwtlo"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/MoveUpDown.cs" id="2_4b64p"]
|
||||
[ext_resource type="Texture2D" uid="uid://csrcr2nddcqtn" path="res://Assets/Sprites/pony-town-Cushy Pillow-stand-head-4x.png" id="2_gs3o8"]
|
||||
[ext_resource type="Script" path="res://Scripts/ThrowPillow.cs" id="3_i37ey"]
|
||||
[ext_resource type="PackedScene" uid="uid://bv0rugppux84g" path="res://Scenes/Entities/pillow.tscn" id="4_nkwti"]
|
||||
|
||||
[node name="Cushy" type="Node2D"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." node_paths=PackedStringArray("Up", "Down")]
|
||||
position = Vector2(111, 322)
|
||||
script = ExtResource("2_4b64p")
|
||||
Up = NodePath("../Cushy Up")
|
||||
Down = NodePath("../Cushy Down")
|
||||
speed = 0.56
|
||||
|
||||
[node name="Pony-town-cushyPillow-stand-head-4x" type="Sprite2D" parent="RigidBody2D"]
|
||||
texture = ExtResource("2_gs3o8")
|
||||
|
||||
[node name="Pillow Spawner" type="Node2D" parent="RigidBody2D/Pony-town-cushyPillow-stand-head-4x" node_paths=PackedStringArray("pillowsNode")]
|
||||
position = Vector2(127, 0)
|
||||
script = ExtResource("3_i37ey")
|
||||
pillow = ExtResource("4_nkwti")
|
||||
pillowsNode = NodePath("../../../Pillows")
|
||||
RPM = 25.0
|
||||
|
||||
[node name="Cushy Up" type="Node2D" parent="."]
|
||||
position = Vector2(122, 106)
|
||||
|
||||
[node name="Cushy Down" type="Node2D" parent="."]
|
||||
position = Vector2(122, 522)
|
||||
|
||||
[node name="Pillows" type="Node2D" parent="."]
|
29
Scenes/Entities/pillow.tscn
Normal file
29
Scenes/Entities/pillow.tscn
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bv0rugppux84g"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d0ni8qvcxpti0" path="res://Assets/Sprites/Pillow.png" id="2_4eq0m"]
|
||||
[ext_resource type="Script" path="res://Scripts/Pillow.cs" id="2_404kc"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_mvy54"]
|
||||
radius = 13.1476
|
||||
|
||||
[node name="Pillow" type="Node2D"]
|
||||
texture_filter = 1
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = 2
|
||||
max_contacts_reported = 11
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
angular_damp = -1.0
|
||||
script = ExtResource("2_404kc")
|
||||
angularSpeed = 5.0
|
||||
velocity = Vector2(250, 0)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
scale = Vector2(6.52, 6.52)
|
||||
shape = SubResource("CircleShape2D_mvy54")
|
||||
|
||||
[node name="Pillow" type="Sprite2D" parent="RigidBody2D"]
|
||||
scale = Vector2(6.04, 6.04)
|
||||
texture = ExtResource("2_4eq0m")
|
28
Scenes/Levels/main_level.tscn
Normal file
28
Scenes/Levels/main_level.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bms4asboep1fd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b56lg6dhura8f" path="res://Scenes/Entities/candy.tscn" id="1_v4hjh"]
|
||||
[ext_resource type="PackedScene" uid="uid://b8ukoy7uiwtlo" path="res://Scenes/Entities/cushy.tscn" id="2_kyhwt"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgvwjpxlr21qn" path="res://Scenes/Entities/arrow.tscn" id="3_dxffe"]
|
||||
[ext_resource type="Script" path="res://Scripts/MouseInput.cs" id="3_sv1u3"]
|
||||
[ext_resource type="Script" path="res://Scripts/ArrowThrower.cs" id="4_lbe3i"]
|
||||
|
||||
[node name="Main Level" type="Node2D"]
|
||||
texture_filter = 1
|
||||
|
||||
[node name="Cushy" parent="." instance=ExtResource("2_kyhwt")]
|
||||
|
||||
[node name="Candy" parent="." instance=ExtResource("1_v4hjh")]
|
||||
|
||||
[node name="Mouse Input" type="Node2D" parent="."]
|
||||
script = ExtResource("3_sv1u3")
|
||||
|
||||
[node name="Arrow Thrower" type="Node2D" parent="Mouse Input" node_paths=PackedStringArray("ArrowsNode")]
|
||||
position = Vector2(574, 529)
|
||||
script = ExtResource("4_lbe3i")
|
||||
ArrowsNode = NodePath("Arrows")
|
||||
|
||||
[node name="Arrow" parent="Mouse Input/Arrow Thrower" instance=ExtResource("3_dxffe")]
|
||||
visible = false
|
||||
position = Vector2(-8, 8)
|
||||
|
||||
[node name="Arrows" type="Node2D" parent="Mouse Input/Arrow Thrower"]
|
Reference in New Issue
Block a user