Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong committed Feb 12, 2022
1 parent 172210a commit 0be01e7
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 40 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ωEngine
### A engine made from Ω-Lλγers built for modding
#### <a href='https://veprogames.github.io/omega-layers'>Ω-Lλγers</a> by VeproGames
#### Play this <a href='https://jwklong.github.io/omega-engine'>now</a>
# ωEngine v0.2.0
### 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>
##### Feel free to fork this, either to make your own mods or make pull requests with new features
8 changes: 8 additions & 0 deletions css/fonts/minecraft.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@font-face{
font-family: minecraft;
src: url('../../fonts/minecraft.otf');
}

:root{
--primary-font: minecraft
}
Binary file added fonts/minecraft.otf
Binary file not shown.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
<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 === 'Guide'" @click="settings.tab = 'Engine Changelog'"><img alt="EC" class="inline" src="https://jwklong.github.io/omega-engine/favicon.png"> Engine Changelog</button>
<button v-if="isLayerCategory === 'Achievements'" @click="settings.tab = 'Secret Achievements'"><img alt="Sa" class="inline" src="images/star.svg"> Secret Achievements</button>
<button v-if="isLayerCategory === 'Settings' && isDebug" @click="settings.tab = 'Debug'"><img alt="S" class="inline" src="images/settings.svg"/> Debug</button>
</div>
</nav>
<news-ticker v-if="settings.newsTicker"></news-ticker>
Expand All @@ -61,11 +63,14 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
<restack-tab v-if="settings.tab === 'ReStack'"></restack-tab>
<guide-tab v-if="settings.tab === 'Guide'"></guide-tab>
<changelog-tab v-if="settings.tab === 'Changelog'"></changelog-tab>
<engine-tab v-if="settings.tab === 'Engine Changelog'"></engine-tab>
<debug-tab v-if="settings.tab === 'Debug'"></debug-tab>
</main>
<footer>
<div>
<a href="https://veprogames.github.io/omega-layers" target="_blank">Original Game</a>
<a href="https://github.com/jwklong/omega-engine" target="_blank">Source Code</a>
<a href="https://discord.gg/xF9KYsYsMA" target="_blank">Community Server</a>
</div>
</footer>
</div>
Expand All @@ -87,8 +92,11 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
var GIANTS = ["<span class='flipped-v'>Ω</span>", "<span class='flipped-v'>Ω</span><sup>2</sup>","<span class='flipped-v'>Ω</span><sup>3</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>
Expand Down Expand Up @@ -142,6 +150,8 @@ <h2 id="superImportantTitle"><span class="omega">ω</span>Engine</h2>
<script src="js/components/guide-item.js"></script>
<script src="js/components/guide-tab.js"></script>
<script src="js/components/changelog-tab.js"></script>
<script src="js/components/engine-tab.js"></script>
<script src="js/components/debug-tab.js"></script>

<script src="js/data/functions.js"></script>
<script src="js/data/computed.js"></script>
Expand Down
33 changes: 2 additions & 31 deletions js/components/changelog-tab.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
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>
</guide-item>
<guide-item>
<template v-slot:title>v0.1.1</template>
<template v-slot:text>Fixes a few bugs and adds save management, now you can have more then 1 save stored!
</template>
</guide-item>
<guide-item>
<template v-slot:title>v0.1.0</template>
<template v-slot:text>First public build, with layer names, fonts, the changelog and so much more!
</template>
</guide-item>
<guide-item>
<template v-slot:title>v0.0.3</template>
<template v-slot:text>Private Build
</template>
</guide-item>
<guide-item>
<template v-slot:title>v0.0.2</template>
<template v-slot:text>Private Build
</template>
</guide-item>
<guide-item>
<template v-slot:title>v0.0.1</template>
<template v-slot:text>Private Build
<template v-slot:title>v1.0.0</template>
<template v-slot:text>Initial Release
</template>
</guide-item>
</div>`
Expand Down
5 changes: 5 additions & 0 deletions js/components/debug-tab.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Vue.component("debug-tab", {
template: `<div class="guide-tab">
` + mod.debugClasses[0].getInfo() + `
</div>`
})
34 changes: 34 additions & 0 deletions js/components/engine-tab.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Vue.component("engine-tab", {
template: `<div class="changelog-tab">
<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>
</guide-item>
<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>
<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>
</guide-item>
<guide-item>
<template v-slot:title>v0.1.1</template>
<template v-slot:text>Fixes a few bugs and adds save management, now you can have more then 1 save stored!
</template>
</guide-item>
<guide-item>
<template v-slot:title>v0.1.0</template>
<template v-slot:text>First public build, with layer names, fonts, the changelog and so much more!
</template>
</guide-item>
<guide-item>
<template v-slot:title>v0.0.1-v0.0.3</template>
<template v-slot:text>Private Builds
</template>
</guide-item>
</div>`
})
8 changes: 7 additions & 1 deletion js/data/computed.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const computed = {
{
return game.metaLayer.active;
},
isDebug: function()
{
return mod.debugMode
},
isLayerCategory: function()
{
category = null
Expand All @@ -17,16 +21,18 @@ const computed = {
break;
case "Guide":
case "Changelog":
case "Engine Changelog":
category = "Guide";
break;
case "Achievements":
case "Secret Achievements":
category = "Achievements";
break;
case "Settings":
case "Debug":
category = "Settings";
break;
}
return category
}
},
};
1 change: 1 addition & 0 deletions js/data/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ const game = {
font: mod.fonts[0][1],
saveInfo: "i have no idea"
},
console: console
};
const initialGame = functions.getSaveString();
10 changes: 10 additions & 0 deletions js/debug/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
mod.debugClasses.push(new DebugClass("test.js", "test", "0.0.0", [
[
"test button",
'console.log("testing the untested - jwklong")'
],
[
"test button 2",
'console.warn("too many test buttons")'
]
]))
23 changes: 23 additions & 0 deletions js/debugclass.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class DebugClass {
constructor(name,desc,ver,buttons) {
this.name = name
this.desc = desc
this.version = ver
this.buttons = buttons
}
getButtons() {
if (this.buttons === false) return ""
let text = ""
for (let i in this.buttons) {
text += `<button onclick='` + this.buttons[i][1] + `'>` + this.buttons[i][0] + `</button> `
}
return text
}
getInfo() {
return `<guide-item>
<template v-slot:title>` + this.name + " " + this.version + `</template>
<template v-slot:text>` + this.desc + `<br> ` + this.getButtons() + `
</template>
</guide-item>`
}
}
12 changes: 8 additions & 4 deletions js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var mod = {
primaryName: "ω",
secondaryName: "Engine",
version: "1.0.0",
engineVer: "0.1.3", //DO NOT MODIFY
engineVer: "0.2.0", //DO NOT MODIFY
debugMode: false,
themes: [
["Dark", "css/themes/dark.css"],
["Light (Legacy)", "https://veprogames.github.io/omega-layers/css/main.css"],
Expand Down Expand Up @@ -42,13 +43,16 @@ var mod = {
["Comic Sans", "css/fonts/comic.css"],
["Arial", "css/fonts/arial.css"],
["Roboto", "css/fonts/roboto.css"],
["Comfortaa", "css/fonts/comfortaa.css"]
["Comfortaa", "css/fonts/comfortaa.css"],
["Minecraft", "css/fonts/minecraft.css"],
],
saves: [
["Save 1", ""],
["Save 2", "2"],
["Save 3", "3"]
]
["Save 3", "3"],
["Save 4", "4"],
],
debugClasses: []
}

//DO NOT MODIFY CODE PAST THIS POINT AS IT IS NEEDED (unless your a pro coder then do some experimenting)
Expand Down

0 comments on commit 0be01e7

Please sign in to comment.