1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-12-10 22:38:30 +00:00

Fix intro background color

The intro scene should have a black background, not dark blue.
This commit is contained in:
Edward Stuckey 2025-06-02 02:01:54 -04:00 committed by alula
parent 5f517e6992
commit 2f73066d12

View file

@ -2,7 +2,7 @@ use std::{cmp, ops::Div};
use chrono::{Datelike, Local};
use crate::common::{ControlFlags, Direction, FadeState};
use crate::common::{Color, ControlFlags, Direction, FadeState};
use crate::components::draw_common::{draw_number, Alignment};
use crate::data::vanilla::VanillaExtractor;
#[cfg(feature = "discord-rpc")]
@ -654,6 +654,7 @@ impl SharedGameState {
}
let mut next_scene = GameScene::new(self, ctx, start_stage_id)?;
next_scene.stage.data.background_color = Color::from_rgb(0, 0, 0);
next_scene.player1.cond.set_hidden(true);
let (pos_x, pos_y) = self.constants.game.intro_player_pos;
next_scene.player1.x = pos_x as i32 * next_scene.stage.map.tile_size.as_int() * 0x200;