use rusty_engine::prelude::*;
fn main() {
let mut game = Game::new();
let msg = game.add_text(
"msg",
"You can add your own sound files to the assets/audio directory\n(or its subdirectories) and play them by relative path. This\nworks for both sound effects and music. For example:",
);
msg.translation.y = 100.0;
let msg2 = game.add_text(
"msg2",
"engine.audio_manager.play_sfx(\"sfx/congratulations.ogg\", 1.0);",
);
msg2.translation.y = -100.0;
msg2.font = "font/FiraMono-Medium.ttf".to_string();
game.audio_manager.play_sfx("sfx/congratulations.ogg", 1.0);
game.run(());
}