Fix WASM build
This commit is contained in:
parent
972cd26876
commit
ce37ddd0bd
7 changed files with 38 additions and 203 deletions
|
|
@ -2,7 +2,10 @@ use bevy::{prelude::*, sprite::Mesh2dHandle};
|
|||
use rand::Rng;
|
||||
use rand_distr::{Distribution, UnitCircle};
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub const POOL_COUNT: usize = 100;
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub const POOL_COUNT: usize = 50;
|
||||
|
||||
pub const MIN_VELOCITY: f32 = 10.0;
|
||||
pub const MAX_VELOCITY: f32 = 100.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue