implements PLN-0021

This commit is contained in:
2026-04-17 13:32:11 +01:00
parent 5ef43045bc
commit a1bd60671b
8 changed files with 104 additions and 18 deletions
@@ -162,17 +162,19 @@ impl NativeInterface for VirtualMachineRuntime {
return Ok(());
}
*hw.gfx_mut().sprite_mut(index) = Sprite {
glyph: Glyph { glyph_id, palette_id },
x,
y,
layer: 0,
bank_id,
active,
flip_x,
flip_y,
priority,
};
if active {
hw.emit_sprite(Sprite {
glyph: Glyph { glyph_id, palette_id },
x,
y,
layer: 0,
bank_id,
active: false,
flip_x,
flip_y,
priority,
});
}
ret.push_int(GfxOpStatus::Ok as i64);
Ok(())
}