mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-22 21:52:46 +00:00
background parallax fix
This commit is contained in:
parent
519c7e6349
commit
a737619f56
|
@ -195,7 +195,7 @@ impl GameScene {
|
|||
}
|
||||
}
|
||||
BackgroundType::MoveDistant | BackgroundType::MoveNear => {
|
||||
let (off_x, off_y) = if self.stage.data.background_type == BackgroundType::MoveDistant {
|
||||
let (off_x, off_y) = if self.stage.data.background_type == BackgroundType::MoveNear {
|
||||
(
|
||||
self.frame.x as usize % (batch.width() * 0x200),
|
||||
self.frame.y as usize % (batch.height() * 0x200)
|
||||
|
|
Loading…
Reference in a new issue