move objects out of bg tiles

"
Press any key to quit" 10 10))
This commit is contained in:
Travis Shears 2026-04-18 14:12:07 +02:00
parent 32ea10495e
commit bbbe7bfe8a
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
14 changed files with 400 additions and 89 deletions

View file

@ -31,7 +31,7 @@
10,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,10,11,11,11,10,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,10,
10,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,10,11,11,11,10,11,11,11,11,11,11,11,11,8,11,11,11,11,11,11,10,
10,11,11,11,11,11,11,11,11,11,11,11,8,11,11,11,11,11,11,11,8,11,11,11,11,11,11,11,11,8,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,
10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,
10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,2147483650,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,
10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,9,11,11,11,11,11,11,11,11,9,11,11,11,14,18,11,11,17,1,1,1,1,12,1,1,1,18,11,11,20,
10,11,11,11,11,11,11,11,11,11,11,11,9,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,10,11,11,11,10,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,10,
10,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,10,11,11,11,10,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,10,
@ -60,10 +60,10 @@
</data>
</layer>
<objectgroup id="2" name="spawns">
<object id="1" name="spawn1" x="569.372" y="697.644">
<object id="1" name="player_1" x="569.372" y="697.644">
<point/>
</object>
<object id="3" name="spawn2" x="679.319" y="590.314">
<object id="3" name="player_2" x="679.319" y="590.314">
<point/>
</object>
</objectgroup>

View file

@ -17,4 +17,14 @@
<object id="1" x="1.12811" y="2.08266" width="22.8225" height="20.6531"/>
</objectgroup>
</tile>
<tile id="3">
<objectgroup draworder="index" id="2">
<object id="1" x="2.0113" y="1.87259" width="20.9453" height="21.084"/>
</objectgroup>
</tile>
<tile id="5">
<objectgroup draworder="index" id="2">
<object id="1" x="0.0892797" y="4.0196" width="24.8292" height="17.8243"/>
</objectgroup>
</tile>
</tileset>

View file

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.12.1" orientation="orthogonal" renderorder="right-down" width="50" height="50" tilewidth="25" tileheight="25" infinite="0" nextlayerid="4" nextobjectid="18">
<tileset firstgid="1" source="walls.tsx"/>
<tileset firstgid="21" source="objects.tsx"/>
<layer id="1" name="bg" width="50" height="50">
<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,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,7,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,2147483650,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup id="2" name="spawns">
<object id="1" name="player_1" x="562.031" y="1164.44">
<point/>
</object>
<object id="2" name="player_2" x="687.512" y="1162.99">
<point/>
</object>
</objectgroup>
<objectgroup id="3" name="objects">
<object id="3" type="charging_station" x="550" y="1025" width="75" height="50">
<properties>
<property name="dir" value="n"/>
</properties>
</object>
<object id="4" name="wait_for_2_players" type="h_door" x="650" y="1000" width="50" height="25"/>
<object id="6" name="waiting_for_player2" type="info_pad" x="650" y="1025" width="25" height="25"/>
<object id="7" name="waiting_for_player2" type="info_pad" x="675" y="1025" width="25" height="25"/>
<object id="15" name="controls" type="info_pad" x="550" y="1150" width="25" height="25"/>
<object id="16" name="controls" type="info_pad" x="675" y="1150" width="25" height="25"/>
</objectgroup>
</map>

View file

@ -1,5 +1,5 @@
{
"activeFile": "level_001.tmx",
"activeFile": "tutorial.tmx",
"expandedProjectPaths": [
"/Users/she0001t/personal_projects/fennel_love2d_experiments/two_player_cleaning_game",
".",
@ -7,11 +7,14 @@
],
"fileStates": {
"level_001.tmx": {
"scale": 2.4998,
"selectedLayer": 0,
"expandedObjectLayers": [
2
],
"scale": 0.5497,
"selectedLayer": 1,
"viewCenter": {
"x": 149.0119209536763,
"y": 73.8059044723578
"x": 624.886301619065,
"y": 614.8808440967802
}
},
"map_tileset.tsx": {
@ -21,11 +24,22 @@
},
"objects.tsx": {
"scaleInDock": 1,
"scaleInEditor": 6.3771
"scaleInEditor": 2.8063
},
"tutorial.tmx": {
"expandedObjectLayers": [
2
],
"scale": 2.2046,
"selectedLayer": 1,
"viewCenter": {
"x": 636.1698267259367,
"y": 1051.8914995917626
}
},
"walls.tsx": {
"scaleInDock": 1.4397,
"scaleInEditor": 8.2977
"scaleInEditor": 5.9643
}
},
"last.exportedFilePath": "/Users/she0001t/personal_projects/fennel_love2d_experiments/two_player_cleaning_game/assets/tiled",
@ -39,13 +53,15 @@
"openFiles": [
"level_001.tmx",
"walls.tsx",
"objects.tsx"
"objects.tsx",
"tutorial.tmx"
],
"project": "untitled.tiled-project",
"recentFiles": [
"objects.tsx",
"walls.tsx",
"level_001.tmx",
"walls.tsx",
"objects.tsx",
"tutorial.tmx",
"map_tileset.tsx"
],
"tileset.lastUsedFormat": "tsx",

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.12.1" name="walls" tilewidth="25" tileheight="25" tilecount="20" columns="20">
<image source="../walls.png" width="500" height="25"/>
<tileset version="1.10" tiledversion="1.12.1" name="walls" tilewidth="25" tileheight="25" tilecount="20" columns="13">
<image source="../walls.png" width="325" height="25"/>
<tile id="0">
<objectgroup draworder="index" id="2">
<object id="1" x="0.141111" y="4.23334" width="24.9767" height="17.4978"/>
<object id="1" x="0.141111" y="4.02527" width="24.9767" height="17.7059"/>
</objectgroup>
</tile>
<tile id="1">
@ -14,57 +14,63 @@
</tile>
<tile id="2">
<objectgroup draworder="index" id="2">
<object id="1" x="-0.264752" y="4.10365" width="15.0247" height="17.8045"/>
<object id="2" x="10.0606" y="-0.0661879" width="4.83172" height="4.30221"/>
<object id="1" x="10.0692" y="4.10365" width="15.0247" height="17.8045"/>
<object id="2" x="10.13" y="20.5323" width="4.83172" height="4.30221"/>
</objectgroup>
</tile>
<tile id="3">
<objectgroup draworder="index" id="2">
<object id="1" x="-0.264752" y="4.03746" width="15.157" height="17.8707"/>
<object id="2" x="10.0606" y="20.1873" width="4.76553" height="4.96409"/>
<object id="1" x="9.99984" y="3.9681" width="15.157" height="17.8707"/>
</objectgroup>
</tile>
<tile id="4">
<objectgroup draworder="index" id="2">
<object id="1" x="10.1267" y="4.16984" width="14.7599" height="17.6722"/>
<object id="2" x="10.0606" y="18.3341" width="4.83172" height="6.5526"/>
<object id="2" x="10.13" y="0.0242897" width="4.83172" height="21.8801"/>
</objectgroup>
</tile>
<tile id="5">
<objectgroup draworder="index" id="2">
<object id="1" x="9.99437" y="4.10365" width="15.0247" height="17.8707"/>
<object id="1" x="9.99437" y="4.10365" width="4.89882" height="20.853"/>
</objectgroup>
</tile>
<tile id="6">
<objectgroup draworder="index" id="2">
<object id="1" x="1.77636e-15" y="4.10365" width="14.8261" height="18.0031"/>
<object id="1" x="10.1259" y="0.0116848" width="4.70022" height="24.9386"/>
</objectgroup>
</tile>
<tile id="7">
<objectgroup draworder="index" id="2">
<object id="1" x="10.1267" y="0.0661879" width="4.89791" height="21.7758"/>
<object id="1" x="0.0701754" y="4.0888" width="24.8722" height="17.7532"/>
<object id="2" x="10.0565" y="16.9227" width="4.85487" height="7.90651"/>
</objectgroup>
</tile>
<tile id="8">
<objectgroup draworder="index" id="2">
<object id="1" x="10.0606" y="4.10365" width="4.89791" height="20.8492"/>
<object id="1" x="0.0734307" y="4.10365" width="24.7335" height="17.9363"/>
<object id="2" x="10.1952" y="0" width="4.71616" height="7.21296"/>
</objectgroup>
</tile>
<tile id="9">
<objectgroup draworder="index" id="2">
<object id="1" x="9.99437" y="-0.0661879" width="4.96409" height="24.8867"/>
<object id="2" x="14.0098" y="4.09197" width="10.9581" height="17.963"/>
</objectgroup>
</tile>
<tile id="10">
<objectgroup draworder="index" id="2">
<object id="1" x="10.0565" y="1.77636e-15" width="4.85487" height="24.9679"/>
<object id="2" x="0.0693553" y="4.02261" width="24.9679" height="17.963"/>
</objectgroup>
</tile>
<tile id="11">
<objectgroup draworder="index" id="2">
<object id="1" x="-0.132376" y="4.03746" width="25.019" height="17.7384"/>
<object id="2" x="10.1929" y="13.9656" width="4.76553" height="11.1858"/>
<object id="1" x="2.98861" y="4.03746" width="21.898" height="17.7384"/>
</objectgroup>
</tile>
<tile id="12">
<objectgroup draworder="index" id="2">
<object id="1" x="0.0661879" y="4.23603" width="24.9528" height="17.3412"/>
<object id="2" x="9.99437" y="0.0661879" width="4.89791" height="10.1267"/>
<object id="1" x="9.984" y="3.88925" width="11.9834" height="18.1041"/>
<object id="2" x="9.99437" y="0.0661879" width="4.89791" height="24.83"/>
</objectgroup>
</tile>
<tile id="13">