openvibers/openvibe.games Commits
Games: Salvage Rush and the leaderboard in the nav, footer and 404 links (#47)
Changes
@@@ -7,7 +7,7 @@<title>OpenVibe.Games — browser games on the OpenVibe network</title><metaname="description"-- content="The games arm of the OpenVibe network. Play Scraplandia — scrappy multiplayer survival-building in Scrap City — in your browser, no download."++ content="The games arm of the OpenVibe network. Play Scraplandia, multiplayer survival-building in Scrap City, or Salvage Rush, 90-second scrap-collecting rounds with a leaderboard, in your browser with no download."/><!-- The OpenVibe Frame: the user's theme before first paint, then navbar + footer. --><!-- Deferred: a slow or unreachable openvibe.network never holds the first paint (the inline colours above cover it). -->@@@ -21,7 +21,7 @@<meta property="og:title" content="OpenVibe.Games — browser games on the OpenVibe network" /><metaproperty="og:description"-- content="Play Scraplandia — scrappy multiplayer survival-building in Scrap City — in your browser, no download. One OpenVibe account across the whole network."++ content="Play Scraplandia or Salvage Rush in your browser, no download: survival-building in Scrap City, or timed scrap-collecting rounds with a leaderboard. One OpenVibe account across the whole network."/><meta property="og:url" content="https://openvibe.games/" /><meta property="og:image" content="https://openvibe.games/og-image.png" />@@@ -24,6 +24,12 @@var PORTAL = local || !onPlayHost ? '/' : 'https://openvibe.games/'var PLAY = local ? '/play' : onPlayHost ? '/' : 'https://play.openvibe.games/'var EDITOR = local || !onPlayHost ? '/editor' : 'https://openvibe.games/editor'++ var RUSH = local++ ? '/play?game=salvage-rush'++ : onPlayHost++ ? '/?game=salvage-rush'++ : 'https://play.openvibe.games/?game=salvage-rush'++ var BOARD = local || !onPlayHost ? '/leaderboard.html' : 'https://openvibe.games/leaderboard.html'function cookie(name) {var m = document.cookie.match(new RegExp('(?:^|;\\s*)' + name + '=([^;]*)'))@@@ -48,6 +54,8 @@var links = [{ label: 'Games', href: PORTAL },{ label: 'Scraplandia', href: PLAY },++ { label: 'Salvage Rush', href: RUSH },++ { label: 'Leaderboard', href: BOARD },]// The shared footer's items are { name, url } (label/href rendered empty links).var footerLinks = [@@@ -56,6 +64,8 @@items: [{ name: 'All games', url: PORTAL },{ name: 'Play Scraplandia', url: PLAY },++ { name: 'Play Salvage Rush', url: RUSH },++ { name: 'Leaderboard', url: BOARD },{ name: 'Map editor', url: EDITOR },],},@@@ -178,10 +178,13 @@ export function createHttpServer(const apexLinks: NotFoundLink[] = [{ href: '/', label: 'OpenVibe.Games home' },{ href: '/play', label: 'Play Scraplandia' },++ { href: '/play?game=salvage-rush', label: 'Play Salvage Rush' },++ { href: '/leaderboard.html', label: 'Leaderboard' },{ href: '/editor', label: 'Map editor' },]const playLinks: NotFoundLink[] = [{ href: '/', label: 'Play Scraplandia' },++ { href: '/?game=salvage-rush', label: 'Play Salvage Rush' },{ href: '/editor', label: 'Map editor' },{ href: portalHome, label: 'OpenVibe.Games home' },]
@@ -7,7 +7,7 @@
@@ -7,7 +7,7 @@
<title>OpenVibe.Games — browser games on the OpenVibe network</title>
<title>OpenVibe.Games — browser games on the OpenVibe network</title>
<meta
<meta
name="description"
name="description"
- content="The games arm of the OpenVibe network. Play Scraplandia — scrappy multiplayer survival-building in Scrap City — in your browser, no download."
+ content="The games arm of the OpenVibe network. Play Scraplandia, multiplayer survival-building in Scrap City, or Salvage Rush, 90-second scrap-collecting rounds with a leaderboard, in your browser with no download."
/>
/>
<!-- The OpenVibe Frame: the user's theme before first paint, then navbar + footer. -->
<!-- The OpenVibe Frame: the user's theme before first paint, then navbar + footer. -->
<!-- Deferred: a slow or unreachable openvibe.network never holds the first paint (the inline colours above cover it). -->
<!-- Deferred: a slow or unreachable openvibe.network never holds the first paint (the inline colours above cover it). -->
@@ -21,7 +21,7 @@
@@ -21,7 +21,7 @@
<meta property="og:title" content="OpenVibe.Games — browser games on the OpenVibe network" />
<meta property="og:title" content="OpenVibe.Games — browser games on the OpenVibe network" />
<meta
<meta
property="og:description"
property="og:description"
- content="Play Scraplandia — scrappy multiplayer survival-building in Scrap City — in your browser, no download. One OpenVibe account across the whole network."
+ content="Play Scraplandia or Salvage Rush in your browser, no download: survival-building in Scrap City, or timed scrap-collecting rounds with a leaderboard. One OpenVibe account across the whole network."
/>
/>
<meta property="og:url" content="https://openvibe.games/" />
<meta property="og:url" content="https://openvibe.games/" />
<meta property="og:image" content="https://openvibe.games/og-image.png" />
<meta property="og:image" content="https://openvibe.games/og-image.png" />
@@ -24,6 +24,12 @@
@@ -24,6 +24,12 @@
var PORTAL = local || !onPlayHost ? '/' : 'https://openvibe.games/'
var PORTAL = local || !onPlayHost ? '/' : 'https://openvibe.games/'
var PLAY = local ? '/play' : onPlayHost ? '/' : 'https://play.openvibe.games/'
var PLAY = local ? '/play' : onPlayHost ? '/' : 'https://play.openvibe.games/'
var EDITOR = local || !onPlayHost ? '/editor' : 'https://openvibe.games/editor'
var EDITOR = local || !onPlayHost ? '/editor' : 'https://openvibe.games/editor'
+ var RUSH = local
+ ? '/play?game=salvage-rush'
+ : onPlayHost
+ ? '/?game=salvage-rush'
+ : 'https://play.openvibe.games/?game=salvage-rush'
+ var BOARD = local || !onPlayHost ? '/leaderboard.html' : 'https://openvibe.games/leaderboard.html'
function cookie(name) {
function cookie(name) {
var m = document.cookie.match(new RegExp('(?:^|;\\s*)' + name + '=([^;]*)'))
var m = document.cookie.match(new RegExp('(?:^|;\\s*)' + name + '=([^;]*)'))
@@ -48,6 +54,8 @@
@@ -48,6 +54,8 @@
var links = [
var links = [
{ label: 'Games', href: PORTAL },
{ label: 'Games', href: PORTAL },
{ label: 'Scraplandia', href: PLAY },
{ label: 'Scraplandia', href: PLAY },
+ { label: 'Salvage Rush', href: RUSH },
+ { label: 'Leaderboard', href: BOARD },
]
]
// The shared footer's items are { name, url } (label/href rendered empty links).
// The shared footer's items are { name, url } (label/href rendered empty links).
var footerLinks = [
var footerLinks = [
@@ -56,6 +64,8 @@
@@ -56,6 +64,8 @@
items: [
items: [
{ name: 'All games', url: PORTAL },
{ name: 'All games', url: PORTAL },
{ name: 'Play Scraplandia', url: PLAY },
{ name: 'Play Scraplandia', url: PLAY },
+ { name: 'Play Salvage Rush', url: RUSH },
+ { name: 'Leaderboard', url: BOARD },
{ name: 'Map editor', url: EDITOR },
{ name: 'Map editor', url: EDITOR },
],
],
},
},
@@ -178,10 +178,13 @@ export function createHttpServer(
@@ -178,10 +178,13 @@ export function createHttpServer(
const apexLinks: NotFoundLink[] = [
const apexLinks: NotFoundLink[] = [
{ href: '/', label: 'OpenVibe.Games home' },
{ href: '/', label: 'OpenVibe.Games home' },
{ href: '/play', label: 'Play Scraplandia' },
{ href: '/play', label: 'Play Scraplandia' },
+ { href: '/play?game=salvage-rush', label: 'Play Salvage Rush' },
+ { href: '/leaderboard.html', label: 'Leaderboard' },
{ href: '/editor', label: 'Map editor' },
{ href: '/editor', label: 'Map editor' },
]
]
const playLinks: NotFoundLink[] = [
const playLinks: NotFoundLink[] = [
{ href: '/', label: 'Play Scraplandia' },
{ href: '/', label: 'Play Scraplandia' },
+ { href: '/?game=salvage-rush', label: 'Play Salvage Rush' },
{ href: '/editor', label: 'Map editor' },
{ href: '/editor', label: 'Map editor' },
{ href: portalHome, label: 'OpenVibe.Games home' },
{ href: portalHome, label: 'OpenVibe.Games home' },
]
]