X-Git-Url: http://git.plutz.net/?p=isotilejs;a=blobdiff_plain;f=index.html;fp=index.html;h=76bd4b2f2a8c5c2b0b8a012050ecf1d1e3d190e5;hp=0debcfaf1aebbf8870b4802262c4068ab4e27c53;hb=9f083a57cec4613b4fdc73700251a4cc724be369;hpb=f6fa54ab059b755dbff67b4f1430ee221fa90993 diff --git a/index.html b/index.html index 0debcfa..76bd4b2 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Canvas not supported
- +
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, @@ -175,6 +175,14 @@ player = { case 'sw': dy = .45 * this.speed; dx = -.9 * this.speed; break; case 'se': dy = .45 * this.speed; dx = .9 * this.speed; break; } + + if (player.frame % 6 > 2) { + dx *= 1.375; + dy *= 1.375 + } else { + dx *= .625; + dy *= .625; + } if (map.data[map.tile_at(this.x + dx, this.y + dy)] != 4) { this.x += dx; this.y += dy;