mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
18 lines
374 B
Rust
18 lines
374 B
Rust
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();
|
|
}
|