move /prototypes/life -> life

main
Elijah Voigt 1 month ago
parent e0194b53e2
commit 84dd94ed3a

6060
life/Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,10 @@
[package]
name = "prototypes"
version = "0.1.0"
edition = "2024"
[dependencies]
bevy = "0.18.1"
[dependencies.engine]
path = "../engine"

Before

Width:  |  Height:  |  Size: 257 B

After

Width:  |  Height:  |  Size: 257 B

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 289 B

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 183 B

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 451 B

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 304 B

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 304 B

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 430 B

Before

Width:  |  Height:  |  Size: 424 B

After

Width:  |  Height:  |  Size: 424 B

@ -9,19 +9,9 @@ const TILE: &str = "tileGrey_01.png";
const FRAME_DURATION: f32 = 0.5; const FRAME_DURATION: f32 = 0.5;
fn main() { fn main() {
let file_path = {
#[cfg(not(target_arch = "wasm32"))]
{
"assets/life".into()
}
#[cfg(target_arch = "wasm32")]
{
"assets".into()
}
};
App::new() App::new()
.add_plugins(DefaultPlugins.set(AssetPlugin { .add_plugins(DefaultPlugins.set(AssetPlugin {
file_path, file_path: "assets".into(),
..default() ..default()
})) }))
.init_resource::<Coordinates>() .init_resource::<Coordinates>()

@ -12,5 +12,6 @@ if [[ "${TARGET}" == prototypes/* ]]; then
else else
cargo init "${TARGET}" cargo init "${TARGET}"
cp .templates/deps.toml >> "${TARGET}/Cargo.toml" cp .templates/deps.toml >> "${TARGET}/Cargo.toml"
cp .templates/main.rs >> "${TARGET}/src/"
echo "created: ${TARGET}/" echo "created: ${TARGET}/"
fi fi

Loading…
Cancel
Save