clean up
This commit is contained in:
parent
c77169deba
commit
be0d63d8cd
5 changed files with 229 additions and 283 deletions
|
@ -1,16 +1,10 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://ba6afuig8bqrg"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://ba6afuig8bqrg"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://snxpqx0ony7s" path="res://objects/Player.tscn" id="1_prjlb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dii1q3f5dj72y" path="res://objects/CRT.tscn" id="2_mxtem"]
|
||||
[ext_resource type="Texture2D" uid="uid://cw3onignoce3e" path="res://temp_assets/scale_up.png" id="3_7s458"]
|
||||
[ext_resource type="Script" path="res://scripts/ui_actions.gd" id="3_b82rx"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckr5hxaqp6s5x" path="res://temp_assets/scale_up_hovered.png" id="4_6s82a"]
|
||||
[ext_resource type="Texture2D" uid="uid://btmck3gpinxo1" path="res://temp_assets/scaled_down.png" id="5_8tyx1"]
|
||||
[ext_resource type="Texture2D" uid="uid://c02aqv5sgwvgn" path="res://temp_assets/scale_down_hovered.png" id="6_kdplq"]
|
||||
[ext_resource type="Texture2D" uid="uid://2rfdls8oduj1" path="res://temp_assets/mirror.png" id="7_xwthi"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfpwj3kaxe1ka" path="res://temp_assets/mirror_hovered.png" id="8_r6dd1"]
|
||||
|
||||
[sub_resource type="Theme" id="Theme_efdhj"]
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1vofj"]
|
||||
size = Vector2(1289, 70.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4uh45"]
|
||||
size = Vector2(1281, 85.5)
|
||||
|
@ -21,9 +15,6 @@ size = Vector2(63.75, 738.5)
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h7316"]
|
||||
size = Vector2(100, 753)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1vofj"]
|
||||
size = Vector2(2441, 70.5)
|
||||
|
||||
[node name="LevelBase" type="Node"]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_prjlb")]
|
||||
|
@ -31,72 +22,23 @@ size = Vector2(2441, 70.5)
|
|||
[node name="CanvasLayer" parent="." instance=ExtResource("2_mxtem")]
|
||||
visible = false
|
||||
|
||||
[node name="UILayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" type="Control" parent="UILayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("3_b82rx")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UILayer/UI"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="ScaleUp" type="TextureButton" parent="UILayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_efdhj")
|
||||
texture_normal = ExtResource("3_7s458")
|
||||
texture_pressed = ExtResource("4_6s82a")
|
||||
texture_hover = ExtResource("4_6s82a")
|
||||
texture_disabled = ExtResource("3_7s458")
|
||||
texture_focused = ExtResource("4_6s82a")
|
||||
|
||||
[node name="ScaleDown" type="TextureButton" parent="UILayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture_normal = ExtResource("5_8tyx1")
|
||||
texture_pressed = ExtResource("6_kdplq")
|
||||
texture_hover = ExtResource("6_kdplq")
|
||||
texture_disabled = ExtResource("5_8tyx1")
|
||||
texture_focused = ExtResource("6_kdplq")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="UILayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture_normal = ExtResource("7_xwthi")
|
||||
texture_pressed = ExtResource("8_r6dd1")
|
||||
texture_hover = ExtResource("8_r6dd1")
|
||||
texture_disabled = ExtResource("7_xwthi")
|
||||
texture_focused = ExtResource("8_r6dd1")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[node name="Walls" type="StaticBody2D" parent="."]
|
||||
collision_mask = 6
|
||||
|
||||
[node name="Ground" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(-12, 186)
|
||||
shape = SubResource("RectangleShape2D_1vofj")
|
||||
|
||||
[node name="Ceiling" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(-0.5, -402.25)
|
||||
position = Vector2(3, -206)
|
||||
shape = SubResource("RectangleShape2D_4uh45")
|
||||
|
||||
[node name="LeftWall" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(-671.125, 2.25)
|
||||
position = Vector2(-357, 42)
|
||||
shape = SubResource("RectangleShape2D_nnio8")
|
||||
|
||||
[node name="RightWall" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(690, -2.5)
|
||||
position = Vector2(367, 16)
|
||||
shape = SubResource("RectangleShape2D_h7316")
|
||||
|
||||
[node name="Blastzon" type="CharacterBody2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 4
|
||||
|
||||
[node name="Ground" type="CollisionShape2D" parent="Blastzon"]
|
||||
position = Vector2(52.5, 620)
|
||||
shape = SubResource("RectangleShape2D_1vofj")
|
||||
|
||||
[connection signal="pressed" from="UILayer/UI/HBoxContainer/ScaleUp" to="UILayer/UI" method="select_up"]
|
||||
[connection signal="pressed" from="UILayer/UI/HBoxContainer/ScaleDown" to="UILayer/UI" method="select_down"]
|
||||
[connection signal="pressed" from="UILayer/UI/HBoxContainer/TextureButton" to="UILayer/UI" method="select_mirror"]
|
||||
|
|
File diff suppressed because one or more lines are too long
183
gmtk_2024/levels/level_test.tscn
Normal file
183
gmtk_2024/levels/level_test.tscn
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,194 +0,0 @@
|
|||
[gd_scene load_steps=12 format=4 uid="uid://cxsstkfcffdch"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ba6afuig8bqrg" path="res://levels/LevelBase.tscn" id="1_8kfuv"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3m4os8kteaix" path="res://textures/level01-spritesheet.png" id="2_4iioo"]
|
||||
[ext_resource type="Shader" path="res://shaders/scrolling.gdshader" id="3_ys3sa"]
|
||||
[ext_resource type="Texture2D" uid="uid://c61y0181w3sq2" path="res://textures/Level 01.png" id="4_n40i2"]
|
||||
[ext_resource type="PackedScene" path="res://objects/Goal.tscn" id="5_1tu7t"]
|
||||
[ext_resource type="PackedScene" path="res://objects/MirrorOrb.tscn" id="6_87gst"]
|
||||
[ext_resource type="PackedScene" uid="uid://br6fngf5208j0" path="res://objects/ResizableBlockBig.tscn" id="7_l2s1x"]
|
||||
[ext_resource type="PackedScene" uid="uid://vtwswrkfkgas" path="res://objects/EnemyMover.tscn" id="8_3s3ae"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_e817v"]
|
||||
texture = ExtResource("2_4iioo")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
1:0/0 = 0
|
||||
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
2:0/0 = 0
|
||||
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
3:0/0 = 0
|
||||
3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
4:0/0 = 0
|
||||
4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
5:0/0 = 0
|
||||
5:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
6:0/0 = 0
|
||||
6:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
7:0/0 = 0
|
||||
7:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
8:0/next_alternative_id = 4
|
||||
8:0/0 = 0
|
||||
8:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
8:0/1 = 1
|
||||
8:0/1/flip_v = true
|
||||
8:0/1/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
8:0/2 = 2
|
||||
8:0/2/transpose = true
|
||||
8:0/2/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
8:0/3 = 3
|
||||
8:0/3/flip_h = true
|
||||
8:0/3/transpose = true
|
||||
8:0/3/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
9:0/0 = 0
|
||||
10:0/0 = 0
|
||||
11:0/0 = 0
|
||||
0:1/0 = 0
|
||||
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
1:1/0 = 0
|
||||
1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
2:1/0 = 0
|
||||
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
3:1/0 = 0
|
||||
3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
4:1/0 = 0
|
||||
5:1/0 = 0
|
||||
5:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
6:1/0 = 0
|
||||
6:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
7:1/0 = 0
|
||||
7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
8:1/0 = 0
|
||||
8:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
9:1/0 = 0
|
||||
10:1/0 = 0
|
||||
11:1/0 = 0
|
||||
0:2/0 = 0
|
||||
0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
1:2/0 = 0
|
||||
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
2:2/0 = 0
|
||||
2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
3:2/0 = 0
|
||||
3:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
4:2/0 = 0
|
||||
4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
5:2/0 = 0
|
||||
5:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
6:2/0 = 0
|
||||
7:2/0 = 0
|
||||
10:2/0 = 0
|
||||
11:2/0 = 0
|
||||
0:3/0 = 0
|
||||
1:3/0 = 0
|
||||
2:3/0 = 0
|
||||
3:3/0 = 0
|
||||
4:3/0 = 0
|
||||
5:3/0 = 0
|
||||
6:3/0 = 0
|
||||
7:3/0 = 0
|
||||
10:3/0 = 0
|
||||
11:3/0 = 0
|
||||
0:4/0 = 0
|
||||
1:4/0 = 0
|
||||
2:4/0 = 0
|
||||
3:4/0 = 0
|
||||
4:4/0 = 0
|
||||
5:4/0 = 0
|
||||
6:4/0 = 0
|
||||
7:4/0 = 0
|
||||
8:4/0 = 0
|
||||
9:4/0 = 0
|
||||
10:4/0 = 0
|
||||
11:4/0 = 0
|
||||
0:5/0 = 0
|
||||
1:5/0 = 0
|
||||
2:5/0 = 0
|
||||
3:5/0 = 0
|
||||
4:5/0 = 0
|
||||
5:5/0 = 0
|
||||
6:5/0 = 0
|
||||
7:5/0 = 0
|
||||
8:5/0 = 0
|
||||
9:5/0 = 0
|
||||
10:5/0 = 0
|
||||
11:5/0 = 0
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_n3khe"]
|
||||
tile_size = Vector2i(32, 32)
|
||||
physics_layer_0/collision_layer = 1
|
||||
sources/0 = SubResource("TileSetAtlasSource_e817v")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mvq46"]
|
||||
shader = ExtResource("3_ys3sa")
|
||||
shader_parameter/scroll_speed = 0.02
|
||||
|
||||
[node name="LevelBase" instance=ExtResource("1_8kfuv")]
|
||||
|
||||
[node name="Player" parent="." index="0"]
|
||||
position = Vector2(-254, 99)
|
||||
input_pickable = true
|
||||
|
||||
[node name="UI" parent="UILayer" index="0" node_paths=PackedStringArray("player")]
|
||||
visible = false
|
||||
mouse_filter = 2
|
||||
player = NodePath("../../Player")
|
||||
|
||||
[node name="HBoxContainer" parent="UILayer/UI" index="0"]
|
||||
offset_right = 296.0
|
||||
offset_bottom = 96.0
|
||||
mouse_filter = 0
|
||||
|
||||
[node name="Walls" parent="." index="4"]
|
||||
collision_mask = 22
|
||||
|
||||
[node name="Ground" parent="Walls" index="0"]
|
||||
position = Vector2(-7, 167)
|
||||
|
||||
[node name="Ceiling" parent="Walls" index="1"]
|
||||
position = Vector2(57, -171)
|
||||
|
||||
[node name="LeftWall" parent="Walls" index="2"]
|
||||
position = Vector2(-320, 26)
|
||||
|
||||
[node name="RightWall" parent="Walls" index="3"]
|
||||
position = Vector2(338, 15)
|
||||
|
||||
[node name="Layer0" type="TileMapLayer" parent="." index="5"]
|
||||
use_parent_material = true
|
||||
tile_map_data = PackedByteArray("AAD2//v/AAADA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AAGD4/wAAAAAIAAEAAGD5/wAAAAAIAAEAAGD6/wAAAAAIAAEAAGD7/wAAAAAIAAAAAVD3//3/AAAIAAEAAFD4//3/AAAIAAEAAFD5//3/AAAIAAEAAFD6//3/AAAIAAEAAFD7//3/AAAIAAEAAFD8//3/AAAIAAEAAFD9//3/AAAIAAEAAFD+//3/AAACAAAAAAAAAAAAAAAGAAIAAAAAAP//AAABAAIAAAD/////AAAAAAIAAAD///7/AAAHAAAAAAAAAP7/AAACAAAAAAABAP//AAAIAAAAAVD+//7/AAAAAAIAAAAFAAEAAAAIAAAAAAAFAAIAAAAIAAAAAQA=")
|
||||
tile_set = SubResource("TileSet_n3khe")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="." index="6"]
|
||||
z_index = -100
|
||||
material = SubResource("ShaderMaterial_mvq46")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -320.0
|
||||
offset_top = -158.0
|
||||
offset_right = -320.0
|
||||
offset_bottom = -158.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("4_n40i2")
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="Goal" parent="." index="7" instance=ExtResource("5_1tu7t")]
|
||||
position = Vector2(582, -317)
|
||||
|
||||
[node name="MirrorOrb" parent="." index="8" instance=ExtResource("6_87gst")]
|
||||
position = Vector2(-431, -212)
|
||||
|
||||
[node name="EnemyMover" parent="." index="9" instance=ExtResource("8_3s3ae")]
|
||||
position = Vector2(-132, 311)
|
||||
|
||||
[node name="Block" parent="." index="10" node_paths=PackedStringArray("ui_actions") instance=ExtResource("7_l2s1x")]
|
||||
position = Vector2(-65, 63)
|
||||
ui_actions = NodePath("../UILayer/UI")
|
||||
|
||||
[node name="Block2" parent="." index="11" node_paths=PackedStringArray("ui_actions") instance=ExtResource("7_l2s1x")]
|
||||
position = Vector2(-255, -32)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
ui_actions = NodePath("../UILayer/UI")
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bnvyaxh2kotd3"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dki3ft77fr3tc"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/crumble.gd" id="1_5jikw"]
|
||||
[ext_resource type="Texture2D" uid="uid://buqgl7x10et1f" path="res://temp_assets/img.png" id="1_d52wv"]
|
||||
|
|
Loading…
Add table
Reference in a new issue