Don't snap things to grid when not falling/stopped. This should hopefully fix the problem where things end up off the grid or out of line.
This commit is contained in:
parent
19f5ded391
commit
48996e701f
5
cat.html
5
cat.html
|
@ -4104,6 +4104,11 @@ function thing(gridx, gridy, type, text) {
|
|||
var moved = false;
|
||||
var snaptox = Math.floor(this.gridx * GRIDSIZE + (GRIDSIZE/2) - (this.size/2));
|
||||
var snaptoy = Math.floor(this.gridy * GRIDSIZE + (GRIDSIZE/2) - (this.size/2));
|
||||
|
||||
if (this.state != "fall" && this.state != "stop") {
|
||||
return false;
|
||||
}
|
||||
|
||||
//var snapto = (GRIDSIZE + (GRIDSIZE/2) - (THINGSIZE/2);
|
||||
//if (this.y % (GRIDSIZE + (GRIDSIZE/2) - (THINGSIZE/2)) != 0) {
|
||||
//if (this.y % snapto != 0) {
|
||||
|
|
4
todo
4
todo
|
@ -55,6 +55,10 @@ show total points on path ??
|
|||
when a parade is going in to a door, they seem to disappear at the wrong place
|
||||
... try slowing them down
|
||||
thing added at top with x = -1 !!!!
|
||||
it's probably cause of x snap.
|
||||
don't snap when in something other than fall/stop
|
||||
fixed now???????
|
||||
|
||||
|
||||
---------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue