diff --git a/src/assets/level1.tmx b/src/assets/level1.tmx index 9854972..dbd0e3c 100644 --- a/src/assets/level1.tmx +++ b/src/assets/level1.tmx @@ -1,99 +1,695 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + + + + - + + + + + + + - + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + - + + + + + + + + + + - + + + + - + -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,335,335,328, -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,328,328, -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,37,37,37,336,337,337,337,337,337,337,337,337,337,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,0,328, -37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,37,336,337,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,336,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,335,328,328,325,326,328,328,328,328,328,328,328, -337,337,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,329,327,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,329,327,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,329,327,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,330,331,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -328,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,335,335,328,328,328,328,328,328, -0,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335 +199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,199,199,199,206,206,206,206,206,206,206,206,206,206,206,199,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,4,4,4,4, +199,199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,206,206,206,206,206,12,13,13,13,13,13,13,13,13,13,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,4,4,4, +199,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,206,206,206,206,12,13,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,206,206,206,12,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,11,4,4,1,2,4,4,4,4,4,4,4,4,4, +13,13,13,13,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,3,4,4,4,4,4,4,4,4,4, +4,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,3,4,4,4,4,4,4,4,4,4, +4,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,96,186,186,78,60,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,113,95,184,184,77,59,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,203,167,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,203,182,222,222,168,0,0,0,0,0,0, -0,0,0,0,0,0,0,114,96,186,186,186,186,186,186,186,186,307,186,76,58,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,113,95,184,184,184,184,184,184,184,184,271,184,75,57,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,182,222,222,166,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,197,179,72,72,72,72,161,143,0,0,0,203,167,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,197,179,196,178,70,70,70,70,160,142,161,143,0,203,167,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,112,94,186,196,178,195,177,0,0,0,0,159,141,160,142,186,76,58,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,111,93,184,195,177,0,0,0,0,0,0,0,0,159,141,184,75,57,0,0,0,0,0,0,0,0,0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,0,0,35,37,0,0,15,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,37,0,0,15,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,37,0,0,15,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,37,0,0,15,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,90,16,16,55,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,0,0,118,119,107,107,107,107,120,121,0,0,0,35,37,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,118,119,136,137,143,143,143,143,138,139,120,121,0,35,37,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,58,59,18,136,137,154,155,0,0,0,0,156,157,138,139,18,60,61,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,76,77,54,154,155,0,0,0,0,0,0,0,0,156,157,54,78,79,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 diff --git a/src/assets/mod.rs b/src/assets/mod.rs index 7319172..140fc1b 100644 --- a/src/assets/mod.rs +++ b/src/assets/mod.rs @@ -8,11 +8,7 @@ pub struct Plugin; impl bevy::prelude::Plugin for Plugin { fn build(&self, app: &mut bevy::prelude::App) { - let p = if cfg!(windows) { - "src\\" - } else { - "src/" - }; + let p = if cfg!(windows) { "src\\" } else { "src/" }; embedded_asset!(app, p, "level1.tmx"); @@ -20,26 +16,924 @@ impl bevy::prelude::Plugin for Plugin { embedded_asset!(app, p, "kenney_racing-pack/PNG/Cars/car_blue_1.png"); embedded_asset!(app, p, "kenney_racing-pack/PNG/Cars/car_yellow_3.png"); embedded_asset!(app, p, "kenney_racing-pack/PNG/Cars/car_green_4.png"); + + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt01.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt02.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt03.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt04.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt05.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt06.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt07.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt08.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt09.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt10.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt11.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt12.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt13.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt14.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt15.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt16.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt17.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt18.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt19.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt20.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt21.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt22.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt23.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt24.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt25.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt26.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt27.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt28.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt29.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt30.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt31.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt32.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt33.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt34.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt35.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt36.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt37.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt38.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt39.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt40.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt41.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt42.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt43.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt44.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt45.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt46.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt47.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt48.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt49.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt50.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt51.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt52.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt53.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt54.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt55.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt56.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt57.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt58.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt59.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt60.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt61.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt62.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt63.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt64.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt65.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt66.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt67.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt68.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt69.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt70.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt71.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt72.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt73.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt74.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt75.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt76.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt77.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt78.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt79.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt80.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt81.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt82.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt83.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt84.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt85.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt86.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt87.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt88.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt89.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt90.png" + ); + + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt01.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt02.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt03.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt04.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt05.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt06.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt07.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt08.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt09.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt10.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt11.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt12.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt13.png"); + embedded_asset!(app, p, "kenney_racing-pack/PNG/Tiles/Dirt/land_dirt14.png"); + + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt01.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt02.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt03.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt04.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt05.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt06.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt07.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt08.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt09.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt10.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt11.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt12.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt13.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt14.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt15.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt16.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt17.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt18.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt19.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt20.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt21.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt22.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt23.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt24.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt25.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt26.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt27.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt28.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt29.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt30.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt31.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt32.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt33.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt34.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt35.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt36.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt37.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt38.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt39.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt40.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt41.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt42.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt43.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt44.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt45.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt46.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt47.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt48.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt49.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt50.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt51.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt52.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt53.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt54.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt55.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt56.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt57.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt58.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt59.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt60.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt61.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt62.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt63.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt64.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt65.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt66.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt67.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt68.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt69.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt70.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt71.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt72.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt73.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt74.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt75.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt76.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt77.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt78.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt79.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt80.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt81.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt82.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt83.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt84.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt85.png" + ); + embedded_asset!( + app, + p, + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt86.png" + ); embedded_asset!( app, p, - "kenney_racing-pack/Spritesheets/spritesheet_tiles.png" + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt87.png" ); embedded_asset!( app, p, - "kenney_racing-pack/Spritesheets/spritesheet_tiles.png" + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt88.png" ); embedded_asset!( app, p, - "kenney_racing-pack/Spritesheets/spritesheet_tiles.png" + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt89.png" ); embedded_asset!( app, p, - "kenney_racing-pack/Spritesheets/spritesheet_tiles.png" + "kenney_racing-pack/PNG/Tiles/Dirt road/road_dirt90.png" ); + embedded_asset!( app, p, diff --git a/src/helpers/tiled.rs b/src/helpers/tiled.rs index bb72f95..1291afe 100644 --- a/src/helpers/tiled.rs +++ b/src/helpers/tiled.rs @@ -133,7 +133,7 @@ impl AssetLoader for TiledLoader { let tile_path = tmx_dir.join(&img.source); let asset_path = AssetPath::from(tile_path.to_str().expect("tile_path is not UTF-8").to_string()); //let asset_path = AssetPath::from(tile_path); - log::info!("Loading tile image from {asset_path:?} as image ({tileset_index}, {tile_id})"); + log::debug!("Loading tile image from {asset_path:?} as image ({tileset_index}, {tile_id})"); let texture: Handle = load_context.load(asset_path.clone()); tile_image_offsets .insert((tileset_index, tile_id), tile_images.len() as u32); @@ -149,7 +149,7 @@ impl AssetLoader for TiledLoader { let tmx_dir = std::path::PathBuf::from("embedded://"); let tile_path = tmx_dir.join(&img.source); let asset_path = AssetPath::from(tile_path.to_str().expect("tile_path is not UTF-8").to_string()); - log::info!("Loading tile image from {asset_path:?}"); + log::debug!("Loading tile image from {asset_path:?}"); let texture: Handle = load_context.load(asset_path.clone()); TilemapTexture::Single(texture.clone()) diff --git a/tiled/asphalt_road.tsx b/tiled/asphalt_road.tsx new file mode 100644 index 0000000..ef787ec --- /dev/null +++ b/tiled/asphalt_road.tsx @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tiled/dirt.tsx b/tiled/dirt.tsx new file mode 100644 index 0000000..9283b5e --- /dev/null +++ b/tiled/dirt.tsx @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tiled/dirt_road.tsx b/tiled/dirt_road.tsx new file mode 100644 index 0000000..6398e22 --- /dev/null +++ b/tiled/dirt_road.tsx @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tiled/grass.tsx b/tiled/grass.tsx new file mode 100644 index 0000000..bac8593 --- /dev/null +++ b/tiled/grass.tsx @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tiled/level1.tmx b/tiled/level1.tmx index fe15cef..0d1e02a 100644 --- a/tiled/level1.tmx +++ b/tiled/level1.tmx @@ -1,99 +1,66 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,335,335,328, -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,328,328, -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,37,37,37,336,337,337,337,337,337,337,337,337,337,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,0,328, -37,37,37,37,37,327,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,37,336,337,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -37,37,336,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,335,328,328,325,326,328,328,328,328,328,328,328, -337,337,331,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,329,327,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,329,327,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,329,327,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,330,331,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -335,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328, -328,335,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,335,335,328,328,328,328,328,328, -0,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335,335 +199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,199,199,199,206,206,206,206,206,206,206,206,206,206,206,199,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,4,4,4,4, +199,199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,206,206,206,206,206,206,206,206,206,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,199,206,206,206,206,206,12,13,13,13,13,13,13,13,13,13,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,4,4,4, +199,206,206,206,206,206,206,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,206,206,206,206,12,13,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +199,206,206,206,12,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,11,4,4,1,2,4,4,4,4,4,4,4,4,4, +13,13,13,13,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,3,4,4,4,4,4,4,4,4,4, +4,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,3,4,4,4,4,4,4,4,4,4, +4,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,3,4,4,4,4,4,4,4,4,4, +0,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,7,4,4,4,4,4,4,4,4,4, +0,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, +0,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4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,0,0,0,0,203,167,0,0,203,167,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,203,182,222,222,168,0,0,0,0,0,0, -0,0,0,0,0,0,0,114,96,186,186,186,186,186,186,186,186,307,186,76,58,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,113,95,184,184,184,184,184,184,184,184,271,184,75,57,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,167,0,0,240,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,182,222,222,166,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,0,0,197,179,72,72,72,72,161,143,0,0,0,203,167,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,203,167,0,197,179,196,178,70,70,70,70,160,142,161,143,0,203,167,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,112,94,186,196,178,195,177,0,0,0,0,159,141,160,142,186,76,58,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,111,93,184,195,177,0,0,0,0,0,0,0,0,159,141,184,75,57,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,0,0,0,0,0,0,0,0,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,0,0,0,0,35,37,0,0,15,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,90,16,16,55,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,0,0,118,119,107,107,107,107,120,121,0,0,0,35,37,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,35,37,0,118,119,136,137,143,143,143,143,138,139,120,121,0,35,37,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,58,59,18,136,137,154,155,0,0,0,0,156,157,138,139,18,60,61,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,76,77,54,154,155,0,0,0,0,0,0,0,0,156,157,54,78,79,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 diff --git a/tiled/racer.tiled-session b/tiled/racer.tiled-session index e9e0044..5230a59 100644 --- a/tiled/racer.tiled-session +++ b/tiled/racer.tiled-session @@ -1,88 +1,46 @@ { - "Map/SizeTest": { - "height": 4300, - "width": 2 - }, "activeFile": "level1.tmx", "expandedProjectPaths": [ - ".", - "kenney_racing-pack/Spritesheets", - "kenney_racing-pack" ], "file.lastUsedOpenFilter": "All Files (*)", "fileStates": { "": { - "scaleInEditor": 1 + "scaleInDock": 0.8 }, - ":/automap-tiles.tsx": { - "scaleInDock": 1 + "asphalt_road.tsx": { + "dynamicWrapping": true, + "scaleInDock": 0.8 }, - "level1-full.tmx": { - "scale": 0.21102864583333333, - "selectedLayer": 0, - "viewCenter": { - "x": 1888.3692231751713, - "y": 708.4346270130193 - } + "dirt.tsx": { + "dynamicWrapping": true, + "scaleInDock": 0.8, + "scaleInEditor": 1 }, - "level1-full.tmx#Grass": { - "scaleInDock": 0.75 + "dirt_road.tsx": { + "dynamicWrapping": true, + "scaleInDock": 0.8, + "scaleInEditor": 1 }, - "level1-full.tmx#spritesheet_tiles": { - "scaleInDock": 1 + "grass.tsx": { + "scaleInDock": 0.8, + "scaleInEditor": 1 }, "level1.tmx": { - "scale": 0.21102864583333333, - "selectedLayer": 0, + "scale": 0.33, + "selectedLayer": -1, "viewCenter": { - "x": 1421.607947183316, - "y": 708.4346270130193 + "x": 2133.333333333333, + "y": 1850 } - }, - "level1.tmx#Grass": { - "dynamicWrapping": true, - "scaleInDock": 0.75 - }, - "level1.tmx#spritesheet_tiles": { - "scaleInDock": 1 - }, - "spritesheet_tiles-half.tsx": { - "scaleInDock": 1, - "scaleInEditor": 1 - }, - "spritesheet_tiles.tsx": { - "dynamicWrapping": false, - "scaleInDock": 0.75, - "scaleInEditor": 1 } }, - "last.exportedFilePath": "/home/drt/Projects/daniel-thompson/bevy-racer/assets", - "last.externalTilesetPath": "/home/drt/Projects/daniel-thompson/bevy-racer/assets", - "last.imagePath": "/home/drt/Projects/daniel-thompson/bevy-racer/assets/kenney_racing-pack/PNG/Tiles/Grass", - "map.height": 15, - "map.lastUsedExportFilter": "Tiled map files (*.tmx *.xml)", - "map.lastUsedFormat": "tmx", - "map.tileHeight": 128, - "map.tileWidth": 128, + "last.exportedFilePath": "/home/drt/Projects/daniel-thompson/tdr2024/src/assets", + "map.lastUsedExportFilter": "All Files (*)", "openFiles": [ - "spritesheet_tiles.tsx", "level1.tmx" ], "project": "racer.tiled-project", "recentFiles": [ - "spritesheet_tiles.tsx", - "level1.tmx", - "level1-full.tmx", - "spritesheet_tiles-half.tsx" - ], - "tileset.embedInMap": true, - "tileset.lastUsedFilter": "Tiled tileset files (*.tsx *.xml)", - "tileset.lastUsedFormat": "tsx", - "tileset.tileSize": { - "height": 128, - "width": 128 - }, - "tileset.transparentColor": "#000000", - "tileset.type": 1, - "tileset.useTransparentColor": true + "level1.tmx" + ] } diff --git a/tiled/spritesheet_tiles.tsx b/tiled/spritesheet_tiles.tsx deleted file mode 100644 index 17bb353..0000000 --- a/tiled/spritesheet_tiles.tsx +++ /dev/null @@ -1,4 +0,0 @@ - - - -