Skip to content

Commit

Permalink
cutscene fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stillonearth committed Jan 4, 2024
1 parent f667b6f commit 69415b3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
35 changes: 19 additions & 16 deletions src/cutscene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn setup_cutscene(
NodeBundle {
style: Style {
position_type: PositionType::Absolute,
margin: UiRect::bottom(Val::Percent(5.)),
margin: UiRect::bottom(Val::Percent(10.)),
..default()
},
..default()
Expand Down Expand Up @@ -145,7 +145,7 @@ fn setup_cutscene(
flex_direction: FlexDirection::Row,
align_items: AlignItems::Center,
justify_content: JustifyContent::SpaceAround,
top: Val::Percent(5.),
top: Val::Percent(10.),
width: Val::Percent(100.),
position_type: PositionType::Absolute,
..default()
Expand Down Expand Up @@ -262,20 +262,23 @@ fn handle_cutscene_text(
fn get_cutscene_dialog_text() -> Vec<(usize, String)> {
vec![
(0, "ALLO GENNADIY?".to_string()),
(1, "da-da".to_string()),
(0, "Yeah, hi. So, Shapka the First. Shapka.".to_string()),
(0, "I am Alexey Viktorovich Makeev, AlexTime".to_string()),
(0, "Date of birth 08/22/1974".to_string()),
(0, "Citizen of Russia, citizen of Mexico".to_string()),
(0, "Received political asylum in Mexico.".to_string()),
(
0,
"I am under the international protection of the UN, the United Nations.".to_string(),
),
(1, "Da Da, Gennadiy!".to_string()),
(0, "Yeah, hi.".to_string()),
(0, "So, Shapka the First.".to_string()),
(0, "Shapka.".to_string()),
(0, "I am".to_string()),
(0, "Alexey Viktorovich Makeev".to_string()),
(0, "AlexTime".to_string()),
(0, "Date of birth".to_string()),
(0, "08/22/1974".to_string()),
(0, "Citizen of Russia".to_string()),
(0, "Citizen of Mexico".to_string()),
(0, "Received".to_string()),
(0, "political asylum".to_string()),
(0, "I am under the international protection ".to_string()),
(0, "of the UN, the United Nations.".to_string()),
(0, "wikipedia.org/en/alextime".to_string()),
(
0,
"From Mexican prison number 17. CPS. Michoacan.".to_string(),
),
(0, "From Mexican prison number 17.".to_string()),
(0, "CPS. Michoacan.".to_string()),
]
}
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn main() {
DefaultPlugins
.set(WindowPlugin {
primary_window: Some(Window {
title: "I am a window!".into(),
title: "Legend of Mierda".into(),
resolution: (1024., 1024.).into(),
present_mode: PresentMode::AutoVsync,
// Tells wasm to resize the window according to the available canvas
Expand Down
6 changes: 3 additions & 3 deletions src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn setup_menu(
.spawn((
ButtonBundle {
style: Style {
width: Val::Px(128.0),
width: Val::Px(318.0),
height: Val::Px(50.0),
justify_content: JustifyContent::Center,
align_items: AlignItems::Center,
Expand All @@ -120,9 +120,9 @@ fn setup_menu(
.with_children(|parent| {
parent.spawn((
TextBundle::from_section(
"START",
"start game",
TextStyle {
font_size: 88.0,
font_size: 50.0,
font: font_assets.pixeloid_mono.clone(),
color: Color::WHITE.into(),
..default()
Expand Down

0 comments on commit 69415b3

Please sign in to comment.