diff --git a/tiny-town/Cargo.toml b/tiny-town/Cargo.toml deleted file mode 100644 index 499dc41f59..0000000000 --- a/tiny-town/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "tiny-town" -version = "0.1.0" -authors = ["Carter Anderson "] -edition = "2018" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -bevy = { path = "../" } \ No newline at end of file diff --git a/tiny-town/README.md b/tiny-town/README.md deleted file mode 100644 index 4075cba7aa..0000000000 --- a/tiny-town/README.md +++ /dev/null @@ -1,10 +0,0 @@ - - -```bash -# run using one of these commands -# lld linker makes compiles faster -# rust backtrace gives you a nice backtrace on panics -# -Zshare-generics=y makes generics slightly faster for some reason -env RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo run --release -env RUSTFLAGS="-C link-arg=-fuse-ld=lld -Zshare-generics=y" RUST_BACKTRACE=1 cargo run --release -``` \ No newline at end of file diff --git a/tiny-town/src/main.rs b/tiny-town/src/main.rs deleted file mode 100644 index 0458e99410..0000000000 --- a/tiny-town/src/main.rs +++ /dev/null @@ -1,41 +0,0 @@ -use bevy::*; -use bevy::{render::mesh::{Mesh, MeshType}, asset::{Asset, AssetStorage}, temp::*, math}; -use std::clone::Clone; - -fn main() { - let universe = Universe::new(); - let mut world = universe.create_world(); - // Create a query which finds all `Position` and `Velocity` components - // let mut query = Read::::query(); - let cube = Mesh::load(MeshType::Cube); - let plane = Mesh::load(MeshType::Plane{ size: 10 }); - let mut mesh_storage = AssetStorage::::new(); - - // this currently breaks because Arcs cant be modified after they are cloned :( - let mesh_handle = mesh_storage.add(cube); - let plane_handle = mesh_storage.add(plane); - world.resources.insert(mesh_storage); - - world.insert((), vec![ - ( - Material { color: math::vec4(0.0, 1.0, 0.0, 1.0), bind_group: None, uniform_buf: None }, - plane_handle.clone(), - LocalToWorld(math::translation(&math::vec3(0.0, 0.0, 0.0))), - Translation::new(0.0, 0.0, 0.0) - ), - ( - Material { color: math::vec4(0.0, 1.0, 0.0, 1.0), bind_group: None, uniform_buf: None }, - mesh_handle.clone(), - LocalToWorld(math::translation(&math::vec3(3.0, 0.0, 0.0))), - Translation::new(0.0, 0.0, 0.0) - ), - ( - Material { color: math::vec4(1.0, 0.0, 0.0, 1.0), bind_group: None, uniform_buf: None }, - mesh_handle, - LocalToWorld::identity(), - Translation::new(0.0, 0.0, 0.0) - ), - ]); - - Application::run(universe, world); -} \ No newline at end of file