Skip to content

Commit

Permalink
achievements and font fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonTDM committed Jul 17, 2024
1 parent ebac6df commit 247a4e2
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 12 deletions.
44 changes: 34 additions & 10 deletions game/Custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
font-family: "briannetod";
src: url("fonts/briannetod.ttf");
}
/* dwarvesc.ttf */
/* dwarventodcraft.ttf */
@font-face {
font-family: "dwarvesc";
src: url("fonts/dwarvesc.ttf");
font-family: "dwarventodcraft";
src: url("fonts/dwarventodcraft.ttf");
}
/* houseofterrormedium.ttf */
@font-face {
Expand Down Expand Up @@ -81,7 +81,7 @@
#dHandBookZ > div.title,
#dHandBookZombieName,
#dNewPlantTitle {
font-family: "dwarvesc" !important;
font-family: "dwarventodcraft" !important;
}
.hidden {
display: none;
Expand All @@ -95,10 +95,13 @@
}
#dHandBookZombieName {
color: #06bd00 !important;
text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1),
/* text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1),
-1px -1.5px 0px rgba(0, 0, 0, 0.7) !important;
*/
text-shadow: #2e293e -1px -2px, #2e293e -2px 0px, #37354b 1px -2px,
#757692 2px 0px, #757692 1px 2px, #757692 2px 2px !important;
font-size: x-large !important;
-webkit-text-stroke: 0.2px rgb(0 0 0 / 27%) !important;
/* -webkit-text-stroke: 0.2px rgb(0 0 0 / 27%) !important; */
margin-left: -10px !important;
margin-top: 4px;
}
Expand All @@ -112,7 +115,7 @@
border-bottom: 0 !important;
background: url("images/SeedChooser_Button.png") no-repeat !important;
background-size: contain !important;
font-family: dwarvesc !important;
font-family: dwarventodcraft !important;
color: #d0932b !important;
font-size: 18px !important;
width: 150px !important;
Expand All @@ -125,10 +128,13 @@
}
#dNewPlantName {
color: #d0932b !important;
font-family: dwarvesc !important;
font-family: dwarventodcraft !important;
text-transform: uppercase;
text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1),
/* text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1),
-1px -1.5px 0px rgba(0, 0, 0, 0.7) !important;
*/
text-shadow: #2e293e -1px -2px, #2e293e -2px 0px, #37354b 1px -2px,
#757692 2px 0px, #757692 1px 2px, #757692 2px 2px !important;
-webkit-text-stroke: 0.2px rgb(0 0 0 / 27%) !important;
margin-top: -23px;
}
Expand All @@ -147,8 +153,11 @@
}
#dHandBookPlantName {
color: #d0932b !important;
text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1),
/* text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1),
-1px -1.5px 0px rgba(0, 0, 0, 0.7) !important;
*/
text-shadow: #2e293e -1px -2px, #2e293e -2px 0px, #37354b 1px -2px,
#757692 2px 0px, #757692 1px 2px, #757692 2px 2px !important;
font-size: x-large !important;
-webkit-text-stroke: 0.2px rgb(0 0 0 / 27%) !important;
margin-left: -10px !important;
Expand Down Expand Up @@ -225,3 +234,18 @@ label {
2px -2px 0px #000000, 0px -2px 0px #000000, -2px -2px 0px #000000,
-2px 0px 0px #000000, -2px 2px 0px #000000 !important;
}

#iSurfaceBackground .trophy {
position: absolute;
background: url(images/interface/trophy.png) no-repeat;
background-size: contain !important;
left: 469px;
top: 468px;
width: 99px;
height: 99px;
cursor: pointer;
}

#iSurfaceBackground .trophy:hover {
filter: brightness(1.1);
}
Binary file added game/fonts/dwarventodcraft.ttf
Binary file not shown.
5 changes: 3 additions & 2 deletions game/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
ondragstart="return false"
onselectstart="return false"
>
<script src="oneko.js"></script>
<script src="oneko.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=G-CYNM3PNQXE"></script> -->
Expand Down Expand Up @@ -218,6 +218,7 @@
onmouseout="this.style.backgroundPosition='top'"
onclick="ViewHandBook()"
></div>
<div class="trophy" onclick="SelectModal('achievements')" style="display: none;"></div>
<div id="ZombieHand"></div>
<div id="dNameDiv0">
<div
Expand Down Expand Up @@ -1070,8 +1071,8 @@
margin-top: 544px;
left: 50%;
margin-left: -400px;
display: none;
"
onclick="alert('Warning: This page is a work in progress');window.open('cl.html', '_blank')"
>
Changelog
</button>
Expand Down
Binary file added game/images/interface/Achievement-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/interface/Achievement0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/interface/Achievement1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions game/level/achievements.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
var customplants;
var customtitle = "Achievements";
var customcolumns = 4;
var customsun = 150;
oS.Init({
PicArr: (function () {
a = "images/interface/";
return [
ShadowPNG,
a + "BackButton.png",
a + "Achievement0.png",
a + "Achievement-1.png",
a + "Achievement1.png",
];
})(),
LevelName: "Achievements",
LevelEName: 150,
ShowScroll: 1,
LoadMusic: "ChooseYourSeeds",
StartGameMusic: "ChooseYourSeeds",
AudioArr: ["ChooseYourSeeds", "pvzs"],
backgroundImage: "images/interface/Achievements_Background.png",
LoadAccess: function (a) {
NewImg(
"imgSF",
"images/interface/BackButton.png",
"left:785px;top:530px",
EDAll,
{
onclick: function () {
SelectModal(0);
SetBlock($("dSurface"), $("iSurfaceBackground"));
},
}
);
NewImg(
"imgSF",
"images/interface/Achievement0.png",
"left:50px;top:130px",
EDAll,
{
onclick: function () {
SelectModal("" + "izombie1" + "");
},
}
);
NewImg(
"imgSF",
"images/interface/Achievement-1.png",
"left:200px;top:130px",
EDAll,
{
onclick: function () {
SelectModal("" + "izombie2" + "");
},
}
);
NewImg(
"imgSF",
"images/interface/Achievement1.png",
"left:350px;top:130px;filter:brightness(0.8);opacity:0.55",
EDAll,
{
onclick: function () {
SelectModal("" + "izombie3" + "");
},

}
);
},
});

0 comments on commit 247a4e2

Please sign in to comment.