ugokeru
This commit is contained in:
parent
1c893940ac
commit
cfcfd3e263
21 changed files with 227 additions and 7 deletions
|
@ -21,6 +21,7 @@
|
|||
{"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":72,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
],
|
||||
"properties": [],
|
||||
"overriddenProperties": [],
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
log(un);
|
||||
c_inheritunit(1, 1, un.chara);
|
||||
c_inheritunit(2, 2, un.chara);
|
|
@ -1,13 +1,24 @@
|
|||
draw_set_color(c_white);
|
||||
var i, j;
|
||||
var i, j, k;
|
||||
for (i=0; i<array_length(global.map); i++) {
|
||||
for (j=0; j<array_length(global.map[i]); j++) {
|
||||
draw_set_color(c_white);
|
||||
draw_rectangle(
|
||||
i*global.tilesize.x,
|
||||
j*global.tilesize.y,
|
||||
(i+1)*global.tilesize.x,
|
||||
(j+1)*global.tilesize.y, false
|
||||
);
|
||||
for (k=0; k<array_length(global.map[i][j].overlays); k++) {
|
||||
draw_set_color(global.map[i][j].overlays[k]);
|
||||
draw_set_alpha(.4);
|
||||
draw_rectangle(
|
||||
i*global.tilesize.x,
|
||||
j*global.tilesize.y,
|
||||
(i+1)*global.tilesize.x,
|
||||
(j+1)*global.tilesize.y, false
|
||||
);
|
||||
draw_set_alpha(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
draw_set_color(c_black);
|
||||
|
|
17
eastern flames/objects/ARTICULATOR/Step_0.gml
Normal file
17
eastern flames/objects/ARTICULATOR/Step_0.gml
Normal file
|
@ -0,0 +1,17 @@
|
|||
c_input();
|
||||
if select {
|
||||
var mousex = floor(mouse_x/global.tilesize.x);
|
||||
var mousey = floor(mouse_y/global.tilesize.y);
|
||||
log(mousex, mousey);
|
||||
if mousex < array_length(global.map) {
|
||||
if mousey < array_length(global.map[mousex]) {
|
||||
var i;
|
||||
for (i=0; i<array_length(global.map[mousex][mousey].contents); i++) {
|
||||
if global.map[mousex][mousey].contents[i].object_index == o_unit {
|
||||
log("selected a guy");
|
||||
c_selectunit(global.map[mousex][mousey].contents[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,2 +1,7 @@
|
|||
//unitdata = new unit();
|
||||
pos = new vec2(0, 0);
|
||||
pos = new vec2(0, 0);
|
||||
state = st_standing;
|
||||
drawstate = c_null;
|
||||
hspd = 0;
|
||||
vspd = 0;
|
||||
returnpos = new vec2(0, 0);
|
|
@ -1,3 +1,4 @@
|
|||
draw_self();
|
||||
drawstate();
|
||||
//draw_set_color(c_red);
|
||||
//draw_circle(x, y, 5, false);
|
|
@ -1,3 +1 @@
|
|||
x = pos.x*global.tilesize.x+global.tilesize.x/2;
|
||||
y = pos.y*global.tilesize.y+global.tilesize.y/2;
|
||||
log(x, y);
|
||||
state();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue