From 7ca72f3bd577abfe5a2e3dd666a4cb8225886d67 Mon Sep 17 00:00:00 2001 From: jwklong Date: Tue, 18 Jan 2022 08:06:04 +0000 Subject: [PATCH] v0.1.3 secret --- index.html | 13 ++++++++----- js/components/changelog-tab.js | 4 ++++ js/components/secret-achievement-tab.js | 25 ++++++++++++++++++++++++ js/components/settings-menu.js | 2 +- js/data/computed.js | 26 +++++++++++++++++++++++++ js/data/game.js | 4 ++++ js/main.js | 5 +++++ js/mod.js | 6 +++--- 8 files changed, 76 insertions(+), 9 deletions(-) create mode 100644 js/components/secret-achievement-tab.js diff --git a/index.html b/index.html index 4aff219..e6a630e 100644 --- a/index.html +++ b/index.html @@ -32,14 +32,15 @@

ωEngine

-
- Au Automators - V Volatility - ℵ Aleph - R ReStack + Au Automators + V Volatility + Aleph + R ReStack + +
@@ -54,6 +55,7 @@

ωEngine

+ @@ -134,6 +136,7 @@

ωEngine

+ diff --git a/js/components/changelog-tab.js b/js/components/changelog-tab.js index f17f175..fdde75e 100644 --- a/js/components/changelog-tab.js +++ b/js/components/changelog-tab.js @@ -1,6 +1,10 @@ Vue.component("changelog-tab", { template: `
+ + + diff --git a/js/components/secret-achievement-tab.js b/js/components/secret-achievement-tab.js new file mode 100644 index 0000000..9e15d09 --- /dev/null +++ b/js/components/secret-achievement-tab.js @@ -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: `
+

You have unlocked {{achievementsUnlocked}} / {{totalAchievements}} Achievements.

+
+ +
+
+
` +}) \ No newline at end of file diff --git a/js/components/settings-menu.js b/js/components/settings-menu.js index c5e743d..cf17cec 100644 --- a/js/components/settings-menu.js +++ b/js/components/settings-menu.js @@ -184,7 +184,7 @@ Vue.component("settings-menu", {

Inspiration: Antimatter Dimensions by hevipelle, Infinite Layers by dan-simon

Original Game (Omega Layers) created by VeproGames

Powered by vue.js and break_eternity.min.js

-

` + mod.primaryName + mod.secondaryName + ` v` + mod.version +`

+

` + mod.primaryName + mod.secondaryName + ` v` + mod.engineVer +`

` + ((mod.primaryName + mod.secondaryName) !== "ωEngine" ? ("

Built with ωEngine v" + mod.engineVer + "

") : "") + ` ` diff --git a/js/data/computed.js b/js/data/computed.js index 77ed0db..4db9c85 100644 --- a/js/data/computed.js +++ b/js/data/computed.js @@ -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 + } }; \ No newline at end of file diff --git a/js/data/game.js b/js/data/game.js index ccd6a0e..ee50503 100644 --- a/js/data/game.js +++ b/js/data/game.js @@ -95,6 +95,10 @@ const game = { new Achievement("No turning back", "Go meta and be reborn", "Ω", () => 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 Ω without meta", "ωωωωω", () => game.highestLayer >= 47 && !game.metaLayer.active), + new Achievement("Volatility sucks!", "Get ε without volatility", "ωωωωω", () => game.highestLayer >= 47 && !game.metaLayer.active), + ], alephLayer: new AlephLayer(), restackLayer: new ReStackLayer(), metaLayer: new MetaLayer(), diff --git a/js/main.js b/js/main.js index 72acb03..53d2573 100644 --- a/js/main.js +++ b/js/main.js @@ -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) { diff --git a/js/mod.js b/js/mod.js index 17eed76..f003793 100644 --- a/js/mod.js +++ b/js/mod.js @@ -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"],