move you self
This commit is contained in:
parent
9cdac2b47e
commit
4d394955fa
18 changed files with 127 additions and 22 deletions
|
@ -1,8 +1,9 @@
|
|||
function c_selectunit(unitobject) {
|
||||
if unitobject.waiting return false
|
||||
unitobject.state = st_moving;
|
||||
unitobject.drawstate = st_movingdraw;
|
||||
unitobject.returnpos = new vec2(unitobject.pos.x, unitobject.pos.y);
|
||||
var mov = 2//DONT
|
||||
var mov = unitobject.data.mov.val;
|
||||
var i, j;
|
||||
for (i=-mov; i<=mov; i++) {
|
||||
for (j=-mov; j<=mov; j++) {
|
||||
|
@ -12,6 +13,7 @@ function c_selectunit(unitobject) {
|
|||
}
|
||||
}
|
||||
ARTICULATOR.selectedunit = unitobject;
|
||||
return unitobject;
|
||||
}
|
||||
|
||||
function c_deselectunit(unitobject) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue