Skip to content

Commit

Permalink
Level 2
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-thompson committed Jan 13, 2024
1 parent 5515170 commit b1ae4b5
Show file tree
Hide file tree
Showing 5 changed files with 755 additions and 39 deletions.
361 changes: 361 additions & 0 deletions src/assets/level2.tmx
Original file line number Diff line number Diff line change
@@ -0,0 +1,361 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="right-down" width="22" height="16" tilewidth="128" tileheight="128" infinite="0" nextlayerid="3" nextobjectid="1">
<tileset firstgid="1" name="Asphalt road" tilewidth="128" tileheight="128" tilecount="90" columns="0">
<grid orientation="orthogonal" width="1" height="1"/>
<tile id="0">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt01.png"/>
</tile>
<tile id="1">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt02.png"/>
</tile>
<tile id="2">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt03.png"/>
</tile>
<tile id="3">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt04.png"/>
</tile>
<tile id="4">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt05.png"/>
</tile>
<tile id="5">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt06.png"/>
</tile>
<tile id="6">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt07.png"/>
</tile>
<tile id="7">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt08.png"/>
</tile>
<tile id="8">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt09.png"/>
</tile>
<tile id="9">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt10.png"/>
</tile>
<tile id="10">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt11.png"/>
</tile>
<tile id="11">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt12.png"/>
</tile>
<tile id="12">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt13.png"/>
</tile>
<tile id="13">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt14.png"/>
</tile>
<tile id="14">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt15.png"/>
</tile>
<tile id="15">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt16.png"/>
</tile>
<tile id="16">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt17.png"/>
</tile>
<tile id="17">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt18.png"/>
</tile>
<tile id="18">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt19.png"/>
</tile>
<tile id="19">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt20.png"/>
</tile>
<tile id="20">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt21.png"/>
</tile>
<tile id="21">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt22.png"/>
</tile>
<tile id="22">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt23.png"/>
</tile>
<tile id="23">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt24.png"/>
</tile>
<tile id="24">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt25.png"/>
</tile>
<tile id="25">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt26.png"/>
</tile>
<tile id="26">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt27.png"/>
</tile>
<tile id="27">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt28.png"/>
</tile>
<tile id="28">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt29.png"/>
</tile>
<tile id="29">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt30.png"/>
</tile>
<tile id="30">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt31.png"/>
</tile>
<tile id="31">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt32.png"/>
</tile>
<tile id="32">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt33.png"/>
</tile>
<tile id="33">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt34.png"/>
</tile>
<tile id="34">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt35.png"/>
</tile>
<tile id="35">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt36.png"/>
</tile>
<tile id="36">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt37.png"/>
</tile>
<tile id="37">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt38.png"/>
</tile>
<tile id="38">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt39.png"/>
</tile>
<tile id="39">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt40.png"/>
</tile>
<tile id="40">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt41.png"/>
</tile>
<tile id="41">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt42.png"/>
</tile>
<tile id="42">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt43.png"/>
</tile>
<tile id="43">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt44.png"/>
</tile>
<tile id="44">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt45.png"/>
</tile>
<tile id="45">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt46.png"/>
</tile>
<tile id="46">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt47.png"/>
</tile>
<tile id="47">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt48.png"/>
</tile>
<tile id="48">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt49.png"/>
</tile>
<tile id="49">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt50.png"/>
</tile>
<tile id="50">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt51.png"/>
</tile>
<tile id="51">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt52.png"/>
</tile>
<tile id="52">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt53.png"/>
</tile>
<tile id="53">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt54.png"/>
</tile>
<tile id="54">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt55.png"/>
</tile>
<tile id="55">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt56.png"/>
</tile>
<tile id="56">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt57.png"/>
</tile>
<tile id="57">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt58.png"/>
</tile>
<tile id="58">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt59.png"/>
</tile>
<tile id="59">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt60.png"/>
</tile>
<tile id="60">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt61.png"/>
</tile>
<tile id="61">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt62.png"/>
</tile>
<tile id="62">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt63.png"/>
</tile>
<tile id="63">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt64.png"/>
</tile>
<tile id="64">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt65.png"/>
</tile>
<tile id="65">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt66.png"/>
</tile>
<tile id="66">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt67.png"/>
</tile>
<tile id="67">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt68.png"/>
</tile>
<tile id="68">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt69.png"/>
</tile>
<tile id="69">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt70.png"/>
</tile>
<tile id="70">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt71.png"/>
</tile>
<tile id="71">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt72.png"/>
</tile>
<tile id="72">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt73.png"/>
</tile>
<tile id="73">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt74.png"/>
</tile>
<tile id="74">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt75.png"/>
</tile>
<tile id="75">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt76.png"/>
</tile>
<tile id="76">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt77.png"/>
</tile>
<tile id="77">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt78.png"/>
</tile>
<tile id="78">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt79.png"/>
</tile>
<tile id="79">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt80.png"/>
</tile>
<tile id="80">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt81.png"/>
</tile>
<tile id="81">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt82.png"/>
</tile>
<tile id="82">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt83.png"/>
</tile>
<tile id="83">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt84.png"/>
</tile>
<tile id="84">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt85.png"/>
</tile>
<tile id="85">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt86.png"/>
</tile>
<tile id="86">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt87.png"/>
</tile>
<tile id="87">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt88.png"/>
</tile>
<tile id="88">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt89.png"/>
</tile>
<tile id="89">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Asphalt road/road_asphalt90.png"/>
</tile>
</tileset>
<tileset firstgid="91" name="Grass" tilewidth="128" tileheight="128" tilecount="14" columns="0">
<grid orientation="orthogonal" width="1" height="1"/>
<tile id="0">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass01.png"/>
</tile>
<tile id="1">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass02.png"/>
</tile>
<tile id="2">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass03.png"/>
</tile>
<tile id="3">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass04.png"/>
</tile>
<tile id="4">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass05.png"/>
</tile>
<tile id="5">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass06.png"/>
</tile>
<tile id="6">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass07.png"/>
</tile>
<tile id="7">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass08.png"/>
</tile>
<tile id="8">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass09.png"/>
</tile>
<tile id="9">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass10.png"/>
</tile>
<tile id="10">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass11.png"/>
</tile>
<tile id="11">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass12.png"/>
</tile>
<tile id="12">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass13.png"/>
</tile>
<tile id="13">
<image width="128" height="128" source="kenney_racing-pack/PNG/Tiles/Grass/land_grass14.png"/>
</tile>
</tileset>
<layer id="2" name="Background" width="22" height="16">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,
0,0,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,
0,0,101,101,101,101,0,0,0,0,0,0,0,0,0,0,0,0,101,101,101,101,
0,0,101,101,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,101,101,101,
0,0,101,101,0,0,102,103,103,103,103,103,103,103,103,103,103,104,0,0,101,101,
0,0,101,101,0,0,93,101,101,101,101,101,101,101,101,101,101,95,0,0,101,101,
0,0,101,101,0,0,93,101,101,101,101,101,101,101,101,101,101,95,0,0,101,101,
0,0,101,101,0,0,93,101,101,101,101,101,101,101,101,101,101,95,0,0,101,101,
0,0,101,101,0,0,93,101,101,101,101,101,101,101,101,101,101,95,0,0,101,101,
0,0,101,101,0,0,98,99,99,99,99,99,99,99,99,99,99,100,0,0,101,101,
0,0,101,101,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,101,101,101,
0,0,101,101,101,101,0,0,0,0,0,0,0,0,0,0,0,0,101,101,101,101,
0,0,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,
0,0,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101
</data>
</layer>
<layer id="1" name="Track" width="22" height="16">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,8,9,4,4,4,4,4,4,4,4,4,4,4,4,10,11,0,0,
0,0,0,0,26,27,40,40,40,40,40,40,40,40,40,40,40,40,28,29,0,0,
0,0,0,0,21,23,0,0,0,0,0,0,0,0,0,0,0,0,21,23,0,0,
0,0,0,0,21,23,0,0,0,0,0,0,0,0,0,0,0,0,21,23,0,0,
0,0,0,0,21,23,0,0,0,0,0,0,0,0,0,0,0,0,21,23,0,0,
0,0,0,0,21,23,0,0,0,0,0,0,0,0,0,0,0,0,21,23,0,0,
0,0,0,0,21,23,0,0,0,0,0,0,0,0,0,0,0,0,21,23,0,0,
0,0,0,0,21,23,0,0,0,0,0,0,0,0,0,0,0,0,21,23,0,0,
0,0,0,0,44,45,4,4,4,4,4,4,4,4,4,4,4,4,46,47,0,0,
0,0,0,0,62,63,40,40,40,40,40,40,40,40,40,40,40,40,64,65,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
</map>
1 change: 1 addition & 0 deletions src/assets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ impl bevy::prelude::Plugin for Plugin {
let p = if cfg!(windows) { "src\\" } else { "src/" };

embedded_asset!(app, p, "level1.tmx");
embedded_asset!(app, p, "level2.tmx");

embedded_asset!(app, p, "kenney_racing-pack/PNG/Cars/car_red_5.png");
embedded_asset!(app, p, "kenney_racing-pack/PNG/Cars/car_blue_1.png");
Expand Down
Loading

0 comments on commit b1ae4b5

Please sign in to comment.