Skip to content

Commit

Permalink
v0.1.3
Browse files Browse the repository at this point in the history
secret
  • Loading branch information
jwklong committed Jan 18, 2022
1 parent a8ff5a7 commit 7ca72f3
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 9 deletions.
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
<button @click="settings.tab = 'Layers'"><img alt="L" class="inline" src="images/layers.png"/> Layers</button>
<button @click="settings.tab = 'Achievements'"><img alt="A" class="inline" src="images/star.svg"/> Achievements</button>
<button @click="settings.tab = 'Guide'"><img alt="G" class="inline" src="images/information-circle.svg"/> Guide</button>
<button @click="settings.tab = 'Changelog'"><img alt="C" class="inline" src="favicon.png"> Changelog</button>
<button @click="settings.tab = 'Settings'"><img alt="S" class="inline" src="images/settings.svg"/> Settings</button>
</div>
<div>
<layer-locked-button v-if="!isMeta" @click="settings.tab = 'Automators'" :layerid="1"><img alt="Au" class="inline" src="images/hardware-chip.svg"/> Automators</layer-locked-button>
<layer-locked-button v-if="!isMeta" @click="settings.tab = 'Volatility'" :layerid="2"><img alt="V" class="inline" src="images/save.svg"/> Volatility</layer-locked-button>
<layer-locked-button v-if="!isMeta" @click="settings.tab = 'Aleph'" :layerid="3">ℵ Aleph</layer-locked-button>
<layer-locked-button @click="settings.tab = 'ReStack'" :layerid="9"><img alt="R" class="inline" src="images/layercoin.png"/> ReStack</layer-locked-button>
<layer-locked-button v-if="!isMeta && isLayerCategory === 'Layers'" @click="settings.tab = 'Automators'" :layerid="1"><img alt="Au" class="inline" src="images/hardware-chip.svg"/> Automators</layer-locked-button>
<layer-locked-button v-if="!isMeta && isLayerCategory === 'Layers'" @click="settings.tab = 'Volatility'" :layerid="2"><img alt="V" class="inline" src="images/save.svg"/> Volatility</layer-locked-button>
<layer-locked-button v-if="!isMeta && isLayerCategory === 'Layers'" @click="settings.tab = 'Aleph'" :layerid="3"><span class="aleph"></span> Aleph</layer-locked-button>
<layer-locked-button v-if="isLayerCategory === 'Layers'" @click="settings.tab = 'ReStack'" :layerid="9"><img alt="R" class="inline" src="images/layercoin.png"/> ReStack</layer-locked-button>
<button v-if="isLayerCategory === 'Guide'" @click="settings.tab = 'Changelog'"><img alt="C" class="inline" src="favicon.png"> Changelog</button>
<button v-if="isLayerCategory === 'Achievements'" @click="settings.tab = 'Secret Achievements'"><img alt="Sa" class="inline" src="images/star.svg"> Secret Achievements</button>
</div>
</nav>
<news-ticker v-if="settings.newsTicker"></news-ticker>
Expand All @@ -54,6 +55,7 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
<settings-menu v-if="settings.tab === 'Settings'"></settings-menu>
<volatility-tab v-if="settings.tab === 'Volatility'"></volatility-tab>
<achievement-tab v-if="settings.tab === 'Achievements'"></achievement-tab>
<secret-achievement-tab v-if="settings.tab === 'Secret Achievements'"></secret-achievement-tab>
<automator-tab v-if="settings.tab === 'Automators'"></automator-tab>
<aleph-layer v-if="settings.tab === 'Aleph'"></aleph-layer>
<restack-tab v-if="settings.tab === 'ReStack'"></restack-tab>
Expand Down Expand Up @@ -134,6 +136,7 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
<script src="js/components/news-ticker.js"></script>
<script src="js/components/achievement.js"></script>
<script src="js/components/achievement-tab.js"></script>
<script src="js/components/secret-achievement-tab.js"></script>
<script src="js/components/notification.js"></script>
<script src="js/components/notification-container.js"></script>
<script src="js/components/guide-item.js"></script>
Expand Down
4 changes: 4 additions & 0 deletions js/components/changelog-tab.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Vue.component("changelog-tab", {
template: `<div class="changelog-tab">
<guide-item>
<template v-slot:title>v0.1.3</template>
<template v-slot:text>Parts of UI are redesigned, and new Secret Achievements!
</template>
<guide-item>
<template v-slot:title>v0.1.2</template>
<template v-slot:text>Adds Comfortaa font and a automator to automate buying automators! (unlocked when meta upgrade bought)
</template>
Expand Down
25 changes: 25 additions & 0 deletions js/components/secret-achievement-tab.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Vue.component('secret-achievement-tab', {
data: function ()
{
return {
secretAchievements: game.secretAchievements
}
},
computed: {
achievementsUnlocked: function()
{
return this.secretAchievements.filter(ach => ach.isCompleted).length;
},
totalAchievements: function()
{
return this.achievementsUnlocked == this.secretAchievements.length ? this.achievementsUnlocked : "?";
}
},
template: `<div class="achievement-tab">
<p>You have unlocked {{achievementsUnlocked}} / {{totalAchievements}} Achievements.</p>
<div class="achievements">
<achievement v-for="(a, i) in secretAchievements" v-if="a.isCompleted === true" :key="i" :achievement="a"></achievement>
</div>
</div>
</div>`
})
2 changes: 1 addition & 1 deletion js/components/settings-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Vue.component("settings-menu", {
<p>Inspiration: Antimatter Dimensions by hevipelle, Infinite Layers by dan-simon</p>
<p>Original Game (Omega Layers) created by VeproGames</p>
<p>Powered by vue.js and break_eternity.min.js</p>
<p>` + mod.primaryName + mod.secondaryName + ` v` + mod.version +`</p>
<p>` + mod.primaryName + mod.secondaryName + ` v` + mod.engineVer +`</p>
` + ((mod.primaryName + mod.secondaryName) !== "ωEngine" ? ("<p>Built with ωEngine v" + mod.engineVer + "</p>") : "") + `
</div>
</div>`
Expand Down
26 changes: 26 additions & 0 deletions js/data/computed.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,30 @@ const computed = {
{
return game.metaLayer.active;
},
isLayerCategory: function()
{
category = null
switch(game.settings.tab)
{
case "Layers":
case "Automators":
case "Volatility":
case "Aleph":
case "Restack":
category = "Layers";
break;
case "Guide":
case "Changelog":
category = "Guide";
break;
case "Achievements":
case "Secret Achievements":
category = "Achievements";
break;
case "Settings":
category = "Settings";
break;
}
return category
}
};
4 changes: 4 additions & 0 deletions js/data/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ const game = {
new Achievement("No turning back", "Go meta and be reborn", "&Omega;", () => game.metaLayer.active),
new Achievement("Endgame", "Reach layer 1.8e308 and finish "+mod.primaryName+mod.secondaryName, "Ʊ", () => game.metaLayer.layer.gte(Infinities[0])),
],
secretAchievements: [
new Achievement("Meta sucks!", "Get &Omega; without meta", "&omega;&omega;&omega;&omega;&omega;", () => game.highestLayer >= 47 && !game.metaLayer.active),
new Achievement("Volatility sucks!", "Get &epsilon; without volatility", "&omega;&omega;&omega;&omega;&omega;", () => game.highestLayer >= 47 && !game.metaLayer.active),
],
alephLayer: new AlephLayer(),
restackLayer: new ReStackLayer(),
metaLayer: new MetaLayer(),
Expand Down
5 changes: 5 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,15 @@ function tickGame(seconds)
{
game.automators[k].tick(seconds);
}

for(const ach of game.achievements)
{
ach.tick(seconds);
}
for(const sAch of game.secretAchievements)
{
sAch.tick(seconds);
}

for(const n of game.notifications)
{
Expand Down
6 changes: 3 additions & 3 deletions js/mod.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var mod = {
primaryName: "ω",
secondaryName: "Engine",
version: "0.1.2",
engineVer: "0.1.2", //DO NOT MODIFY
version: "1.0.0",
engineVer: "0.1.3", //DO NOT MODIFY
themes: [
["Dark", "css/themes/dark.css"],
["Light", "https://veprogames.github.io/omega-layers/css/main.css"],
["Light (Legacy)", "https://veprogames.github.io/omega-layers/css/main.css"],
["Neon", "css/themes/neon.css"],
["Godot Blue", "css/themes/darkblue.css"],
["Halloween", "css/themes/spooky.css"],
Expand Down

0 comments on commit 7ca72f3

Please sign in to comment.