Compare commits

...

3 Commits

Author SHA1 Message Date
the me 1a13781220 3d testable environment, kinda 2022-08-18 21:50:55 -07:00
the me dfbcd56e99 Merge branch 'master' of https://git.touhou.dev/shaun_chaky/eastern-flames 2022-08-18 21:48:20 -07:00
the me d3d0fdf2f8 a 2022-08-18 21:48:16 -07:00
3 changed files with 11 additions and 9 deletions

View File

@ -151,12 +151,14 @@
{"isScaled":true,"autocrop":true,"border":2,"mipsToGenerate":0,"groupParent":null,"targets":-1,"resourceVersion":"1.3","name":"Default","resourceType":"GMTextureGroup",}, {"isScaled":true,"autocrop":true,"border":2,"mipsToGenerate":0,"groupParent":null,"targets":-1,"resourceVersion":"1.3","name":"Default","resourceType":"GMTextureGroup",},
], ],
"IncludedFiles": [ "IncludedFiles": [
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBA Test.dat","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBA Test.size","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"grass.png","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"koakuma.png","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing tex.png","resourceType":"GMIncludedFile",}, {"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing tex.png","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing.dat","resourceType":"GMIncludedFile",}, {"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing.dat","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Map 1","resourceVersion":"1.0","name":"Map 1.dat","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Map 1","resourceVersion":"1.0","name":"Map 1.size","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Map 1","resourceVersion":"1.0","name":"MapAtlas.png","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBA Test.dat","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBA Test.size","resourceType":"GMIncludedFile",},
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBATestAtlas.png","resourceType":"GMIncludedFile",},
], ],
"MetaData": { "MetaData": {
"IDEVersion": "2.3.3.574", "IDEVersion": "2.3.3.574",

View File

@ -48,5 +48,5 @@ function drawModels(){
models = []; models = [];
//var spr = sprite_add("./shrine thing tex.png",0,false,false,0,0); //var spr = sprite_add("./shrine thing tex.png",0,false,false,0,0);
var spr = sprite_add("./Test Map/grass.png",0,false,false,0,0); var spr = sprite_add("./Map 1/MapAtlas.png",0,false,false,0,0);
nu Model("./shrine thing.dat",spr); nu Model("./Map 1/Map 1.dat",spr);

View File

@ -5,16 +5,17 @@ global.viewMat = camera_get_view_mat(cam);
setCam(); setCam();
draw_set_color(c_black); draw_set_color(c_black);
draw_rectangle(-9999, -9999, 9999, 9999, false); draw_rectangle(-9999, -9999, 9999, 9999, false);
drawModels();
var i, j, k; var i, j, k;
for (i=0; i<array_length(global.map); i++) { for (i=0; i<array_length(global.map); i++) {
for (j=0; j<array_length(global.map[i]); j++) { for (j=0; j<array_length(global.map[i]); j++) {
draw_set_color(c_white); /*draw_set_color(c_white);
draw_rectangle( draw_rectangle(
i*global.tilesize.x, i*global.tilesize.x,
j*global.tilesize.y, j*global.tilesize.y,
(i+1)*global.tilesize.x, (i+1)*global.tilesize.x,
(j+1)*global.tilesize.y, false (j+1)*global.tilesize.y, false
); );*/
for (k=0; k<array_length(global.map[i][j].overlays); k++) { for (k=0; k<array_length(global.map[i][j].overlays); k++) {
draw_set_color(global.map[i][j].overlays[k]); draw_set_color(global.map[i][j].overlays[k]);
draw_set_alpha(.4); draw_set_alpha(.4);
@ -46,4 +47,3 @@ for (i=0; i<array_length(global.map); i++) {
var a = c_2dto3d(mouse_x,mouse_y); var a = c_2dto3d(mouse_x,mouse_y);
draw_circle(a.x,a.y,2,false); draw_circle(a.x,a.y,2,false);
drawModels();