use bevy::{input::mouse::MouseMotion, pbr::wireframe::WireframeConfig, prelude::*}; use mesher::{Block, BlockType}; use vector_grid::VectorGrid; mod mesher; const A: Block = Block { block_type: BlockType::Air }; const D: Block = Block { block_type: BlockType::Dirt }; const G: Block = Block { block_type: BlockType::Grass }; const S: Block = Block { block_type: BlockType::Stone }; const LO: Block = Block { block_type: BlockType::Log }; const LE: Block = Block { block_type: BlockType::Leaves }; const W: Block = Block { block_type: BlockType::Water }; const WORLD: &str = " SSSSS D D D D D D ::::: S S : : S S : : S S : : SSSSS D D D D D D ::::: "; /*" ### ### SSSSSS DDDDDD :::::: ##### ##### # # SSSSSS SDDDDD :::::: | | | ##### ##### ### ### SSSSSS SSDDDD ::::=: ##### ##### # # SSS DDD :=: ### ### SSS DDD :=: SSS DDD ::: ";*/ fn move_camera( mut query_camera: Query<(&mut Transform, &Camera)>, time: Res