eastern-flames/eastern flames/scripts/tiledata/tiledata.gml

23 lines
755 B
Plaintext
Raw Normal View History

2022-08-15 02:35:57 +00:00
global.map = [
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
];
2022-08-15 04:36:37 +00:00
function c_informtiles() {
for (i=0; i<array_length(global.map); i++) {
for (j=0; j<array_length(global.map[i]); j++) {
mp[i][j].x = i;
mp[i][j].y = j;
}
}
}
c_informtiles();
2022-08-15 02:35:57 +00:00
global.tilesize = new vec2(32, 32);
function tiledata(passable_=true) constructor {
passable = passable;
contents = [];
2022-08-15 04:06:41 +00:00
overlays = [];
2022-08-15 02:35:57 +00:00
}