Fix WASM build

This commit is contained in:
Pascal Engélibert 2022-08-24 11:31:17 +02:00
commit ce37ddd0bd
7 changed files with 38 additions and 203 deletions

View file

@ -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;