Skip to content

Commit

Permalink
fix sfx and balloon
Browse files Browse the repository at this point in the history
Signed-off-by: ClaytonTDM <[email protected]>
  • Loading branch information
ClaytonTDM committed Oct 9, 2024
1 parent aaccd3f commit 5e064c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Binary file modified game/audio/evillaugh.mp3
Binary file not shown.
Binary file modified game/audio/losemusic.mp3
Binary file not shown.
Binary file modified game/audio/winmusic.mp3
Binary file not shown.
15 changes: 8 additions & 7 deletions game/js/Cfunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,9 @@ var $User = (function () {
}, 100);
};
image.style.animation = `moveLeft${balloonId} ${
13 / $User.Visitor.TimeStep
13 / ($User.Visitor.TimeStep / 10)
}s linear, bobbing${balloonId} ${
2 / $User.Visitor.TimeStep
2 / ($User.Visitor.TimeStep / 10)
}s ease-in-out infinite`;
image.style.top = `${randomY}px`;
image.style.cursor = "pointer";
Expand Down Expand Up @@ -1664,6 +1664,7 @@ var $User = (function () {
f = h[1],
b = g[1],
j = GetAP(a, k, f, b);
console.log(a, k, f, b, j)
switch (oS.Chose) {
case 1:
WhichMouseButton(i) < 2
Expand Down Expand Up @@ -1757,9 +1758,9 @@ var $User = (function () {
GroundOnmousemove2 = function (k) {
k = window.event || k;
var d =
k.clientX - EDAlloffsetLeft + EBody.scrollLeft ||
EElement.scrollLeft,
b = k.clientY + EBody.scrollTop || EElement.scrollTop,
(k.clientX - EDAlloffsetLeft + EBody.scrollLeft ||
EElement.scrollLeft) * 10 / 9,
b = (k.clientY + EBody.scrollTop || EElement.scrollTop) * 10 / 9,
m = oS.ChoseCard,
h = ChosePlantX(d),
i = ChosePlantY(b),
Expand All @@ -1775,8 +1776,8 @@ var $User = (function () {
(p && SetAlpha($(p).childNodes[1], 100, 1),
(oS.MPID = l) && SetAlpha($(l).childNodes[1], 60, 0.6));
SetStyle($("tShovel"), {
left: ((d - 15) * 10) / 9 + "px",
top: ((b - 16) * 10) / 9 + "px",
left: (d - 15) + "px",
top: (b - 16) + "px",
});
},
DisplayZombie = function () {
Expand Down

0 comments on commit 5e064c1

Please sign in to comment.