Skip to content

Commit

Permalink
webp all the apngs
Browse files Browse the repository at this point in the history
Signed-off-by: ClaytonTDM <[email protected]>
  • Loading branch information
ClaytonTDM committed Oct 8, 2024
1 parent 98fea6f commit 52ec95e
Show file tree
Hide file tree
Showing 33 changed files with 64 additions and 64 deletions.
Binary file added game/images/Plants/FireBulletHit.webp
Binary file not shown.
Binary file added game/images/Plants/PB10.webp
Binary file not shown.
Binary file added game/images/Plants/PB11.webp
Binary file not shown.
Binary file added game/images/Zombies/Balloon/balloonidle.webp
Binary file not shown.
Binary file added game/images/interface/Sun.webp
Binary file not shown.
Binary file added game/images/interface/ZombiesWon.webp
Binary file not shown.
Binary file added game/images/interface/background3.webp
Binary file not shown.
26 changes: 13 additions & 13 deletions game/js/CPlants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ var CPlants = NewO({
left: o + 28 + "px",
}).src = [
"images/Plants/PeaBulletHit.gif",
"images/Plants/FireBulletHit.png",
"images/Plants/FireBulletHit.webp",
][m]),
oSym.addTask(10, ClearChild, [j]))
: (n += l = !c ? 5 : -5) < oS.W && n > 100
Expand Down Expand Up @@ -1310,7 +1310,7 @@ var CPlants = NewO({
left: o + 28 + "px",
}).src = [
"images/Plants/PeaBulletHit.gif",
"images/Plants/FireBulletHit.png",
"images/Plants/FireBulletHit.webp",
][m]),
oSym.addTask(10, ClearChild, [j]))
: (n += l = !c ? 5 : -5) < oS.W && n > 100
Expand Down Expand Up @@ -1975,7 +1975,7 @@ var CPlants = NewO({
"images/Plants/Threepeater/Threepeater.gif",
"images/Plants/PB00.gif",
"images/Plants/PeaBulletHit.gif",
"images/Plants/FireBulletHit.png",
"images/Plants/FireBulletHit.webp",
],
AudioArr: [
"splat1",
Expand Down Expand Up @@ -2077,7 +2077,7 @@ var CPlants = NewO({
left: q + 28 + "px",
}).src = [
"images/Plants/PeaBulletHit.gif",
"images/Plants/FireBulletHit.png",
"images/Plants/FireBulletHit.webp",
][o]),
oSym.addTask(10, ClearChild, [l]))
: (p += n = !e ? 5 : -5) < oS.W && p > 100
Expand Down Expand Up @@ -2125,7 +2125,7 @@ var CPlants = NewO({
"images/Plants/Threepeater/Threepeater.gif",
"images/Plants/PB00.gif",
"images/Plants/PeaBulletHit.gif",
"images/Plants/FireBulletHit.png",
"images/Plants/FireBulletHit.webp",
],
AudioArr: [
"splat1",
Expand Down Expand Up @@ -2227,7 +2227,7 @@ var CPlants = NewO({
left: q + 28 + "px",
}).src = [
"images/Plants/PeaBulletHit.gif",
"images/Plants/FireBulletHit.png",
"images/Plants/FireBulletHit.webp",
][o]),
oSym.addTask(10, ClearChild, [l]))
: (p += n = !e ? 5 : -5) < oS.W && p > 100
Expand Down Expand Up @@ -2477,7 +2477,7 @@ var CPlants = NewO({
left: r + 28 + "px",
}).src = [
"images/Plants/PeaBulletHit.gif",
"images/Plants/FireBulletHit.png",
"images/Plants/FireBulletHit.webp",
][m]),
oSym.addTask(10, ClearChild, [m]))
: (q += o = !f ? 5 : -5) < oS.W && q > 100
Expand Down Expand Up @@ -3478,8 +3478,8 @@ BirthStyle: function (c, e, b, a) {
"images/Plants/Torchwood/Torchwood.gif",
"images/Plants/PB00.png",
"images/Plants/PB01.png",
"images/Plants/PB10.png",
"images/Plants/PB11.png",
"images/Plants/PB10.webp",
"images/Plants/PB11.webp",
"images/Plants/Torchwood/SputteringFire.gif",
],
AudioArr: ["firepea", "ignite", "ignite2"],
Expand Down Expand Up @@ -3542,7 +3542,7 @@ BirthStyle: function (c, e, b, a) {
](d, h, c),
(SetStyle(j, {
left: o + 28 + "px",
}).src = "images/Plants/FireBulletHit.png"),
}).src = "images/Plants/FireBulletHit.webp"),
oSym.addTask(75, ClearChild, [j]))
: (n += l = !c ? 5 : -5) < oS.W && n > 100
? ((j.style.left = (o += l) + "px"),
Expand Down Expand Up @@ -3588,8 +3588,8 @@ BirthStyle: function (c, e, b, a) {
"images/Plants/Torchwood/Torchwood.gif",
"images/Plants/PB00.png",
"images/Plants/PB01.png",
"images/Plants/PB10.png",
"images/Plants/PB11.png",
"images/Plants/PB10.webp",
"images/Plants/PB11.webp",
"images/Plants/Torchwood/SputteringFire.gif",
],
AudioArr: ["firepea", "ignite", "ignite2"],
Expand Down Expand Up @@ -3652,7 +3652,7 @@ BirthStyle: function (c, e, b, a) {
](d, h, c),
(SetStyle(j, {
left: o + 28 + "px",
}).src = "images/Plants/FireBulletHit.png"),
}).src = "images/Plants/FireBulletHit.webp"),
oSym.addTask(75, ClearChild, [j]))
: (n += l = !c ? 5 : -5) < oS.W && n > 100
? ((j.style.left = (o += l) + "px"),
Expand Down
6 changes: 3 additions & 3 deletions game/js/Cfunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ var $User = (function () {
}
let image = NewImg(
"",
"images/Zombies/Balloon/balloonidle.png",
"images/Zombies/Balloon/balloonidle.webp",
"position: absolute; display: block; left: 875px; z-index: 0;",
$("dPZ")
);
Expand Down Expand Up @@ -2554,7 +2554,7 @@ var $User = (function () {
),
oSym.addTask(800, DisappearSun, [g], 3));
ArSun[g] = { id: g, N: e, C: 1, left: h, top: d };
NewImg(g, "images/interface/Sun.png", c, EDAll, {
NewImg(g, "images/interface/Sun.webp", c, EDAll, {
onclick: function () {
ClickSun(this.id);
},
Expand Down Expand Up @@ -2726,7 +2726,7 @@ var $User = (function () {
PlayAudio("scream");
NewImg(
"iGameOver",
"images/interface/ZombiesWon.png",
"images/interface/ZombiesWon.webp",
"width:900px;height:600px;z-index:255",
EDAll,
{
Expand Down
4 changes: 2 additions & 2 deletions game/level/0.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ oS.Init({
a + "SelectorScreen_Almanac_" + b + ".png",
a + "Logo.png",
b + "LawnCleaner.png",
a + "ZombiesWon.png",
a + "ZombiesWon.webp",
a + "LargeWave.gif",
a + "FinalWave.gif",
a + "PrepareGrowPlants.png",
Expand All @@ -38,7 +38,7 @@ oS.Init({
a + "Almanac_PlantCard.png",
a + "Almanac_ZombieBack.jpg",
a + "Almanac_ZombieCard.png",
a + "ZombiesWon.png",
a + "ZombiesWon.webp",
a + "AwardScreen_Back.jpg",
a + "trophy.png",
a + "splash.png",
Expand Down
4 changes: 2 additions & 2 deletions game/level/161.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "常青之塔 11层",
LvlEName: 161,
Expand Down
4 changes: 2 additions & 2 deletions game/level/162.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "常青之塔 12层",
LvlEName: 162,
Expand Down
4 changes: 2 additions & 2 deletions game/level/163.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "常青之塔 13层",
LvlEName: 163,
Expand Down
4 changes: 2 additions & 2 deletions game/level/164.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "常青之塔 14层",
LvlEName: 164,
Expand Down
4 changes: 2 additions & 2 deletions game/level/165.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ oS.Init(
oWJY,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "常青之塔 15层",
LvlEName: 165,
Expand Down
4 changes: 2 additions & 2 deletions game/level/21.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ oS.Init(
var a = oSquash.prototype,
b = a.PicArr;
return [
"images/interface/background3.png",
"images/interface/background3.webp",
"images/interface/Dave.gif",
"images/interface/Dave2.gif",
"images/interface/Dave3.gif",
Expand All @@ -41,7 +41,7 @@ oS.Init(
Coord: 2,
SunNum: 50,
LF: [0, 1, 1, 2, 2, 1, 1],
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "Level 3-1",
LvlEName: 21,
Expand Down
4 changes: 2 additions & 2 deletions game/level/211.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
Coord: 2,
DKind: 0,
Expand Down
4 changes: 2 additions & 2 deletions game/level/212.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
Coord: 2,
DKind: 0,
Expand Down
4 changes: 2 additions & 2 deletions game/level/213.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
Coord: 2,
DKind: 0,
Expand Down
4 changes: 2 additions & 2 deletions game/level/214.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ oS.Init(
oDuckyTubeZombie1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
Coord: 2,
DKind: 0,
Expand Down
4 changes: 2 additions & 2 deletions game/level/215.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ oS.Init(
oWJY1,
],
PicArr: (function () {
return ["images/interface/background3.png"];
return ["images/interface/background3.webp"];
})(),
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
Coord: 2,
DKind: 0,
Expand Down
4 changes: 2 additions & 2 deletions game/level/22.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ oS.Init(
var a = oThreepeater.prototype,
b = a.PicArr;
return [
"images/interface/background3.png",
"images/interface/background3.webp",
b[a.CardGif],
b[a.NormalGif],
];
})(),
Coord: 2,
SunNum: 50,
LF: [0, 1, 1, 2, 2, 1, 1],
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "Level 3-2",
LvlEName: 22,
Expand Down
4 changes: 2 additions & 2 deletions game/level/23.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ oS.Init(
var a = oTangleKlep.prototype,
b = a.PicArr;
return [
"images/interface/background3.png",
"images/interface/background3.webp",
b[a.CardGif],
b[a.NormalGif],
];
})(),
Coord: 2,
SunNum: 50,
LF: [0, 1, 1, 2, 2, 1, 1],
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "Level 3-3",
LvlEName: 23,
Expand Down
4 changes: 2 additions & 2 deletions game/level/24.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ oS.Init(
var a = oJalapeno.prototype,
b = a.PicArr;
return [
"images/interface/background3.png",
"images/interface/background3.webp",
"images/interface/trophy.png",
b[a.CardGif],
b[a.NormalGif],
Expand All @@ -48,7 +48,7 @@ oS.Init(
Coord: 2,
SunNum: 50,
LF: [0, 1, 1, 2, 2, 1, 1],
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "Level 3-4",
LvlEName: 24,
Expand Down
4 changes: 2 additions & 2 deletions game/level/25.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ oS.Init(
var a = oSpikeweed.prototype,
b = a.PicArr;
return [
"images/interface/background3.png",
"images/interface/background3.webp",
b[a.CardGif],
b[a.NormalGif],
];
})(),
Coord: 2,
SunNum: 375,
LF: [0, 1, 1, 2, 2, 1, 1],
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "3-5 Special Level: Zombie Run",
LvlEName: 25,
Expand Down
4 changes: 2 additions & 2 deletions game/level/26.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ oS.Init(
var a = oSpikeweed.prototype,
b = a.PicArr;
return [
"images/interface/background3.png",
"images/interface/background3.webp",
b[a.CardGif],
b[a.NormalGif],
];
})(),
Coord: 2,
SunNum: 50,
LF: [0, 1, 1, 2, 2, 1, 1],
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "Level 3-6",
LvlEName: 26,
Expand Down
4 changes: 2 additions & 2 deletions game/level/27.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ oS.Init(
var a = oTorchwood.prototype,
b = a.PicArr;
return [
"images/interface/background3.png",
"images/interface/background3.webp",
b[a.CardGif],
b[a.NormalGif],
];
})(),
Coord: 2,
SunNum: 50,
LF: [0, 1, 1, 2, 2, 1, 1],
backgroundImage: "images/interface/background3.png",
backgroundImage: "images/interface/background3.webp",
CanSelectCard: 1,
LevelName: "Level 3-7",
LvlEName: 27,
Expand Down
Loading

0 comments on commit 52ec95e

Please sign in to comment.