1
0
Fork 0
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:
Alula 2020-09-12 07:10:48 +02:00
parent 519c7e6349
commit a737619f56
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -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)