From a4adf1a6b5abe8999f554ccce88af576500f449c Mon Sep 17 00:00:00 2001
From: Daniel Ting <danielzting@gmail.com>
Date: Tue, 16 Aug 2022 23:47:11 -0500
Subject: [PATCH 1/2] Fix README

---
 README.md                |   2 +-
 assets/levels.png        | Bin 202591 -> 184695 bytes
 assets/levels.png.import |  34 ----------------------------------
 3 files changed, 1 insertion(+), 35 deletions(-)
 delete mode 100644 assets/levels.png.import

diff --git a/README.md b/README.md
index 1c47741..860a163 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
 <p align="center">
-  <img src="assets/icon.png" alt="Logo" width="64" height="64">
+  <img src="assets/icon-512.png" alt="Logo" width="64" height="64">
 
   <h1 align="center">Algorithm Simulator</h1>
 
diff --git a/assets/levels.png b/assets/levels.png
index b506fec6616c64ccfb38ce4f3d8ad6f3ad91f7f9..e77e9850edc82ed104beeb5e341281bf8c6685f3 100644
GIT binary patch
diff --git a/assets/levels.png.import b/assets/levels.png.import
deleted file mode 100644
index d4c8f5d..0000000
--- a/assets/levels.png.import
+++ /dev/null
@@ -1,34 +0,0 @@
-[remap]
-
-importer="texture"
-type="StreamTexture"
-path="res://.import/levels.png-a6e910382d32e95b5c3f382bb559bde4.stex"
-metadata={
-"vram_texture": false
-}
-
-[deps]
-
-source_file="res://assets/levels.png"
-dest_files=[ "res://.import/levels.png-a6e910382d32e95b5c3f382bb559bde4.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
-stream=false
-size_limit=0
-detect_3d=true
-svg/scale=1.0

From 1de8689d1a3ea8252da0c4c4bd00a6fff1cf744b Mon Sep 17 00:00:00 2001
From: Daniel Ting <danielzting@gmail.com>
Date: Wed, 17 Aug 2022 14:36:08 -0500
Subject: [PATCH 2/2] Fix wrong difficulty pre-selected after completion

This commit remembers the difficulty of the level just finished and
selects that one after returning to the level screen instead of
hard-coding easy mode.
---
 scripts/levels.gd | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/scripts/levels.gd b/scripts/levels.gd
index ff4963e..e63345e 100644
--- a/scripts/levels.gd
+++ b/scripts/levels.gd
@@ -29,9 +29,10 @@ func _ready():
     _load_types($Level/Right/Display/TypesContainer)
     _load_types($BigDisplay/TypesContainer)
     _reload()
-    var easy = $Level/Right/Info/ScoresContainer/Scores/Easy/Button
-    easy.add_color_override("font_color", GlobalTheme.ORANGE)
-    easy.focus_neighbour_top = $NamesContainer/Names/Current.get_path()
+    var scores = $Level/Right/Info/ScoresContainer/Scores
+    scores.get_node("Easy/Button").focus_neighbour_top = $NamesContainer/Names/Current.get_path()
+    var selectedDifficulty = scores.get_child(log(_size / MIN_SIZE) / log(2)).get_node("Button")
+    selectedDifficulty.add_color_override("font_color", GlobalTheme.ORANGE)
     for difficulty in $Level/Right/Info/ScoresContainer/Scores.get_children():
         if difficulty.name != "Controls":
             difficulty.get_child(0).connect("pressed", self, "_on_Difficulty_pressed", [difficulty])
