cleanup todo comments, tweak default board for incrementer level

This commit is contained in:
Crispy 2025-03-30 17:33:49 +02:00
parent c20fea4f86
commit be699aa0ec
4 changed files with 5 additions and 4 deletions

View file

@ -77,7 +77,10 @@
"id": "increment_input",
"name": "Incrementer",
"description": "Add one to each input number",
"init_board": " \n o \n 5 \n \n *+ \n M2 \n \n \n \n",
"init_board": {
"grid": " \n\n\n o\n 5\n\n *|\n A2\n\n\n\n",
"comments": []
},
"stages": [{
"input": [93, 47, 71],
"output": [94, 48, 72]

View file

@ -335,7 +335,6 @@ impl Game {
fn save_config(&self) {
let path = userdata_dir().join(CONFIG_FILE_NAME);
// todo save more than just input
let json = serde_json::to_string_pretty(&self.globals.config).unwrap();
let mut f = File::create(path).unwrap();
f.write_all(json.as_bytes()).unwrap();

View file

@ -255,7 +255,7 @@ impl Grid {
let texture = textures.get(texname);
draw_scaled_texture(d, texture, px, py, scale);
#[cfg(debug_assertions)]
// TODO: some in-game option to show power direction
// todo some in-game option to show power direction
if let Tile::Powerable(_, state) = &tile {
for dir in Direction::ALL {
if state.get_dir(dir) {

View file

@ -38,7 +38,6 @@ impl ShapedText {
}
self.max_width = width;
self.lines.clear();
// todo remove leading space on broken lines
// todo fix splitting very long words
let mut line_start = 0;
let mut line_end = 0;