/// Settings for how to run the emulator.
////// Contain fields that change the visual output of the PPU.
/// Some fields can also change the behaviour of some games (by interfering with the
/// sprite 0 hit or sprite overflow flags).
#[derive(Copy, Clone)]#[cfg_attr(feature ="wasm-bindgen", wasm_bindgen::prelude::wasm_bindgen)]pubstructSettings{/// Debugging palette override, assigns each palette a unique colour to quickly show which tiles are using which palettes.
pubuse_debug_palette:bool,
/// Whether to limit each scanline to rendering at most 8 sprites.
/// Sprite 0 hit and sprite overflow flag setting behaviour will not be changed, this is only visual
pubscanline_sprite_limit:bool,
/// Whether to always draw sprites on top of the background
pubalways_sprites_on_top:bool,
}implDefault forSettings{fndefault()->Self{
Settings {
use_debug_palette:false,
scanline_sprite_limit:true,
always_sprites_on_top:false,}}}