haw-gj13-game/src/game.rs

19 lines
380 B
Rust
Raw Normal View History

use bevy::prelude::*;
use bevy_rapier2d::prelude::*;
use player::player_plugin;
2024-11-23 18:33:27 +01:00
use scene::{scene_plugin, PlayerCoords};
2024-11-23 01:40:50 +01:00
use crate::AppState;
mod player;
2024-11-22 22:39:00 +01:00
mod scene;
2024-11-22 22:26:20 +01:00
mod set;
2024-11-23 18:10:33 +01:00
pub const WORLD_DEPTH: f32 = 0.5;
2024-11-23 21:02:15 +01:00
pub const PLAYER_DEPTH: f32 = 0.4;
2024-11-23 18:42:52 +01:00
pub const PLAYER_SIZE_FRACTION: f32 = 0.8;
2024-11-23 18:10:33 +01:00
2024-11-23 01:40:50 +01:00
pub fn game_plugin(app: &mut App) {
2024-11-23 18:33:27 +01:00
app.add_plugins((player_plugin, scene_plugin));
}