diff --git a/game/Custom.css b/game/Custom.css index 0757f72..61eba8d 100644 --- a/game/Custom.css +++ b/game/Custom.css @@ -38,7 +38,7 @@ } #sSunNum { font-family: "continuumbold" !important; - margin-top: -2px !important; + margin-top: -5px !important; } #DivTeach { width: 50% !important; @@ -379,3 +379,20 @@ td { transform: translate(0px, 0px); } } + +@keyframes threepeaterDown { /* threepeaterDown 1.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards */ + 0% { + transform: translateY(0px); + } + 100% { + transform: translateY(102px); + } +} +@keyframes threepeaterUp { /* threepeaterUp 1.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards */ + 0% { + transform: translateY(0px); + } + 100% { + transform: translateY(-102px); + } +} \ No newline at end of file diff --git a/game/js/CPlants.js b/game/js/CPlants.js index ec38235..9c5900d 100644 --- a/game/js/CPlants.js +++ b/game/js/CPlants.js @@ -2000,18 +2000,17 @@ var CPlants = NewO({ f.BulletClass = []; f.BulletEle = []; for (b in c) { - f.BulletClass.push( - NewO({ - X: e, - R: b, - D: 0, - Attack: 20, - Kind: 0, - ChangeC: 0, - pixelLeft: d, - F: oGd.MB1, - }) - ); + let bullet = NewO({ + X: e, + R: f.R, + D: 0, + Attack: 20, + Kind: 0, + ChangeC: 0, + pixelLeft: d, + F: oGd.MB1, + }); + f.BulletClass.push(bullet); f.BulletEle.push( NewImg( 0, @@ -2019,11 +2018,16 @@ var CPlants = NewO({ "left:" + d + "px;top:" + - (GetY(b) - 50) + + (GetY(f.R) - 65) + "px;visibility:hidden;z-index:" + (3 * b + 2) ) ); + if (b % 3 == 0) { + f.BulletEle[f.BulletEle.length - 1].style.animation = `threepeaterDown ${1.25 * $User.Visitor.TimeStep / 10}s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards`; + } else if (b % 3 == 1) { + f.BulletEle[f.BulletEle.length - 1].style.animation = `threepeaterUp ${1.25 * $User.Visitor.TimeStep / 10}s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards`; + } } }, PrivateDie: function (a) {