Skip to content

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong committed Feb 13, 2022
1 parent 0be01e7 commit 66b4837
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ωEngine v0.2.0
# ωEngine v0.2.1
### A engine made from Ω-Lλγers built for making mods
#### <a href='https://veprogames.github.io/omega-layers'>Ω-Lλγers</a> (the original) by VeproGames
#### Play the engine <a href='https://jwklong.github.io/omega-engine'>now</a>
Expand Down
15 changes: 8 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,23 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
<!-- <script src="https://cdn.jsdelivr.net/npm/vue@2"></script> -->

<script>
const Infinities = [new Decimal("1.8e308"), new Decimal("1.8e30800"), new Decimal("1.8e308000000")]
const Infinities = [new Decimal("1.8e308"), new Decimal("1.8e30008"), new Decimal("1.8e300000008"), new Decimal("ee38")]
var LETTERS = "αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ";
var ORDERS = "ψϝϛͱϻϙͳϸ";
var GIANTS = ["<span class='flipped-v'>Ω</span>", "<span class='flipped-v'>Ω</span><sup>2</sup>","<span class='flipped-v'>Ω</span><sup>3</sup>"]
var GIANTS = ["Ʊ", "Ʊ<sup>2</sup>",<sup>3</sup>","Ʊ<sup>2<sup>2</sup></sup>"]
</script>

<script src="js/debugclass.js"></script>
<script src="js/mod.js"></script>

<script src="js/debug/test.js"></script>

<script src="js/vocabulary.js"></script>
<script src="js/classes/random.js"></script>
<script src="js/classes/utils.js"></script>
<script src="js/classes/featureunlockmanager.js"></script>

<script src="js/debugclass.js"></script>
<script src="js/mod.js"></script>

<script src="js/debug/test.js"></script>
<script src="js/debug/test2.js"></script>

<script src="js/classes/generator.js"></script>
<script src="js/classes/powergenerator.js"></script>
<script src="js/classes/upgrade.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion js/break_eternity.min.js

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions js/classes/prestigelayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class PrestigeLayer
}
return GIANTS[1] + "<sup>" + PrestigeLayer.getNameForLayer(layer.div(Infinities[1]).floor().sub(1)) + "</sup>";
}
if(layer instanceof Decimal && layer.gte(Infinities[2]))
if(layer instanceof Decimal && layer.gte(Infinities[2]) && !layer.gte(Infinities[3]))
{
const infinityOrder = Decimal.log(layer, Infinities[2]).floor();
if(infinityOrder.gte(6))
Expand All @@ -85,6 +85,16 @@ class PrestigeLayer
}
return GIANTS[2] + "<sup>" + PrestigeLayer.getNameForLayer(layer.div(Infinities[2]).floor().sub(1)) + "</sup>";
}
if(layer instanceof Decimal && layer.gte(Infinities[3]))
{
const infinityOrder = Decimal.log(layer, Infinities[3]).floor();
if(infinityOrder.gte(6))
{
const exp = PrestigeLayer.getNameForLayer(layer.div(Decimal.pow(Infinities[3], infinityOrder)).floor().sub(1));
return "(" + GIANTS[3] + "↑↑" + functions.formatNumber(infinityOrder, 3, 0, 1e9) + ")<sup>" + exp + "</sup>";
}
return GIANTS[3] + "<sup>" + PrestigeLayer.getNameForLayer(layer.div(Infinities[3]).floor().sub(1)) + "</sup>";
}
const letters = LETTERS;
const orders = ORDERS;
const totalCombinations = (orders.length + 2) * letters.length;
Expand Down Expand Up @@ -774,4 +784,4 @@ class PrestigeLayer
}
}
}
}
};
2 changes: 1 addition & 1 deletion js/components/changelog-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Vue.component("changelog-tab", {
template: `<div class="changelog-tab">
<guide-item>
<template v-slot:title>v1.0.0</template>
<template v-slot:text>Initial Release
<template v-slot:text>When modding, edit this when you make new releases!
</template>
</guide-item>
</div>`
Expand Down
8 changes: 7 additions & 1 deletion js/components/debug-tab.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Vue.component("debug-tab", {
template: `<div class="guide-tab">
` + mod.debugClasses[0].getInfo() + `
<guide-item>
<template v-slot:title>All buttons</template>
<template v-slot:text>All buttons from debug menu items<br>` + mod.debugClasses[0].getButtons() + mod.debugClasses[1].getButtons() + `
</template>
</guide-item>
` + mod.debugClasses[0].getInfo() +
mod.debugClasses[1].getInfo() + `
</div>`
})
5 changes: 5 additions & 0 deletions js/components/engine-tab.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Vue.component("engine-tab", {
template: `<div class="changelog-tab">
<guide-item>
<template v-slot:title>v0.2.1</template>
<template v-slot:text>All buttons menu in debug mode, new random layer names and 4th infinity!
</template>
</guide-item>
<guide-item>
<template v-slot:title>v0.2.0</template>
<template v-slot:text>Debug mode, game changelog (different to engine changelog), minecraft font, link to the community server (which you should join) and alot more!
</template>
Expand Down
4 changes: 4 additions & 0 deletions js/components/layer-colored-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Vue.component("layer-colored-text", {
textColor: function()
{
const lid = new Decimal(this.getLayerId());
if(this.getLayerId() instanceof Decimal && this.getLayerId().gte(Infinities[3]))
{
return "#ffffff";
}
if(this.getLayerId() instanceof Decimal && this.getLayerId().gte(Infinities[2]))
{
return "#ff9100";
Expand Down
4 changes: 4 additions & 0 deletions js/data/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ const functions = {
textColor: function(layer)
{
const lid = new Decimal(layer);
if(lid.gte(Infinities[3]))
{
return "#ffffff";
}
if(lid.gte(Infinities[2]))
{
return "#ff9100";
Expand Down
6 changes: 6 additions & 0 deletions js/debug/test2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mod.debugClasses.push(new DebugClass("test2.js", "another test", "0.0.0", [
[
"test button 3",
'console.error("test overload!!!")'
]
]))
18 changes: 12 additions & 6 deletions js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var mod = {
primaryName: "ω",
secondaryName: "Engine",
version: "1.0.0",
engineVer: "0.2.0", //DO NOT MODIFY
debugMode: false,
engineVer: "0.2.1", //DO NOT MODIFY
debugMode: true,
themes: [
["Dark", "css/themes/dark.css"],
["Light (Legacy)", "https://veprogames.github.io/omega-layers/css/main.css"],
Expand All @@ -17,25 +17,31 @@ var mod = {
[
"αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ",
"ψϝϛͱϻϙͳϸ",
["Ʊ", "Ʊ<sup>2</sup>","Ʊ<sup>3</sup>"]
["Ʊ", "Ʊ<sup>2</sup>","Ʊ<sup>3</sup>","Ʊ<sup>2<sup>2</sup></sup>"]
]],
["Alphabet",
[
"abcdefghijklmnopqrstuvwxyz",
"123456789",
["A","B","C"]
"ABCD"
]],
["Symbols",
[
'!"£$%^&*;:@',
"<,[{}].>",
["+","×","÷"]
"+×÷^"
]],
["Binary",
[
'01',
"01",
["2","3","4"]
"2345"
]],
["Random",
[
Utils.createRandomWord(10),
Utils.createRandomWord(10),
[Utils.createRandomWord(2),Utils.createRandomWord(3),Utils.createRandomWord(4),Utils.createRandomWord(5)]
]]
],
fonts: [
Expand Down
Loading

0 comments on commit 66b4837

Please sign in to comment.