gdritter repos wenaglia / 4574520
Remove some old bad code Getty Ritter 4 years ago
4 changed file(s) with 2 addition(s) and 11 deletion(s). Collapse all Expand all
1010 pub const WINDOW_WIDTH: f32 = BOARD_WIDTH as f32 * (TILE_SIZE * SCALE);
1111 pub const WINDOW_HEIGHT: f32 = BOARD_HEIGHT as f32 * (TILE_SIZE * SCALE);
1212 pub const SCALE: f32 = 3.0;
13 pub const TILED_TRUE: tiled::PropertyValue = tiled::PropertyValue::BoolValue(true);
13 pub const TILED_FALSE: tiled::PropertyValue = tiled::PropertyValue::BoolValue(false);
1 // use sdl2::keyboard as sdl;
2
31 /// The shared values that the game state needs, mostly contained in
42 /// the specs ECS world
53 pub struct MyGame {
64 pub world: specs::World,
7 // pub keys: std::collections::HashSet<sdl::Keycode>,
85 }
5757 let u = ((n - 1) % 32) as u8;
5858 let v = ((n - u as u32 - 1) / 32) as u8;
5959 let is_blocking = tilesets[0].tiles[(n-1) as usize].properties["pass"]
60 == tiled::PropertyValue::BoolValue(false);
60 == consts::TILED_FALSE;
6161 let mut e = w
6262 .create_entity_unchecked()
6363 .with(Position { x, y })
1 pub type BPhase = ncollide2d::broad_phase::DBVTBroadPhase<
2 f32,
3 ncollide2d::bounding_volume::AABB<f32>,
4 specs::Entity,
5 >;
6 pub type NPhase = ncollide2d::narrow_phase::NarrowPhase<f32, ()>;
71 pub type World = ncollide2d::world::CollisionWorld<f32, specs::Entity>;