bevy/examples/simple.rs

19 lines
374 B
Rust
Raw Normal View History

2019-11-13 03:36:02 +00:00
use legion::prelude::*;
use bevy::{Application, Transform};
struct SimpleApp;
impl Application for SimpleApp {
fn update(&self) {}
}
fn main() {
let app = SimpleApp {};
// Create a world to store our entities
let universe = Universe::new();
let mut world = universe.create_world();
world.insert((), vec![(Transform::new(),)]);
app.start();
}