Skip to content

Commit

Permalink
wip: creating some on-disk grid rules
Browse files Browse the repository at this point in the history
  • Loading branch information
russmatney committed Jun 22, 2024
1 parent aa49e05 commit cf53d43
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/BloxGame.tscn
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
[gd_scene load_steps=9 format=3 uid="uid://bkbmd5nbt1fco"]
[gd_scene load_steps=8 format=3 uid="uid://bkbmd5nbt1fco"]

[ext_resource type="PackedScene" uid="uid://dwj7dbdpb053r" path="res://src/BloxBucket.tscn" id="1_hv3gi"]
[ext_resource type="Script" path="res://src/BloxGame.gd" id="1_t4cqx"]
[ext_resource type="Script" path="res://src/BloxGrid.gd" id="3_g3a7t"]
[ext_resource type="Shader" path="res://src/crtv.gdshader" id="3_hpt8s"]
[ext_resource type="Script" path="res://src/GridRules.gd" id="4_73yam"]
[ext_resource type="Resource" uid="uid://cmqc1wv5saopl" path="res://src/rules/PuyoGridRules.tres" id="4_ydo31"]

[sub_resource type="Resource" id="Resource_upt77"]
script = ExtResource("3_g3a7t")
width = 10
height = 12

[sub_resource type="Resource" id="Resource_vi647"]
script = ExtResource("4_73yam")
puyo_split = false
puyo_group_clear = false
puyo_group_size = 4
tetris_row_clear = true
step_direction = Vector2i(0, 1)

[sub_resource type="ShaderMaterial" id="ShaderMaterial_2o1j2"]
shader = ExtResource("3_hpt8s")
shader_parameter/overlay = true
Expand Down Expand Up @@ -64,7 +56,7 @@ z_index = 1
position = Vector2(387, 49)
grid = SubResource("Resource_upt77")
cell_size = Vector2(48, 48)
grid_rules = SubResource("Resource_vi647")
grid_rules = ExtResource("4_ydo31")

[node name="UI" type="CanvasLayer" parent="."]

Expand Down
11 changes: 11 additions & 0 deletions src/rules/PuyoGridRules.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="GridRules" load_steps=2 format=3 uid="uid://cmqc1wv5saopl"]

[ext_resource type="Script" path="res://src/GridRules.gd" id="1_0jo2l"]

[resource]
script = ExtResource("1_0jo2l")
puyo_split = true
puyo_group_clear = true
puyo_group_size = 4
tetris_row_clear = false
step_direction = Vector2i(0, 1)
11 changes: 11 additions & 0 deletions src/rules/PuyoPlusTetrisGridRules.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="GridRules" load_steps=2 format=3 uid="uid://b24epxiwyvbpl"]

[ext_resource type="Script" path="res://src/GridRules.gd" id="1_6t4tg"]

[resource]
script = ExtResource("1_6t4tg")
puyo_split = true
puyo_group_clear = true
puyo_group_size = 4
tetris_row_clear = true
step_direction = Vector2i(0, 1)
12 changes: 12 additions & 0 deletions src/rules/TetrisGridRules.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_resource type="Resource" script_class="GridRules" load_steps=2 format=3 uid="uid://ts3dv6wqur0h"]

[ext_resource type="Script" path="res://src/GridRules.gd" id="1_af7eh"]

[resource]
resource_name = "TetrisGridRules"
script = ExtResource("1_af7eh")
puyo_split = false
puyo_group_clear = false
puyo_group_size = 4
tetris_row_clear = true
step_direction = Vector2i(0, 1)

0 comments on commit cf53d43

Please sign in to comment.