This repository has been archived on 2021-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-03 20:25:06 -04:00

25 lines
597 B
Rust

use raylib::{math::Rectangle, texture::Texture2D};
use crate::utilities::world_paint_texture::WorldPaintTexture;
pub mod loader;
#[derive(Debug, Deserialize)]
pub struct LevelZones {
pub appear: Vec<Rectangle>,
pub disappear: Vec<Rectangle>,
pub kill: Vec<Rectangle>,
pub win: Rectangle,
}
#[derive(Debug)]
pub struct Level {
pub name: String,
pub background_tex: WorldPaintTexture,
pub platform_tex: Texture2D,
pub appearing_platform_tex: Texture2D,
pub disappearing_platform_tex: Texture2D,
pub colliders: Vec<Rectangle>,
pub zones: LevelZones,
}