OW2VMA755QN3ZMU37KBFH2LMB3372TE53655U55ITKCGW2PGJOMQC
use bevy::prelude::*;
use bevy::log;
use bevy::log::{Level, LogSettings};
pub mod components;
use crate::components::*;
fn main() {
let mut app = App::new();
app
.insert_resource(WindowDescriptor {
title: "EagleOne".to_string(),
vsync: false,
..Default::default()
})
.insert_resource(LogSettings {
level: Level::INFO,
..Default::default()
})
.add_plugins(DefaultPlugins)
.run();
}
use bevy::prelude::*;
use bevy_rapier2d::prelude::*;
#[derive(Debug, Clone, Default, Component)]
pub struct Ship{
engine_power: f32,
}
#[derive(Default, Bundle)]
pub struct ShipBundle{
ship: Ship,
#[bundle]
rigidbody: RigidBodyBundle,
#[bundle]
collider: ColliderBundle,
#[bundle]
render: PbrBundle,
}
pub use ship::{Ship, ShipBundle};
mod ship;
[package]
name = "game2"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = "0.6.1"
bevy_egui = "0.12"
bevy_rapier2d = "0.12.1"