clippy
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ pub fn camera_movement(
|
|||||||
|
|
||||||
pub fn spawn_panning_camera(mut commands: Commands) {
|
pub fn spawn_panning_camera(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2d::default(),
|
Camera2d,
|
||||||
Transform::from_xyz(0., 0., 10.),
|
Transform::from_xyz(0., 0., 10.),
|
||||||
PanningCamera { pan_speed: 5.0 },
|
PanningCamera { pan_speed: 5.0 },
|
||||||
));
|
));
|
||||||
|
|||||||
+1
-1
@@ -82,7 +82,7 @@ pub fn update_tile_visibility(
|
|||||||
println!("update_tile_visibility, cwss.state = {:?}", cwss.state);
|
println!("update_tile_visibility, cwss.state = {:?}", cwss.state);
|
||||||
cwss.state = tiles::WorldSpriteState::WaitingForRender;
|
cwss.state = tiles::WorldSpriteState::WaitingForRender;
|
||||||
println!("update_tile_visibility, cwss.state = {:?}", cwss.state);
|
println!("update_tile_visibility, cwss.state = {:?}", cwss.state);
|
||||||
println!("");
|
println!();
|
||||||
// let z_index = (z_index.0 as i32 + 150) as usize;
|
// let z_index = (z_index.0 as i32 + 150) as usize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
use crate::constants::{ITILE_SIZE, TILE_SIZE};
|
use crate::constants::{ITILE_SIZE, TILE_SIZE};
|
||||||
use crate::tile::{self, FixtureTile, FloorTile, NeedsOccluded, TileMap};
|
use crate::tile::{self, FixtureTile, FloorTile, NeedsOccluded, TileMap};
|
||||||
use crate::tiles::{self, FixtureTilePrefab, FloorTilePrefab, Textures};
|
use crate::tiles::{self, FixtureTilePrefab, FloorTilePrefab};
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use bevy_platform::collections::hash_map::HashMap;
|
use bevy_platform::collections::hash_map::HashMap;
|
||||||
use noise::{NoiseFn, Perlin};
|
use noise::{NoiseFn, Perlin};
|
||||||
|
|||||||
+2
-3
@@ -1,8 +1,7 @@
|
|||||||
use std::process::exit;
|
|
||||||
|
|
||||||
use crate::tile::{FixtureTile, FloorTile, NeedsOccluded, TileState};
|
use crate::tile::{FixtureTile, FloorTile, NeedsOccluded, TileState};
|
||||||
use crate::{constants::*, game};
|
use crate::{constants::*, game};
|
||||||
use bevy::{prelude::*, transform};
|
use bevy::prelude::*;
|
||||||
use bevy_platform::collections::hash_map::HashMap;
|
use bevy_platform::collections::hash_map::HashMap;
|
||||||
|
|
||||||
#[derive(Resource)]
|
#[derive(Resource)]
|
||||||
@@ -34,7 +33,7 @@ pub fn initialize_textures(mut commands: Commands, asset_server: Res<AssetServer
|
|||||||
let mut texture_ids: HashMap<u32, String> = HashMap::new();
|
let mut texture_ids: HashMap<u32, String> = HashMap::new();
|
||||||
texture_ids.insert(u32::MAX, DEFAULT_TEXTURE.to_string());
|
texture_ids.insert(u32::MAX, DEFAULT_TEXTURE.to_string());
|
||||||
|
|
||||||
texture_ids.insert(FLOOR_ID_OFFSET + 0, SKY_PATH.to_string());
|
texture_ids.insert(FLOOR_ID_OFFSET, SKY_PATH.to_string());
|
||||||
textures.insert(SKY_PATH.to_string(), asset_server.load(SKY_PATH));
|
textures.insert(SKY_PATH.to_string(), asset_server.load(SKY_PATH));
|
||||||
texture_ids.insert(FLOOR_ID_OFFSET + 1, GRASS_FLOOR_PATH.to_string());
|
texture_ids.insert(FLOOR_ID_OFFSET + 1, GRASS_FLOOR_PATH.to_string());
|
||||||
textures.insert(
|
textures.insert(
|
||||||
|
|||||||
Reference in New Issue
Block a user