Skip to content

Commit 84e05b3

Browse files
committed
TileData 1.0 Release
1 parent a4cc08e commit 84e05b3

26 files changed

Lines changed: 293 additions & 102 deletions

TileData.resource_order

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
{
22
"FolderOrderSettings": [
3-
{"name":"Sprites","order":1,"path":"folders/Sprites.yy",},
4-
{"name":"Tile Sets","order":2,"path":"folders/Tile Sets.yy",},
5-
{"name":"Sounds","order":3,"path":"folders/Sounds.yy",},
6-
{"name":"Paths","order":4,"path":"folders/Paths.yy",},
73
{"name":"Scripts","order":5,"path":"folders/Scripts.yy",},
8-
{"name":"Shaders","order":6,"path":"folders/Shaders.yy",},
9-
{"name":"Fonts","order":7,"path":"folders/Fonts.yy",},
10-
{"name":"Timelines","order":8,"path":"folders/Timelines.yy",},
11-
{"name":"Objects","order":9,"path":"folders/Objects.yy",},
12-
{"name":"Rooms","order":10,"path":"folders/Rooms.yy",},
13-
{"name":"Sequences","order":11,"path":"folders/Sequences.yy",},
14-
{"name":"Animation Curves","order":12,"path":"folders/Animation Curves.yy",},
15-
{"name":"Notes","order":13,"path":"folders/Notes.yy",},
16-
{"name":"Extensions","order":14,"path":"folders/Extensions.yy",},
17-
{"name":"Particle Systems","order":15,"path":"folders/Particle Systems.yy",},
4+
{"name":"Example","order":8,"path":"folders/Example.yy",},
185
],
196
"ResourceOrderSettings": [
20-
{"name":"s_ts_example","order":16,"path":"sprites/s_ts_example/s_ts_example.yy",},
7+
{"name":"ts_example","order":1,"path":"tilesets/ts_example/ts_example.yy",},
8+
{"name":"s_example","order":4,"path":"sprites/s_example/s_example.yy",},
219
{"name":"tiledata_get","order":1,"path":"scripts/tiledata_get/tiledata_get.yy",},
10+
{"name":"sfx_example_stone","order":7,"path":"sounds/sfx_example_stone/sfx_example_stone.yy",},
11+
{"name":"o_example","order":3,"path":"objects/o_example/o_example.yy",},
12+
{"name":"sfx_example_dirt","order":6,"path":"sounds/sfx_example_dirt/sfx_example_dirt.yy",},
13+
{"name":"sfx_example_wood","order":5,"path":"sounds/sfx_example_wood/sfx_example_wood.yy",},
14+
{"name":"r_example","order":2,"path":"rooms/r_example/r_example.yy",},
2215
],
2316
}

TileData.yyp

Lines changed: 7 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TileDataYippie.resource_order

Lines changed: 0 additions & 13 deletions
This file was deleted.

TileDataYippie.yyp

Lines changed: 0 additions & 40 deletions
This file was deleted.

objects/o_example/Create_0.gml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
enum materials
2+
{
3+
dirt,
4+
stone,
5+
wood
6+
}
7+
8+
tiledata_set(ts_example,[undefined,materials.dirt,materials.stone,materials.wood]);

objects/o_example/Mouse_53.gml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Move player to mouse position
2+
x = floor(mouse_x/8)*8;
3+
y = floor(mouse_y/8)*8;
4+
5+
// Tilemap/Tileset stuff
6+
var tilemap_id = layer_tilemap_get_id("Tiles")
7+
var tile = tilemap_get_at_pixel(tilemap_id,mouse_x,mouse_y);
8+
9+
var attached_data = tiledata_get(tilemap_get_tileset(tilemap_id),tile);
10+
11+
// Play different footstep sounds depending on tile material
12+
switch(attached_data)
13+
{
14+
case materials.dirt:
15+
audio_play_sound(sfx_example_dirt,1,false);
16+
break;
17+
18+
case materials.stone:
19+
audio_play_sound(sfx_example_stone,1,false);
20+
break;
21+
22+
case materials.wood:
23+
audio_play_sound(sfx_example_wood,1,false);
24+
break;
25+
}

objects/o_example/Step_0.gml

Whitespace-only changes.

objects/o_example/o_example.yy

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/windows/options_windows.yy

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rooms/r_example/r_example.yy

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)