diff --git a/project.godot b/project.godot index 77b8786..2362fbe 100644 --- a/project.godot +++ b/project.godot @@ -10,14 +10,16 @@ config_version=4 [application] -config/name="LD50" +config/name="Atomic Fusion" run/main_scene="res://src/MainMenu.tscn" -config/icon="res://src/icon.png" +boot_splash/show_image=false +config/icon="res://src/sprites/atom.png" [display] -window/size/width=1280 -window/size/height=720 +window/size/width=1600 +window/size/height=900 +window/size/resizable=false [physics] diff --git a/src/MainMenu.tscn b/src/MainMenu.tscn index fee5590..5cc17ea 100644 --- a/src/MainMenu.tscn +++ b/src/MainMenu.tscn @@ -1,11 +1,38 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://src/MainMenu.gd" type="Script" id=1] +[ext_resource path="res://src/scenes/Background.tscn" type="PackedScene" id=2] +[ext_resource path="res://src/scenes/Play Area.tscn" type="PackedScene" id=3] +[ext_resource path="res://src/scenes/Minimap.tscn" type="PackedScene" id=4] [node name="MainMenu" type="Node2D"] script = ExtResource( 1 ) -[node name="Label" type="Label" parent="."] -margin_right = 40.0 -margin_bottom = 14.0 -text = "Hello world!" +[node name="Background" parent="." instance=ExtResource( 2 )] +modulate = Color( 0, 0.294118, 0.196078, 1 ) + +[node name="Play Area" parent="." instance=ExtResource( 3 )] +self_modulate = Color( 0, 0.34902, 0.329412, 1 ) + +[node name="Tiles" parent="Play Area" index="0"] +self_modulate = Color( 0, 0.34902, 0.329412, 1 ) + +[node name="Atom" parent="Play Area/Atoms" index="0"] +modulate = Color( 0, 1, 1, 1 ) + +[node name="Spinner" parent="Play Area" index="2"] +modulate = Color( 0, 1, 0.658824, 1 ) + +[node name="Label" parent="Play Area" index="3"] +modulate = Color( 0, 1, 0.658824, 1 ) + +[node name="Minimap" parent="." instance=ExtResource( 4 )] + +[node name="Atom" parent="Minimap" index="0"] +modulate = Color( 0, 1, 0.658824, 1 ) + +[node name="Timer" type="Timer" parent="."] +wait_time = 10.0 + +[editable path="Play Area"] +[editable path="Minimap"] diff --git a/src/fonts/Xolonium-Bold.ttf b/src/fonts/Xolonium-Bold.ttf new file mode 100644 index 0000000..13e376f Binary files /dev/null and b/src/fonts/Xolonium-Bold.ttf differ diff --git a/src/fonts/Xolonium-Regular.ttf b/src/fonts/Xolonium-Regular.ttf new file mode 100644 index 0000000..031d627 Binary files /dev/null and b/src/fonts/Xolonium-Regular.ttf differ diff --git a/src/scenes/Background.tscn b/src/scenes/Background.tscn new file mode 100644 index 0000000..90fb071 --- /dev/null +++ b/src/scenes/Background.tscn @@ -0,0 +1,7 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://src/sprites/background.png" type="Texture" id=1] + +[node name="Background" type="Sprite"] +position = Vector2( 800, 450 ) +texture = ExtResource( 1 ) diff --git a/src/scenes/Minimap.tscn b/src/scenes/Minimap.tscn new file mode 100644 index 0000000..5dc4f70 --- /dev/null +++ b/src/scenes/Minimap.tscn @@ -0,0 +1,15 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://src/sprites/atom.png" type="Texture" id=1] + +[node name="Minimap" type="Node2D"] +position = Vector2( 0, 880 ) + +[node name="Atom" type="Sprite" parent="."] +scale = Vector2( 0.5, 0.5 ) +texture = ExtResource( 1 ) + +[node name="Atom2" type="Sprite" parent="."] +position = Vector2( 1600, 0 ) +scale = Vector2( 0.5, 0.5 ) +texture = ExtResource( 1 ) diff --git a/src/scenes/Play Area.tscn b/src/scenes/Play Area.tscn new file mode 100644 index 0000000..30fc8e9 --- /dev/null +++ b/src/scenes/Play Area.tscn @@ -0,0 +1,62 @@ +[gd_scene load_steps=9 format=2] + +[ext_resource path="res://src/sprites/huge-atom.png" type="Texture" id=1] +[ext_resource path="res://src/sprites/grid-tile.png" type="Texture" id=2] +[ext_resource path="res://src/sprites/atom.png" type="Texture" id=3] +[ext_resource path="res://src/sprites/spinner.png" type="Texture" id=4] +[ext_resource path="res://src/fonts/Xolonium-Bold.ttf" type="DynamicFontData" id=5] + +[sub_resource type="TileSet" id=1] +0/name = "grid-tile.png 0" +0/texture = ExtResource( 2 ) +0/tex_offset = Vector2( 0, 0 ) +0/modulate = Color( 1, 1, 1, 1 ) +0/region = Rect2( 0, 0, 85, 85 ) +0/tile_mode = 0 +0/occluder_offset = Vector2( 0, 0 ) +0/navigation_offset = Vector2( 0, 0 ) +0/shape_offset = Vector2( 0, 0 ) +0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +0/shape_one_way = false +0/shape_one_way_margin = 0.0 +0/shapes = [ ] +0/z_index = 0 + +[sub_resource type="DynamicFont" id=2] +size = 48 +font_data = ExtResource( 5 ) + +[sub_resource type="Theme" id=3] +default_font = SubResource( 2 ) + +[node name="Play Area" type="Sprite"] +position = Vector2( 400, 450 ) +texture = ExtResource( 1 ) + +[node name="Tiles" type="TileMap" parent="."] +tile_set = SubResource( 1 ) +cell_size = Vector2( 86, 86 ) +format = 1 +tile_data = PoolIntArray( -131074, 0, 0, -131073, 0, 0, -196608, 0, 0, -196607, 0, 0, -65539, 0, 0, -65538, 0, 0, -65537, 0, 0, -131072, 0, 0, -131071, 0, 0, -131070, 0, 0, -3, 0, 0, -2, 0, 0, -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, 65533, 0, 0, 65534, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 131069, 0, 0, 131070, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 196606, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0 ) + +[node name="Atoms" type="Node2D" parent="."] + +[node name="Atom" type="Sprite" parent="Atoms"] +position = Vector2( 43, -215 ) +texture = ExtResource( 3 ) + +[node name="Spinner" type="Sprite" parent="."] +position = Vector2( -87, -173 ) +texture = ExtResource( 4 ) + +[node name="Label" type="Label" parent="."] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -407.0 +margin_top = -32.0 +margin_right = -335.0 +margin_bottom = -342.0 +theme = SubResource( 3 ) +text = "32" diff --git a/src/sprites/atom.png b/src/sprites/atom.png new file mode 100644 index 0000000..45ef160 --- /dev/null +++ b/src/sprites/atom.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee33d2c91922ab5db24d18b80e990360be6613e1a89651650707b61b0d30bb6e +size 3119 diff --git a/src/sprites/atom.png.import b/src/sprites/atom.png.import new file mode 100644 index 0000000..956c758 --- /dev/null +++ b/src/sprites/atom.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/atom.png-d2f80998ea491940e904430d0ba60cce.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/sprites/atom.png" +dest_files=[ "res://.import/atom.png-d2f80998ea491940e904430d0ba60cce.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/src/sprites/background.png b/src/sprites/background.png new file mode 100644 index 0000000..6ff3de5 --- /dev/null +++ b/src/sprites/background.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a634c42be3d0862aeb9bc25b6cbbda466e3058a0be2efe9515320394bd92365 +size 966049 diff --git a/src/sprites/background.png.import b/src/sprites/background.png.import new file mode 100644 index 0000000..cbee04e --- /dev/null +++ b/src/sprites/background.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/background.png-fdb80f05ddc5f048f71d08012867f458.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/sprites/background.png" +dest_files=[ "res://.import/background.png-fdb80f05ddc5f048f71d08012867f458.stex" ] + +[params] + +compress/mode=1 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/src/sprites/grid-tile.png b/src/sprites/grid-tile.png new file mode 100644 index 0000000..cabaecf --- /dev/null +++ b/src/sprites/grid-tile.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5347330e93db0940cb099085e8d887de61a49b53007fa654e2425ec4b2692ae +size 1210 diff --git a/src/sprites/grid-tile.png.import b/src/sprites/grid-tile.png.import new file mode 100644 index 0000000..d90573b --- /dev/null +++ b/src/sprites/grid-tile.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/grid-tile.png-b1ca29eebb71791e7b2b4747f6cb26ed.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/sprites/grid-tile.png" +dest_files=[ "res://.import/grid-tile.png-b1ca29eebb71791e7b2b4747f6cb26ed.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/src/sprites/huge-atom.png b/src/sprites/huge-atom.png new file mode 100644 index 0000000..dc580fc --- /dev/null +++ b/src/sprites/huge-atom.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55f820908d871ef020549a4571bab42dd7fed10b0545bd9166552abbb3b56718 +size 35094 diff --git a/src/sprites/huge-atom.png.import b/src/sprites/huge-atom.png.import new file mode 100644 index 0000000..347c476 --- /dev/null +++ b/src/sprites/huge-atom.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/huge-atom.png-b5df697bc2932b55a82cb059f25aeabd.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/sprites/huge-atom.png" +dest_files=[ "res://.import/huge-atom.png-b5df697bc2932b55a82cb059f25aeabd.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/src/sprites/spinner.png b/src/sprites/spinner.png new file mode 100644 index 0000000..86bf450 --- /dev/null +++ b/src/sprites/spinner.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cde4d1a5ca24280780a39b0f5dee215da52c6e1f54abcc6b9b099270dee82351 +size 3743 diff --git a/src/sprites/spinner.png.import b/src/sprites/spinner.png.import new file mode 100644 index 0000000..ac4c544 --- /dev/null +++ b/src/sprites/spinner.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/spinner.png-e761811debc5651ed7547291ca89fdb4.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/sprites/spinner.png" +dest_files=[ "res://.import/spinner.png-e761811debc5651ed7547291ca89fdb4.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0