Skip to content

Commit

Permalink
made an animated tiles project for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Feb 25, 2024
1 parent 40d6bcc commit 66189bb
Show file tree
Hide file tree
Showing 10 changed files with 5,748 additions and 135 deletions.
209 changes: 209 additions & 0 deletions Assets/Tests/Misc/OtherTechTests/AnimatedTiles.ldtk
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
{
"__header__": {
"fileType": "LDtk Project JSON",
"app": "LDtk",
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.5.3",
"url": "https://ldtk.io"
},
"iid": "50fe19b0-7820-11ed-a656-efba38f8afd8",
"jsonVersion": "1.5.3",
"appBuildId": 473703,
"nextUid": 4,
"identifierStyle": "Capitalize",
"toc": [],
"worldLayout": "Free",
"worldGridWidth": 256,
"worldGridHeight": 256,
"defaultLevelWidth": 256,
"defaultLevelHeight": 256,
"defaultPivotX": 0,
"defaultPivotY": 0,
"defaultGridSize": 16,
"defaultEntityWidth": 16,
"defaultEntityHeight": 16,
"bgColor": "#40465B",
"defaultLevelBgColor": "#696A79",
"minifyJson": false,
"externalLevels": false,
"exportTiled": false,
"simplifiedExport": false,
"imageExportMode": "None",
"exportLevelBg": true,
"pngFilePattern": null,
"backupOnSave": false,
"backupLimit": 10,
"backupRelPath": null,
"levelNamePattern": "%world_Level_%idx",
"tutorialDesc": "Meant to only contain nothing. No tile sets. We just want to gauge basic import capability",
"customCommands": [{
"command": "../../../../Library/LDtkTilesetExporter/ExportTilesetDefinition.exe \"AnimatedTiles\"",
"when": "AfterSave"
}],
"flags": ["ExportOldTableOfContentData"],
"defs": { "layers": [
{
"__type": "Tiles",
"identifier": "Tiles",
"type": "Tiles",
"uid": 2,
"doc": null,
"uiColor": null,
"gridSize": 16,
"guideGridWid": 0,
"guideGridHei": 0,
"displayOpacity": 1,
"inactiveOpacity": 1,
"hideInList": false,
"hideFieldsWhenInactive": false,
"canSelectWhenInactive": true,
"renderInWorldView": true,
"pxOffsetX": 0,
"pxOffsetY": 0,
"parallaxFactorX": 0,
"parallaxFactorY": 0,
"parallaxScaling": true,
"requiredTags": [],
"excludedTags": [],
"autoTilesKilledByOtherLayerUid": null,
"uiFilterTags": [],
"useAsyncRender": false,
"intGridValues": [],
"intGridValuesGroups": [],
"autoRuleGroups": [],
"autoSourceLayerDefUid": null,
"tilesetDefUid": 1,
"tilePivotX": 0,
"tilePivotY": 0,
"biomeFieldUid": null
}
], "entities": [], "tilesets": [
{
"__cWid": 11,
"__cHei": 11,
"identifier": "TopDown_by_deepnight",
"uid": 1,
"relPath": "atlas/TopDown_by_deepnight.png",
"embedAtlas": null,
"pxWid": 176,
"pxHei": 176,
"tileGridSize": 16,
"spacing": 0,
"padding": 0,
"tags": [],
"tagsSourceEnumUid": null,
"enumTags": [],
"customData": [
{ "tileId": 3, "data": "animatedSprites 3,4,5" },
{ "tileId": 14, "data": "animatedSprites 14,15,16,17,25,26,27,28\nanimationSpeed 2" },
{ "tileId": 33, "data": "animatedSprites 33,34,35,36,37,38\nanimationStartTime 0.5" },
{ "tileId": 44, "data": "animatedSprites 44, 45, 46, 47, 48, 49, 50, 51\nflags UpdatePhysics,LoopOnce" },
{
"tileId": 55,
"data": "animatedSprites 55, 56, 57, 58\nanimationSpeed 1\nanimationStartTime 0\nflags UpdatePhysics,LoopOnce"
},
{
"tileId": 59,
"data": "animatedSprites 59, 60, 61, 62, 63, 64\nanimationSpeed 2\nanimationStartTime 0.5\nflags UpdatePhysics,LoopOnce"
},
{
"tileId": 71,
"data": "animatedSprites 71, 72, 73\nanimationSpeed 1\nanimationStartTime 0\nflags UpdatePhysics,LoopOnce"
}
],
"savedSelections": [],
"cachedPixelData": {
"opaqueTiles": "0001110000000011110100000111100001111110000011111111000111111111100000000000000000000000000000000000000000000000000000000",
"averageColors": "4d863c763c65f635f635f63500001a550000000000004c754c654d75f111f001f111f1110000f0007000000000003c751b65f111f001f111f1110000000000000000f355f355f355f355f355f35500000000000000000000f334f334f334f234f334f334f334f334000000000000f525f525f525f525f236f236f236f236f236f23600002445244504560000b111b111a111a11100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
], "enums": [], "externalEnums": [], "levelFields": [] },
"levels": [
{
"identifier": "World_Level_0",
"iid": "d4fd0740-8dc0-11ec-bd4d-1bfd9f2309bb",
"uid": 0,
"worldX": 0,
"worldY": 0,
"worldDepth": 0,
"pxWid": 256,
"pxHei": 256,
"__bgColor": "#696A79",
"bgColor": null,
"useAutoIdentifier": true,
"bgRelPath": null,
"bgPos": null,
"bgPivotX": 0.5,
"bgPivotY": 0.5,
"__smartColor": "#ADADB5",
"__bgPos": null,
"externalRelPath": null,
"fieldInstances": [],
"layerInstances": [
{
"__identifier": "Tiles",
"__type": "Tiles",
"__cWid": 16,
"__cHei": 16,
"__gridSize": 16,
"__opacity": 1,
"__pxTotalOffsetX": 0,
"__pxTotalOffsetY": 0,
"__tilesetDefUid": 1,
"__tilesetRelPath": "atlas/TopDown_by_deepnight.png",
"iid": "eac5af50-b0a0-11ee-b2a0-af01b413980a",
"levelId": 0,
"layerDefUid": 2,
"pxOffsetX": 0,
"pxOffsetY": 0,
"visible": true,
"optionalRules": [],
"intGridCsv": [],
"autoLayerTiles": [],
"seed": 8428,
"overrideTilesetUid": null,
"gridTiles": [
{ "px": [16,16], "src": [48,0], "f": 0, "t": 3, "d": [17], "a": 1 },
{ "px": [32,16], "src": [48,0], "f": 0, "t": 3, "d": [18], "a": 1 },
{ "px": [64,16], "src": [48,16], "f": 0, "t": 14, "d": [20], "a": 1 },
{ "px": [80,16], "src": [48,16], "f": 0, "t": 14, "d": [21], "a": 1 },
{ "px": [112,16], "src": [0,48], "f": 0, "t": 33, "d": [23], "a": 1 },
{ "px": [128,16], "src": [0,48], "f": 0, "t": 33, "d": [24], "a": 1 },
{ "px": [160,16], "src": [0,64], "f": 0, "t": 44, "d": [26], "a": 1 },
{ "px": [176,16], "src": [0,64], "f": 0, "t": 44, "d": [27], "a": 1 },
{ "px": [224,16], "src": [0,16], "f": 0, "t": 11, "d": [30], "a": 1 },
{ "px": [16,32], "src": [48,0], "f": 0, "t": 3, "d": [33], "a": 1 },
{ "px": [32,32], "src": [48,0], "f": 0, "t": 3, "d": [34], "a": 1 },
{ "px": [64,32], "src": [48,16], "f": 0, "t": 14, "d": [36], "a": 1 },
{ "px": [80,32], "src": [48,16], "f": 0, "t": 14, "d": [37], "a": 1 },
{ "px": [112,32], "src": [0,48], "f": 0, "t": 33, "d": [39], "a": 1 },
{ "px": [128,32], "src": [0,48], "f": 0, "t": 33, "d": [40], "a": 1 },
{ "px": [160,32], "src": [0,64], "f": 0, "t": 44, "d": [42], "a": 1 },
{ "px": [176,32], "src": [0,64], "f": 0, "t": 44, "d": [43], "a": 1 },
{ "px": [224,32], "src": [0,16], "f": 0, "t": 11, "d": [46], "a": 1 },
{ "px": [224,48], "src": [0,16], "f": 0, "t": 11, "d": [62], "a": 1 },
{ "px": [16,64], "src": [0,80], "f": 0, "t": 55, "d": [65], "a": 1 },
{ "px": [32,64], "src": [0,80], "f": 0, "t": 55, "d": [66], "a": 1 },
{ "px": [64,64], "src": [64,80], "f": 0, "t": 59, "d": [68], "a": 1 },
{ "px": [80,64], "src": [64,80], "f": 0, "t": 59, "d": [69], "a": 1 },
{ "px": [224,64], "src": [0,16], "f": 0, "t": 11, "d": [78], "a": 1 },
{ "px": [16,80], "src": [0,80], "f": 0, "t": 55, "d": [81], "a": 1 },
{ "px": [32,80], "src": [0,80], "f": 0, "t": 55, "d": [82], "a": 1 },
{ "px": [64,80], "src": [64,80], "f": 0, "t": 59, "d": [84], "a": 1 },
{ "px": [80,80], "src": [64,80], "f": 0, "t": 59, "d": [85], "a": 1 },
{ "px": [224,96], "src": [80,96], "f": 0, "t": 71, "d": [110], "a": 1 },
{ "px": [224,112], "src": [80,96], "f": 0, "t": 71, "d": [126], "a": 1 },
{ "px": [224,128], "src": [80,96], "f": 0, "t": 71, "d": [142], "a": 1 },
{ "px": [224,144], "src": [80,96], "f": 0, "t": 71, "d": [158], "a": 1 }
],
"entityInstances": []
}
],
"__neighbours": []
}
],
"worlds": [],
"dummyWorldIid": "db9968f0-c640-11ed-8b51-db8416f9831c"
}
25 changes: 25 additions & 0 deletions Assets/Tests/Misc/OtherTechTests/AnimatedTiles.ldtk.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Tests/Misc/OtherTechTests/AnimatedTiles.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"Rects": null,
"Def": {
"__cHei": 11,
"__cWid": 11,
"cachedPixelData": {
"opaqueTiles": "0001110000000011110100000111100001111110000011111111000111111111100000000000000000000000000000000000000000000000000000000",
"averageColors": "4d863c763c65f635f635f63500001a550000000000004c754c654d75f111f001f111f1110000f0007000000000003c751b65f111f001f111f1110000000000000000f355f355f355f355f355f35500000000000000000000f334f334f334f234f334f334f334f334000000000000f525f525f525f525f236f236f236f236f236f23600002445244504560000b111b111a111a11100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
},
"customData": [
{
"data": "animatedSprites 3,4,5",
"tileId": 3
},
{
"data": "animatedSprites 14,15,16,17,25,26,27,28\nanimationSpeed 2",
"tileId": 14
},
{
"data": "animatedSprites 33,34,35,36,37,38\nanimationStartTime 0.5",
"tileId": 33
},
{
"data": "animatedSprites 44, 45, 46, 47, 48, 49, 50, 51\nflags UpdatePhysics,LoopOnce",
"tileId": 44
},
{
"data": "animatedSprites 55, 56, 57, 58\nanimationSpeed 1\nanimationStartTime 0\nflags UpdatePhysics,LoopOnce",
"tileId": 55
},
{
"data": "animatedSprites 59, 60, 61, 62, 63, 64\nanimationSpeed 2\nanimationStartTime 0.5\nflags UpdatePhysics,LoopOnce",
"tileId": 59
},
{
"data": "animatedSprites 71, 72, 73\nanimationSpeed 1\nanimationStartTime 0\nflags UpdatePhysics,LoopOnce",
"tileId": 71
}
],
"embedAtlas": null,
"enumTags": [

],
"identifier": "TopDown_by_deepnight",
"padding": 0,
"pxHei": 176,
"pxWid": 176,
"relPath": "atlas/TopDown_by_deepnight.png",
"savedSelections": [

],
"spacing": 0,
"tags": [

],
"tagsSourceEnumUid": null,
"tileGridSize": 16,
"uid": 1
}
}
Loading

0 comments on commit 66189bb

Please sign in to comment.