Skip to content

Commit 7729442

Browse files
committed
refactor: update levels.json
Now that multi-level loading has been shown to work, the placeholder levels have been deleted from levels.json and the file moved into assets/.
1 parent 8ec8d21 commit 7729442

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

assets/levels.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"BUBBLE SORT":
3+
{
4+
"about": "Bubble sort is a simple sorting algorithm, typically the first taught in introductory computer science classes."
5+
}
6+
}

levels.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

scripts/levels.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var levels
44

55
func _ready():
66
var descriptions = File.new()
7-
descriptions.open("res://levels.json", descriptions.READ)
7+
descriptions.open("res://assets/levels.json", descriptions.READ)
88
levels = parse_json(descriptions.get_as_text())
99
var first = true
1010
for level in levels:

0 commit comments

Comments
 (0)