1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-10 21:17:43 +00:00

I misunderstood <FAC flags

This commit is contained in:
Alula 2020-09-26 02:03:17 +02:00
parent e8337f14fb
commit 8973727b93
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA
2 changed files with 6 additions and 4 deletions

View file

@ -465,8 +465,8 @@ impl GameScene {
};
let batch = state.texture_set.get_or_load_batch(ctx, &state.constants, tex_name)?;
// switch version uses +100 face offset to display a flipped version
let flip = state.textscript_vm.face > 100;
// switch version uses +1000 face offset to display a flipped version
let flip = state.textscript_vm.face > 1000;
let face_num = state.textscript_vm.face % 100;
let (scale_x, scale_y) = batch.scale();

View file

@ -103,8 +103,10 @@ pub enum OpCode {
CLO,
/// <CLR, Clears the text box
CLR,
/// <FACxxxx, Shows the face xxxx in text box, 0 to hide, add 100 to the
/// number to display the face in opposite direction.
/// <FACxxxx, Shows the face xxxx in text box, 0 to hide,
/// CS+ Switch extensions:
/// - add 0100 to display talking animation (requires faceanm.dat)
/// - add 1000 to the number to display the face in opposite direction. (works on any CS, including freeware mods)
FAC,
/// <GITxxxx, Shows the item xxxx above text box, 0 to hide
GIT,