first commit

This commit is contained in:
bip committed 2024-07-22 21:20:27 -04:00
commit 56ece37a08
139 files changed
+1871

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://c5bftwgkssaf2"]
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_t2eet"]
[sub_resource type="CircleShape2D" id="CircleShape2D_1gtqp"]
radius = 6.0
[node name="Area2D" type="Area2D"]
script = ExtResource("1_t2eet")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_1gtqp")
debug_color = Color(0.721569, 0.337255, 0.854902, 0.419608)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+202
View File
@@ -0,0 +1,202 @@
[gd_scene load_steps=28 format=3 uid="uid://go4yc8hfo1gq"]
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
[ext_resource type="Texture2D" uid="uid://rvqjq6nksgag" path="res://Graphics/Player Idle 48x48.png" id="2_2t4h1"]
[ext_resource type="Texture2D" uid="uid://bdelbnqhy0kn2" path="res://Graphics/player run 48x48.png" id="3_0aqmh"]
[ext_resource type="Texture2D" uid="uid://hsovsssoucoy" path="res://Graphics/player jump 48x48.png" id="3_j04d8"]
[sub_resource type="AtlasTexture" id="AtlasTexture_taqqu"]
atlas = ExtResource("2_2t4h1")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_uwwnn"]
atlas = ExtResource("2_2t4h1")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_obxfn"]
atlas = ExtResource("2_2t4h1")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_27f1c"]
atlas = ExtResource("2_2t4h1")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_m4w16"]
atlas = ExtResource("2_2t4h1")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_x118l"]
atlas = ExtResource("2_2t4h1")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_0sj8s"]
atlas = ExtResource("2_2t4h1")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_q0kja"]
atlas = ExtResource("2_2t4h1")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yyvuv"]
atlas = ExtResource("2_2t4h1")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_bpuxv"]
atlas = ExtResource("2_2t4h1")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_k4ctm"]
atlas = ExtResource("3_j04d8")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_0x1fh"]
atlas = ExtResource("3_j04d8")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_bffbs"]
atlas = ExtResource("3_j04d8")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_fd8ov"]
atlas = ExtResource("3_0aqmh")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_rhevl"]
atlas = ExtResource("3_0aqmh")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_d6e16"]
atlas = ExtResource("3_0aqmh")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_de1q6"]
atlas = ExtResource("3_0aqmh")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_j4m8h"]
atlas = ExtResource("3_0aqmh")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_i3vl8"]
atlas = ExtResource("3_0aqmh")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yjjpf"]
atlas = ExtResource("3_0aqmh")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_uvphg"]
atlas = ExtResource("3_0aqmh")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_k63ce"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_taqqu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uwwnn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_obxfn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_27f1c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m4w16")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_x118l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0sj8s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q0kja")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yyvuv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bpuxv")
}],
"loop": true,
"name": &"Idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_k4ctm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0x1fh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bffbs")
}],
"loop": true,
"name": &"Jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fd8ov")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rhevl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d6e16")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_de1q6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j4m8h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i3vl8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yjjpf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uvphg")
}],
"loop": true,
"name": &"Run",
"speed": 15.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
[node name="CharacterBody2D" type="CharacterBody2D"]
position = Vector2(-1, 0)
script = ExtResource("1_x87yo")
JUMP_VELOCITY = -500.0
PUSH_FORCE = 200
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_k63ce")
animation = &"Jump"
autoplay = "Idle"
frame_progress = 0.705333
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ubfw4")
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(25, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-25, 0)
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(16, -6)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-16, -6)
+16
View File
@@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://cwfm01fpdmr1k"]
[ext_resource type="Texture2D" uid="uid://ihg1aef42mnn" path="res://Graphics/Box.png" id="1_3bn6y"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
[node name="RigidBody2D" type="RigidBody2D" groups=["boxes"]]
metadata/_edit_group_ = true
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.583333, 0.583333)
texture = ExtResource("1_3bn6y")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
+144
View File
@@ -0,0 +1,144 @@
[gd_scene load_steps=11 format=3 uid="uid://y083suj12rld"]
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
[ext_resource type="Texture2D" uid="uid://iphyceyp7aay" path="res://Graphics/Terrain (32x32).png" id="2_74wn8"]
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
[ext_resource type="PackedScene" uid="uid://cwfm01fpdmr1k" path="res://scenes/crate.tscn" id="2_wqngy"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_vd3un"]
texture = ExtResource("2_74wn8")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
4:0/0 = 0
6:0/0 = 0
7:0/0 = 0
9:0/0 = 0
10:0/0 = 0
12:0/0 = 0
13:0/0 = 0
15:0/0 = 0
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
4:1/0 = 0
6:1/0 = 0
7:1/0 = 0
9:1/0 = 0
10:1/0 = 0
12:1/0 = 0
13:1/0 = 0
15:1/0 = 0
16:1/0 = 0
0:2/0 = 0
1:2/0 = 0
2:2/0 = 0
4:2/0 = 0
6:3/0 = 0
7:3/0 = 0
9:3/0 = 0
10:3/0 = 0
12:3/0 = 0
13:3/0 = 0
15:3/0 = 0
16:3/0 = 0
0:4/0 = 0
1:4/0 = 0
2:4/0 = 0
4:4/0 = 0
6:4/0 = 0
7:4/0 = 0
9:4/0 = 0
10:4/0 = 0
12:4/0 = 0
13:4/0 = 0
15:4/0 = 0
16:4/0 = 0
[sub_resource type="TileSet" id="TileSet_p8gjw"]
tile_size = Vector2i(32, 32)
sources/0 = SubResource("TileSetAtlasSource_vd3un")
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
size = Vector2(91, 20)
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
radius = 60.2993
[node name="Game" type="Node2D"]
script = ExtResource("1_77wyw")
[node name="TileMap" type="TileMap" parent="."]
tile_set = SubResource("TileSet_p8gjw")
format = 2
layer_0/tile_data = PackedInt32Array(917501, 0, 4, 917502, 0, 4, 917503, 0, 4, 851968, 0, 4, 851969, 0, 4, 851970, 0, 4, 851971, 0, 4, 851972, 0, 4, 851973, 0, 4, 851974, 0, 4, 851975, 0, 4, 720898, 0, 4, 720899, 0, 4, 720900, 0, 4, 655371, 0, 4, 655372, 0, 4, 655373, 0, 4, 589839, 0, 4, 589840, 0, 4, 589841, 0, 4)
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(236, 415)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource("WorldBoundaryShape2D_3u4a8")
[node name="RigidBody2D" parent="." instance=ExtResource("2_wqngy")]
[node name="level" type="Node2D" parent="."]
[node name="groundblock" type="StaticBody2D" parent="level"]
position = Vector2(114, 362)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock4" type="StaticBody2D" parent="level"]
position = Vector2(91, 430)
scale = Vector2(3.76, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock4"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock2" type="StaticBody2D" parent="level"]
position = Vector2(532, 299)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock3" type="StaticBody2D" parent="level"]
position = Vector2(401, 331)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
position = Vector2(-1, -35)
PUSH_FORCE = 550
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
[node name="Area2D" type="Area2D" parent="."]
position = Vector2(260, 352)
script = ExtResource("2_nfj1w")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_x8qck")
debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608)
[node name="RigidBody2D2" parent="." instance=ExtResource("2_wqngy")]
position = Vector2(216, 145)
scale = Vector2(2.96, 2.56)
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]