Skip to content

Commit 55405d3

Browse files
committed
wip: basic "pumpkins" dot/dotted and wip theme
Adds a quick Pumpkins theme with a pumpkin dot and dotted state.
1 parent a10afc4 commit 55405d3

11 files changed

+161
-3
lines changed

data.pandora

+40-1
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,45 @@
893893
"value": "Puzzle Skipped"
894894
}
895895
}
896+
},
897+
{
898+
"_category_id": "3",
899+
"_icon_color": "ffffff00",
900+
"_id": "70",
901+
"_index": 0,
902+
"_name": "Pumpkins",
903+
"_property_overrides": {
904+
"display_name": {
905+
"type": "string",
906+
"value": "Pumpkins"
907+
},
908+
"dot_icon_texture": {
909+
"type": "resource",
910+
"value": "res://src/themes/pumpkins/pumpkin.png"
911+
},
912+
"dot_scenes": {
913+
"type": "array",
914+
"value": {
915+
"0": "res://src/themes/pumpkins/PumpkinDot.tscn"
916+
}
917+
},
918+
"goal_scenes": {
919+
"type": "array",
920+
"value": {
921+
"0": "res://src/themes/fall/Leaf.tscn"
922+
}
923+
},
924+
"player_scenes": {
925+
"type": "array",
926+
"value": {
927+
"0": "res://src/themes/fall/Player.tscn"
928+
}
929+
},
930+
"puzzle_scene": {
931+
"type": "resource",
932+
"value": "res://src/themes/pumpkins/PumpkinsPuzzle.tscn"
933+
}
934+
}
896935
}
897936
],
898937
"_properties": [
@@ -1166,7 +1205,7 @@
11661205
},
11671206
"_id_generator": {
11681207
"_ids_by_context": {
1169-
"default": 69
1208+
"default": 70
11701209
}
11711210
}
11721211
}

pandora/puzzle_theme_i_ds.gd

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ const FALL = "15"
99
const WINTER = "22"
1010
const SPRING = "23"
1111
const SUMMER = "24"
12+
const PUMPKINS = "70"

project.godot

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ folder_colors={
5151
"res://src/themes/": "purple"
5252
}
5353

54+
[file_customization]
55+
56+
folder_colors={
57+
"res://addons/": "red",
58+
"res://src/": "green"
59+
}
60+
5461
[gdunit4]
5562

5663
settings/common/update_notification_enabled=false

src/themes/fall/FallBackground.gdshader

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
shader_type canvas_item;
22

3-
uniform float v = 1.0;
3+
uniform float v = 1.0;
44
uniform float size = 10.0;
55

66
void fragment() {
@@ -17,5 +17,5 @@ void fragment() {
1717
}
1818
}
1919
COLOR = c;
20-
20+
2121
}

src/themes/pumpkins/PumpkinDot.gd

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@tool
2+
extends DotsDot

src/themes/pumpkins/PumpkinDot.tscn

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[gd_scene load_steps=6 format=3 uid="uid://tr7u31n263mg"]
2+
3+
[ext_resource type="Script" path="res://src/themes/pumpkins/PumpkinDot.gd" id="1_lqdj3"]
4+
[ext_resource type="Texture2D" uid="uid://dlp2c8r3rkg73" path="res://src/themes/pumpkins/pumpkin.png" id="2_mwdep"]
5+
6+
[sub_resource type="AtlasTexture" id="AtlasTexture_umglb"]
7+
atlas = ExtResource("2_mwdep")
8+
region = Rect2(0, 0, 32, 32)
9+
10+
[sub_resource type="AtlasTexture" id="AtlasTexture_377hw"]
11+
atlas = ExtResource("2_mwdep")
12+
region = Rect2(32, 0, 32, 32)
13+
14+
[sub_resource type="SpriteFrames" id="SpriteFrames_n8cnn"]
15+
animations = [{
16+
"frames": [{
17+
"duration": 1.0,
18+
"texture": SubResource("AtlasTexture_umglb")
19+
}],
20+
"loop": true,
21+
"name": &"dot",
22+
"speed": 10.0
23+
}, {
24+
"frames": [{
25+
"duration": 1.0,
26+
"texture": SubResource("AtlasTexture_377hw")
27+
}],
28+
"loop": true,
29+
"name": &"dotted",
30+
"speed": 10.0
31+
}]
32+
33+
[node name="PumpkinDot" type="Node2D"]
34+
script = ExtResource("1_lqdj3")
35+
36+
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
37+
texture_filter = 1
38+
sprite_frames = SubResource("SpriteFrames_n8cnn")
39+
animation = &"dot"
40+
metadata/_aseprite_wizard_config_ = {
41+
"layer": "",
42+
"o_ex_p": "",
43+
"o_folder": "",
44+
"o_name": "",
45+
"only_visible": false,
46+
"slice": "",
47+
"source": "res://src/themes/pumpkins/assets/pumpkin.aseprite"
48+
}
49+
metadata/_aseprite_wizard_source_file_hash_ = "e6ca95123638d95d556972f19c65eb07"
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[gd_scene load_steps=4 format=3 uid="uid://brex4gw05pad1"]
2+
3+
[ext_resource type="Script" path="res://src/puzzle/PuzzleScene.gd" id="1_mpyla"]
4+
[ext_resource type="Script" path="res://src/themes/PuzzleTheme.gd" id="2_0jjpy"]
5+
6+
[sub_resource type="Resource" id="Resource_uvlxf"]
7+
script = ExtResource("2_0jjpy")
8+
_id = "70"
9+
10+
[node name="PumpkinsPuzzle" type="Node2D" groups=["dothop_puzzle"]]
11+
script = ExtResource("1_mpyla")
12+
theme = SubResource("Resource_uvlxf")
950 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[remap]
2+
3+
importer="aseprite_wizard.plugin.noop"
4+
type="PackedDataContainer"
5+
uid="uid://c7733rda3fr4b"
6+
path="res://.godot/imported/pumpkin.aseprite-229b6d13511f8fd8d0c00c8a95ddfc4f.res"
7+
8+
[deps]
9+
10+
source_file="res://src/themes/pumpkins/assets/pumpkin.aseprite"
11+
dest_files=["res://.godot/imported/pumpkin.aseprite-229b6d13511f8fd8d0c00c8a95ddfc4f.res"]
12+
13+
[params]
14+

src/themes/pumpkins/pumpkin.png

581 Bytes
Loading
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://dlp2c8r3rkg73"
6+
path="res://.godot/imported/pumpkin.png-cf22bd30ec13cf35ab71381488c32e20.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://src/themes/pumpkins/pumpkin.png"
14+
dest_files=["res://.godot/imported/pumpkin.png-cf22bd30ec13cf35ab71381488c32e20.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

0 commit comments

Comments
 (0)