Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong committed Dec 29, 2023
1 parent 8959042 commit 3c0f1a4
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 22 deletions.
8 changes: 8 additions & 0 deletions css/fonts/scp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@font-face{
font-family: scp-font;
src: url('../../fonts/scp.ttf');
}

:root{
--primary-font: scp-font
}
30 changes: 30 additions & 0 deletions css/themes/modern.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
:root{
--background-body: #111;
--background-header: #222;
--color-base: #333;
--color-primary: #f90;
--color-hover: #383838;
--color-hover-strong: #444;
--color-contrast: #fff;
--color-success: #060;
--button-dark: #000;
--notification--error: #a20;
--notification--success: #3a0;
--notification--special: #a60;
}

.omega {
display: inline-block;
transform: scale(1.5,1);
margin-right: 0.2em;
}

button, .settings-panel {
border: none !important;
border-radius: 12px;
background-color: var(--color-base);
}

.guide-item .header {
border-bottom: none;
}
Binary file added fonts/scp.ttf
Binary file not shown.
10 changes: 7 additions & 3 deletions js/classes/prestigelayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,20 @@ class PrestigeLayer
}
}
}
static getNameForLayer(layer)
static getNameForLayer(layer, negated = false)
{
let nLayer = layer;
if(layer instanceof Decimal)
{
nLayer = layer.toNumber();
}
if(layer instanceof Decimal && !layer.gte(0))
if(layer instanceof Decimal && !layer.gte(0) && !negated)
{
return "-" + PrestigeLayer.getNameForLayer(new Decimal("-1").minus(nLayer))
return "-" + PrestigeLayer.getNameForLayer(new Decimal("-1").minus(nLayer), true)
}
if(layer instanceof Decimal && layer.round().neq(layer)) {
if (negated) layer = layer.add(1)
return "𐌒≠" + layer.toString()
}
if(layer instanceof Decimal && layer.gte(mod.Infinities[0]) && !layer.gte(mod.Infinities[1]))
{
Expand Down
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>v1.0.1<</template>
<template v-slot:text>Support for layer names, a new Modern theme, the Source Code Pro font, what more could you ask for!
</template>
</guide-item>
<guide-item>
<template v-slot:title><h1>v1.0.0</h1></template>
<template v-slot:text>The biggest update yet! Adds many new debug mode features, two new themes (one replacing the old light theme), new button stylings, latin layer names, updated layer name finder, ubuntu font, and alot of bug fixing!
</template>
Expand Down
13 changes: 8 additions & 5 deletions js/components/layer-colored-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ Vue.component("layer-colored-text", {
},
textGlow: function()
{
const thickness = 0.025 * this.getLayerId();
var layer = this.getLayerId()
let thickness = 0.025 * layer;
if (thickness < 0) thickness = .4
layer = Math.abs(layer)
const t = [Math.max(0, Math.min(0.7, thickness)), Math.max(0, Math.min(0.7, thickness / 2)),
Math.max(0, Math.min(0.7, Math.max(0, thickness - 0.3) / 4))];
const color = "currentcolor";
return "0px 0px " + t[0] + "em currentcolor"+
",0px 0px " + t[1] + "em currentcolor"+
",0px 0px " + t[2] + "em currentcolor";
var color = this.textColor
return "0px 0px " + t[0] + "em "+color+
",0px 0px " + t[1] + "em "+color+
",0px 0px " + t[2] + "em "+color;
}
},
methods:
Expand Down
6 changes: 3 additions & 3 deletions js/components/settings-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Vue.component("settings-menu", {
<div class="credits">
<h2>Layer Info Finder</h2><br>
<h3>Layer ID:</h3>
<input type="input" min="1" max="Infinity" id="layerID">
<input type="input" value="0" id="layerID">
<button onclick="functions.layerFinder(document.getElementById('layerID').value)">Get Layer Info</button><br>
<h3>Output:</h3><br>
<h4>Layer: <a id="layernameoutput"></a></h4><br>
Expand All @@ -184,8 +184,8 @@ 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>
` + ((mod.primaryName + mod.secondaryName) !== "ωEngine" ? ("<p>Built with ωEngine v" + mod.engineVer + "</p>") : "") + `
<p>${mod.primaryName + mod.secondaryName} v${mod.primaryName + mod.secondaryName === "ωEngine" ? mod.engineVer : mod.version}</p>
<p>${mod.primaryName + mod.secondaryName !== "ωEngine" ? "Made with ωEngine v" + mod.engineVer : ""}</p>
</div>
</div>`
})
11 changes: 7 additions & 4 deletions js/data/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,15 @@ const functions = {
},
textGlow: function(layer)
{
const thickness = 0.025 * layer;
let thickness = 0.025 * layer;
if (thickness < 0) thickness = .4
layer = layer.abs()
const t = [Math.max(0, Math.min(0.7, thickness)), Math.max(0, Math.min(0.7, thickness / 2)),
Math.max(0, Math.min(0.7, Math.max(0, thickness - 0.3) / 4))];
return "0px 0px " + t[0] + "em currentcolor"+
",0px 0px " + t[1] + "em currentcolor"+
",0px 0px " + t[2] + "em currentcolor";
var color = this.textColor(layer)
return "0px 0px " + t[0] + "em "+color+
",0px 0px " + t[1] + "em "+color+
",0px 0px " + t[2] + "em "+color;
},
layerFinder: function(layer) {
layer = new Decimal(layer)
Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let localTimer = 0;

let keyMap = [];
let tabMap = {};
const textBoxFocused = false;
let textBoxFocused = false;

const app = new Vue({
el: "#app",
Expand Down
10 changes: 4 additions & 6 deletions js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ const mod = {
primaryName: "ω",
secondaryName: "Engine",
version: "1.0.0",
engineVer: "1.0.0 P1", //DO NOT MODIFY
engineVer: "1.0.1", //DO NOT MODIFY
debugMode: false,
Infinities: [new Decimal(2).pow(1024), new Decimal("1.8e30008"), new Decimal("1.8e300000008"), new Decimal("ee38")],
themes: [
["Dark", "css/themes/dark.css"],
["Dark Alt (by Jeehan2561)", "css/themes/darkalt.css"],
["Modern", "css/themes/modern.css"],
["Light", "css/themes/light.css"],
["Neon", "css/themes/neon.css"],
["Godot Blue", "css/themes/darkblue.css"],
Expand Down Expand Up @@ -52,8 +53,10 @@ const mod = {
[Utils.createRandomWord(2, new Random(Math.floor(Date.now()/3)).nextInt()),Utils.createRandomWord(3, new Random(Math.floor(Date.now()/4)).nextInt()),Utils.createRandomWord(4, new Random(Math.floor(Date.now()/5)).nextInt()),Utils.createRandomWord(5, new Random(Math.floor(Date.now()/6)).nextInt())]
]]
],
layerNamePlaceholder: "𐌒",
fonts: [
["Monospace Typewriter", "css/fonts/typespace.css"],
["Source Code Pro", "css/fonts/scp.css"],
["Comic Sans", "css/fonts/comic.css"],
["Arial", "css/fonts/arial.css"],
["Roboto", "css/fonts/roboto.css"],
Expand All @@ -67,11 +70,6 @@ const mod = {
["Save 3", "3"],
["Save 4", "4"],
],
extraNames: [
this.primaryName+this.secondaryName, //title name
this.primaryName+this.secondaryName, //save name
this.primaryName+this.secondaryName, //save .txt name
],
debugClasses: []
}

Expand Down

0 comments on commit 3c0f1a4

Please sign in to comment.