bevy 0.16 migration
This commit is contained in:
Generated
+876
-623
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -4,10 +4,11 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
bevy = "0.15.3"
|
||||
bevy = "0.16.0"
|
||||
noise = "0.9.0"
|
||||
rand = "0.9.0"
|
||||
rand = "0.9.1"
|
||||
image = "0.25.6"
|
||||
bevy_platform = "0.16.0"
|
||||
|
||||
# Enable max optimizations for dependencies, but not for our code:
|
||||
[profile.dev.package."*"]
|
||||
|
||||
@@ -10,8 +10,6 @@ mod tile;
|
||||
mod tilemap;
|
||||
mod tiles;
|
||||
|
||||
use bevy::diagnostic::FrameTimeDiagnosticsPlugin;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.insert_resource(game::ZIndex(0.0))
|
||||
@@ -30,7 +28,6 @@ fn main() {
|
||||
})
|
||||
.set(ImagePlugin::default_nearest()),
|
||||
)
|
||||
.add_plugins(FrameTimeDiagnosticsPlugin::default())
|
||||
.insert_resource(ClearColor(Color::srgb(0.0, 0.0, 0.0)))
|
||||
.add_plugins(tilemap::TilemapPlugin)
|
||||
.add_plugins(citizen::PathfindingPlugin)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
use crate::{game, tiles};
|
||||
use bevy::prelude::*;
|
||||
use std::collections::HashMap;
|
||||
use bevy_platform::collections::hash_map::HashMap;
|
||||
|
||||
#[derive(Component, Clone)]
|
||||
pub struct FloorTile {
|
||||
|
||||
+1
-1
@@ -2,8 +2,8 @@ use crate::constants::{ITILE_SIZE, TILE_SIZE};
|
||||
use crate::tile::{self, FixtureTile, FloorTile, NeedsOccluded, TileMap};
|
||||
use crate::tiles::{self, FixtureTilePrefab, FloorTilePrefab, Textures};
|
||||
use bevy::prelude::*;
|
||||
use bevy_platform::collections::hash_map::HashMap;
|
||||
use noise::{NoiseFn, Perlin};
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub const CHUNK_SIZE: i32 = 8;
|
||||
|
||||
|
||||
+1
-1
@@ -2,8 +2,8 @@ use std::process::exit;
|
||||
|
||||
use crate::tile::{FixtureTile, FloorTile, NeedsOccluded, TileState};
|
||||
use crate::{constants::*, game};
|
||||
use bevy::utils::HashMap;
|
||||
use bevy::{prelude::*, transform};
|
||||
use bevy_platform::collections::hash_map::HashMap;
|
||||
|
||||
#[derive(Resource)]
|
||||
pub struct Textures {
|
||||
|
||||
Reference in New Issue
Block a user