From 5a3a9a55eb3cdd816a97a9e6452ed1eed07b94cf Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 17 Dec 2018 04:45:02 +0100 Subject: Load tilesets from assets --- src/game.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.rs') diff --git a/src/game.rs b/src/game.rs index 335e9da..a913596 100644 --- a/src/game.rs +++ b/src/game.rs @@ -25,6 +25,9 @@ pub fn new() -> State { Err(e) => panic!("Failed to parse demo map: {}", e.description()), }; + // allow only orthogonal maps + assert_eq!(demo_map.orientation, tiled::Orientation::Orthogonal); + return State { running: true, map: demo_map -- cgit v1.2.1