Skip to content

Commit 93647a9

Browse files
committed
Change values of aux marks
1 parent 708cd91 commit 93647a9

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/variety/bunnyhop.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
this.mouseCell = cell;
4848
this.prevPekeDir = dir;
4949

50-
var value = 1 << (dir + 1);
50+
var value = 1 << (dir - 1);
5151

5252
if (this.inputData === null) {
5353
this.inputData = cell.qsub & value ? 2 : 3;
@@ -109,7 +109,7 @@
109109
: newValue === 1
110110
? 2
111111
: 1;
112-
var peke = 1 << (dir + 1);
112+
var peke = 1 << (dir - 1);
113113

114114
if (cell.qsub & peke) {
115115
cell.setQsub(cell.qsub & ~peke);
@@ -307,7 +307,7 @@
307307
for (var m = 0; m < dirs.length; m++) {
308308
g.vid = "ut_peke" + m + "_" + cell.id;
309309

310-
if (cell.qsub & (1 << (m + 2))) {
310+
if (cell.qsub & (1 << m)) {
311311
var sx = px + dirs[m][0] * this.bw * 0.6,
312312
sy = py + dirs[m][1] * this.bh * 0.6;
313313

test/script/bunnyhop.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,25 @@ ui.debug.addDebugData("bunnyhop", {
6565
label: "Add pekes",
6666
input: ["playmode", "mouse,right,1.5,3,2.5,3,3,3.5,1,3.5"],
6767
result:
68-
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 2 /0 0 /0 0 /40 24 /"
68+
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 2 /0 0 /0 0 /10 6 /"
6969
},
7070
{
7171
label: "Remove pekes",
7272
input: ["mouse,right,2.5,3,1.5,3"],
7373
result:
74-
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 2 /0 0 /0 0 /8 8 /"
74+
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 2 /0 0 /0 0 /2 2 /"
7575
},
7676
{
7777
label: "Overwrite peke with line",
7878
input: ["mouse,left,0,4,2,4"],
7979
result:
80-
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 2 /1 0 /0 0 /0 8 /"
80+
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 2 /1 0 /0 0 /0 2 /"
8181
},
8282
{
8383
label: "Peke erases line",
8484
input: ["mouse,right,3,2.5"],
8585
result:
86-
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 0 /1 0 /0 0 /0 12 /"
86+
"pzprv3/bunnyhop/2/2/# # /. . /0 0 0 /0 0 0 /0 0 /0 0 /1 0 /0 0 /0 3 /"
8787
}
8888
]
8989
});

0 commit comments

Comments
 (0)