1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-12-17 18:05:27 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
biroder ec21a22e30 Add a warning about build tools version changes to the Android build script[ci skip] 2024-11-04 13:36:49 +02:00
Edward Stuckey aebf4c2d59
Fix inaccuracy with curly boss bullet (#281)
This should not move on the first tick. Also in vanilla, the projectile makes a movement before dissipating from hitting the wall.
2024-11-04 12:52:53 +02:00
2 changed files with 9 additions and 2 deletions

View file

@ -5,6 +5,12 @@ plugins {
android {
namespace "io.github.doukutsu_rs"
/**
* NOTE: If you want to change the versions of packages required for the build
* (e.g. build tools, compile SDK, NDK) or add new ones,
* make the appropriate changes in packages.txt. Otherwise CI could break.
*/
compileSdkVersion 33
buildToolsVersion "33.0.0"
ndkVersion "25.2.9519653"

View file

@ -296,6 +296,9 @@ impl NPC {
}
self.anim_rect = state.constants.npc.n123_curly_boss_bullet[self.direction as usize];
} else {
self.x += self.vel_x;
self.y += self.vel_y;
}
if match self.direction {
@ -312,8 +315,6 @@ impl NPC {
return Ok(());
}
self.x += self.vel_x;
self.y += self.vel_y;
Ok(())
}