diff --git a/eastern flames/eastern flames.yyp b/eastern flames/eastern flames.yyp index 50f1c3d..374763b 100644 --- a/eastern flames/eastern flames.yyp +++ b/eastern flames/eastern flames.yyp @@ -97,6 +97,7 @@ {"id":{"name":"array_greatest","path":"scripts/array_greatest/array_greatest.yy",},"order":4,}, {"id":{"name":"c_null","path":"scripts/c_null/c_null.yy",},"order":4,}, {"id":{"name":"array_contains_within","path":"scripts/array_contains_within/array_contains_within.yy",},"order":19,}, + {"id":{"name":"c_passableeval","path":"scripts/c_passableeval/c_passableeval.yy",},"order":25,}, {"id":{"name":"st_moving","path":"scripts/st_moving/st_moving.yy",},"order":7,}, {"id":{"name":"c_deleteunit","path":"scripts/c_deleteunit/c_deleteunit.yy",},"order":22,}, {"id":{"name":"Room1","path":"rooms/Room1/Room1.yy",},"order":0,}, @@ -136,11 +137,8 @@ {"folderPath":"folders/Scripts/util/drawing/vlambeer.yy","order":1,"resourceVersion":"1.0","name":"vlambeer","tags":[],"resourceType":"GMFolder",}, {"folderPath":"folders/Scripts/util.yy","order":1,"resourceVersion":"1.0","name":"util","tags":[],"resourceType":"GMFolder",}, {"folderPath":"folders/Sprites/momiji.yy","order":2,"resourceVersion":"1.0","name":"momiji","tags":[],"resourceType":"GMFolder",}, -<<<<<<< HEAD {"folderPath":"folders/Sprites/wabbit.yy","order":3,"resourceVersion":"1.0","name":"wabbit","tags":[],"resourceType":"GMFolder",}, -======= {"folderPath":"folders/Scripts/3d.yy","order":19,"resourceVersion":"1.0","name":"3d","tags":[],"resourceType":"GMFolder",}, ->>>>>>> a9003c47cacfdee8c6ba2588fdb26b55ad87617b ], "AudioGroups": [ {"targets":-1,"resourceVersion":"1.3","name":"audiogroup_default","resourceType":"GMAudioGroup",}, @@ -149,17 +147,12 @@ {"isScaled":true,"autocrop":true,"border":2,"mipsToGenerate":0,"groupParent":null,"targets":-1,"resourceVersion":"1.3","name":"Default","resourceType":"GMTextureGroup",}, ], "IncludedFiles": [ -<<<<<<< HEAD {"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.dat","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 tex.png","resourceType":"GMIncludedFile",}, ->>>>>>> a9003c47cacfdee8c6ba2588fdb26b55ad87617b ], "MetaData": { "IDEVersion": "2.3.3.574", diff --git a/eastern flames/objects/ARTICULATOR/Create_0.gml b/eastern flames/objects/ARTICULATOR/Create_0.gml index 4cf165f..aacc877 100644 --- a/eastern flames/objects/ARTICULATOR/Create_0.gml +++ b/eastern flames/objects/ARTICULATOR/Create_0.gml @@ -23,12 +23,8 @@ function getProj(){ function getView(){ var _x = global.camerax; var _y = global.cameray; -<<<<<<< HEAD var half = (7.5*32)+40; return matrix_build_lookat(_x,_y+180,150,_x,_y,0,0,0,-1); -======= - return matrix_build_lookat(_x,_y+100,100,_x,_y,0,0,0,-1); ->>>>>>> a9003c47cacfdee8c6ba2588fdb26b55ad87617b } function setCam(){ @@ -37,9 +33,7 @@ function setCam(){ camera_set_view_mat(cam,getView()) camera_apply(cam); } -<<<<<<< HEAD global.turn = ARMY.US; -======= function drawModels(){ gpu_set_cullmode(cull_counterclockwise); @@ -53,6 +47,6 @@ function drawModels(){ models = []; -var spr = sprite_add("./shrine thing tex.png",0,false,false,0,0); -nu Model("./shrine thing.dat",spr); ->>>>>>> a9003c47cacfdee8c6ba2588fdb26b55ad87617b +//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); +nu Model("./shrine thing.dat",spr); \ No newline at end of file diff --git a/eastern flames/objects/ARTICULATOR/Step_0.gml b/eastern flames/objects/ARTICULATOR/Step_0.gml index 8140238..e752c5c 100644 --- a/eastern flames/objects/ARTICULATOR/Step_0.gml +++ b/eastern flames/objects/ARTICULATOR/Step_0.gml @@ -1,3 +1,21 @@ +while global.turn == ARMY.THEM { + var done = true; + for (k=0; k dude.x { + } else if target.pos.x > dude.pos.x { var guy = c_gettile(target.pos.x-1, target.pos.y); } - if target.pos.y < dude.y { - var guy = c_gettile(target.pos.x+1, target.pos.y); - } else if target.pos.x > dude.x { - var guy = c_gettile(target.pos.x-1, target.pos.y); + if target.pos.y < dude.pos.y { + var guy = c_gettile(target.pos.x, target.pos.y+1); + } else if target.pos.y > dude.pos.y { + var guy = c_gettile(target.pos.x, target.pos.y-1); } - if guy.passable { - c_moveunit(target, guy); - continue; + if guy != noone { + if guy.passable && !c_containsunit(guy.x, guy.y) { + c_moveunit(target, guy); + } } + c_loadmarkings(); } target.waiting = true; break; case AI.WAITER: - + target.waiting = true; break; case AI.ESCAPER: - + target.waiting = true; break; } + c_loadmarkings(); } function c_findnearestunit(alignment) { var lowest = new vec2(99, 99); - var lowestunit = new vec2(99, 99); + var lowestunit = noone; for (i=0; i guy.x + guy.y) { lowest = guy; lowestunit = global.units[alignment][i]; } } - return + return lowestunit; } \ No newline at end of file diff --git a/eastern flames/scripts/c_passableeval/c_passableeval.gml b/eastern flames/scripts/c_passableeval/c_passableeval.gml new file mode 100644 index 0000000..502bc38 --- /dev/null +++ b/eastern flames/scripts/c_passableeval/c_passableeval.gml @@ -0,0 +1,27 @@ +function c_passableeval() { + /*var i, j; + for (i=0; i