Skip to content

Commit

Permalink
Improve tutorial slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Dec 18, 2023
1 parent 17a71d1 commit 0b43565
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/state/editor_screen/code_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ use crate::ui::FONT_HANDLE;

const LIGHT_THEME_TEXT: &str = "Aargh, my eyes!
I cannot work with this light theme!
I should pick a dark theme from the panel on the right.
I need to install a dark theme from the panel on the right.
The installed upgrades will appear on the left panel.";
Installed upgrades will appear on the left.";

/// Spawns the fake code panel with light theme.
pub fn spawn_light_code_panel(
Expand Down
2 changes: 1 addition & 1 deletion src/state/editor_screen/upgrade_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn spawn_upgrade_panel(
},
)
.with_style(Style {
margin: UiRect::bottom(Px(15.0)),
margin: UiRect::bottom(Px(20.0)),
..default()
}),
FontSize::new(config.upgrade_panel_header_font_size),
Expand Down
2 changes: 1 addition & 1 deletion src/ui/code_typer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl Plugin for CodeTyperPlugin {

const FILLER_CODE: &str = concat!(
" to generate lines of code!
// Install the next plugin to start spawning entities.
// Install TouchOfLifePlugin, then click to spawn entities.
",
include_str!("code_typer.rs"),
Expand Down
2 changes: 1 addition & 1 deletion src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ generate_upgrade_list!(
name: "Initial Commit".to_string(),
desc: "Hello world! The first step of your journey.".to_string(),
no_outline: true,
base_cost: 2.0,
base_cost: 1.0,
..default()
},

Expand Down

0 comments on commit 0b43565

Please sign in to comment.