fyrox-platformer/editor/src/main.rs

18 lines
501 B
Rust

//! Editor with your game connected to it as a plugin.
use fyrox::event_loop::EventLoop;
use fyroxed_base::{Editor, StartupData};
use platformer::GameConstructor;
fn main() {
let event_loop = EventLoop::new().unwrap();
let mut editor = Editor::new(
&event_loop,
Some(StartupData {
working_directory: Default::default(),
scenes: vec!["data/scene.rgs".into()],
}),
);
editor.add_game_plugin(GameConstructor);
editor.run(event_loop)
}