Skip to content

Commit

Permalink
Make prontotype playable
Browse files Browse the repository at this point in the history
  • Loading branch information
SaturnHafen committed Jun 25, 2024
1 parent ba7f758 commit 5f3dddf
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 379 deletions.
26 changes: 14 additions & 12 deletions prototypes/game-overshaded/game-overshaded-permutation-1.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=45 format=3 uid="uid://c0nwhyhvrl8ve"]
[gd_scene load_steps=46 format=3 uid="uid://c0nwhyhvrl8ve"]

[ext_resource type="Script" path="res://addons/pronto/behaviors/ExportBehavior.gd" id="1_oqrit"]
[ext_resource type="Script" path="res://addons/pronto/behaviors/PlaceholderBehavior.gd" id="2_02iu0"]
Expand All @@ -20,8 +20,9 @@
[ext_resource type="Texture2D" uid="uid://b6n456fgnxw2m" path="res://prototypes/game-overshaded/dith-pix-blur.jpg" id="18_3rctq"]
[ext_resource type="Texture2D" uid="uid://crv0dhysq3iyp" path="res://prototypes/game-overshaded/dith-pix.jpg" id="19_rl1qd"]
[ext_resource type="Texture2D" uid="uid://ngycbg6g50j1" path="res://prototypes/game-overshaded/dith.jpg" id="20_0oifp"]
[ext_resource type="Texture2D" uid="uid://d2bhr0cxx7mu5" path="res://prototypes/game-overshaded/pix-dith.jpg" id="21_bwr15"]

[sub_resource type="Image" id="Image_wj6lj"]
[sub_resource type="Image" id="Image_oevq5"]
data = {
"data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0),
"format": "RGBA8",
Expand All @@ -31,7 +32,7 @@ data = {
}

[sub_resource type="ImageTexture" id="ImageTexture_abpo7"]
image = SubResource("Image_wj6lj")
image = SubResource("Image_oevq5")

[sub_resource type="GDScript" id="GDScript_3koff"]
script/source = "@tool
Expand Down Expand Up @@ -152,12 +153,7 @@ func run(other, direction, from, to):
if to.get_child_count() == 0 and other_name != \"normal\":
# don't allow starting with applied effect
return

if to.get_child_count() > 0:
if other_name != \"normal\" and to.get_child(0).name != \"normal\":
# don't allow reprossessing the images
return


if to.get_child_count() > 0:
for child in to.get_children():
child.queue_free()
Expand Down Expand Up @@ -201,7 +197,7 @@ deferred = false
enabled = true
trigger = ""
[sub_resource type="Image" id="Image_tmfsf"]
[sub_resource type="Image" id="Image_dn4pi"]
data = {
"data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0),
"format": "RGBA8",
Expand All @@ -211,7 +207,7 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_eqcne"]
image = SubResource("Image_tmfsf")
image = SubResource("Image_dn4pi")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ewtoa"]
Expand Down Expand Up @@ -594,9 +590,15 @@ visible = false
scale = Vector2(0.2, 0.2)
texture = ExtResource("20_0oifp")
[node name="pix-dith" type="Sprite2D" parent="Node2D"]
unique_name_in_owner = true
visible = false
scale = Vector2(0.2, 0.2)
texture = ExtResource("21_bwr15")
[node name="Hand" type="Node2D" parent="."]
z_index = -1
position = Vector2(80, 586)
position = Vector2(139, 551)
[node name="Dith-bw" type="Sprite2D" parent="."]
position = Vector2(874, 567)
Expand Down
15 changes: 9 additions & 6 deletions prototypes/game-overshaded/game-overshaded-permutation-2.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=47 format=3 uid="uid://bukxu1e2vv3lw"]
[gd_scene load_steps=48 format=3 uid="uid://bukxu1e2vv3lw"]

[ext_resource type="Script" path="res://addons/pronto/behaviors/ExportBehavior.gd" id="1_euakv"]
[ext_resource type="Script" path="res://addons/pronto/behaviors/PlaceholderBehavior.gd" id="2_ihpn7"]
Expand All @@ -21,6 +21,7 @@
[ext_resource type="Texture2D" uid="uid://crv0dhysq3iyp" path="res://prototypes/game-overshaded/dith-pix.jpg" id="19_cu2wk"]
[ext_resource type="Texture2D" uid="uid://ngycbg6g50j1" path="res://prototypes/game-overshaded/dith.jpg" id="20_t8geg"]
[ext_resource type="Texture2D" uid="uid://b1ss5ees14n0v" path="res://prototypes/game-overshaded/pix-dith half.png" id="21_mxxqm"]
[ext_resource type="Texture2D" uid="uid://d2bhr0cxx7mu5" path="res://prototypes/game-overshaded/pix-dith.jpg" id="21_odx7k"]
[ext_resource type="Texture2D" uid="uid://dsil5i41vxpc5" path="res://prototypes/game-overshaded/blur-pix hallf.png" id="22_f2q5v"]

[sub_resource type="Image" id="Image_wn1ix"]
Expand Down Expand Up @@ -157,11 +158,6 @@ func run(other, direction, from, to):
# don't allow starting with applied effect
return

if to.get_child_count() > 0:
if other_name != \"normal\" and to.get_child(0).name != \"normal\":
# don't allow reprossessing the images
return

if to.get_child_count() > 0:
for child in to.get_children():
child.queue_free()
Expand Down Expand Up @@ -598,6 +594,12 @@ visible = false
scale = Vector2(0.8, 0.8)
texture = ExtResource("20_t8geg")
[node name="pix-dith" type="Sprite2D" parent="Node2D"]
unique_name_in_owner = true
visible = false
scale = Vector2(0.8, 0.8)
texture = ExtResource("21_odx7k")
[node name="Hand" type="Node2D" parent="."]
z_index = -2
position = Vector2(600, 320)
Expand All @@ -609,6 +611,7 @@ scale = Vector2(0.8, 0.8)
texture = ExtResource("21_mxxqm")
[node name="Blur-pixHallf" type="Sprite2D" parent="."]
visible = false
z_index = -1
position = Vector2(600, 320)
scale = Vector2(0.8, 0.8)
Expand Down
15 changes: 9 additions & 6 deletions prototypes/game-overshaded/game-overshaded-permutation-3.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=47 format=3 uid="uid://cvhse7toffuey"]
[gd_scene load_steps=48 format=3 uid="uid://cvhse7toffuey"]

[ext_resource type="Script" path="res://addons/pronto/behaviors/ExportBehavior.gd" id="1_kcdu6"]
[ext_resource type="Script" path="res://addons/pronto/behaviors/PlaceholderBehavior.gd" id="2_irm2l"]
Expand All @@ -20,6 +20,7 @@
[ext_resource type="Texture2D" uid="uid://b6n456fgnxw2m" path="res://prototypes/game-overshaded/dith-pix-blur.jpg" id="18_c383t"]
[ext_resource type="Texture2D" uid="uid://crv0dhysq3iyp" path="res://prototypes/game-overshaded/dith-pix.jpg" id="19_jxa7f"]
[ext_resource type="Texture2D" uid="uid://ngycbg6g50j1" path="res://prototypes/game-overshaded/dith.jpg" id="20_1wnpo"]
[ext_resource type="Texture2D" uid="uid://d2bhr0cxx7mu5" path="res://prototypes/game-overshaded/pix-dith.jpg" id="20_c5hu6"]

[sub_resource type="Image" id="Image_7xkjx"]
data = {
Expand Down Expand Up @@ -153,11 +154,6 @@ func run(other, direction, from: Node2D, to: Node2D):
# don't allow starting with applied effect
return

if to.get_child_count() > 0:
if other_name != \"normal\" and to.get_child(0).name != \"normal\":
# don't allow reprossessing the images
return

if to.get_child_count() > 0:
for child in to.get_children():
child.queue_free()
Expand Down Expand Up @@ -628,6 +624,13 @@ z_index = -1
scale = Vector2(0.2, 0.2)
texture = ExtResource("19_jxa7f")
[node name="pix-dith" type="Sprite2D" parent="Node2D"]
unique_name_in_owner = true
visible = false
z_index = -1
scale = Vector2(0.2, 0.2)
texture = ExtResource("20_c5hu6")
[node name="dith" type="Sprite2D" parent="Node2D"]
unique_name_in_owner = true
visible = false
Expand Down
Loading

0 comments on commit 5f3dddf

Please sign in to comment.