From 529f280fbae1350793d05417ab6c186d80cc37e0 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 28 Feb 2018 19:11:24 -0500 Subject: [PATCH] Added preset characters and import/export. Fixed crazy strolling bug at large size --- game.js | 38 ++++++++++++++++++++++++++++++++------ stroll.html | 20 ++++++++++++++++---- style.css | 5 +++++ 3 files changed, 53 insertions(+), 10 deletions(-) diff --git a/game.js b/game.js index b0bd5ae..ef609df 100644 --- a/game.js +++ b/game.js @@ -2373,7 +2373,7 @@ function update(lines = []) function pick_move() { if (!strolling) { - setTimeout(pick_move, 1500 * Math.sqrt(macro.scale)); + setTimeout(pick_move, 1500 * Math.log10(macro.scale)); return; } let choice = Math.random(); @@ -2556,11 +2556,9 @@ function loadPreset() { loadSettings(presets[select.selectedIndex]); } -function saveSettings() { - let storage = window.localStorage; - let settings = {}; +function generateSettings() { let form = document.forms.namedItem("custom-species-form"); - + let settings = {}; for (let i=0; i
-
Welcome to Stroll 0.5.9
+
Welcome to Stroll 0.5.10
This game features 18+ content
Changelog
Telegram discussion group
@@ -135,7 +135,7 @@
-

Welcome to Stroll 0.5.9

+

Welcome to Stroll 0.5.10

This game features 18+ content

Changelog

Telegram discussion group

@@ -151,13 +151,25 @@
-

Or, load/save your own character here!

+

Or export/import your character to text here. Copy and paste to share!

+ + + + + +

+ +

Or, load/save your own character internally here! It'll be saved in your browser, so you can come back to it later.

-
+ +
+ +
+
    diff --git a/style.css b/style.css index f1417ff..8322ef9 100644 --- a/style.css +++ b/style.css @@ -15,6 +15,11 @@ font-size: 24px; } +#export-area { + max-width: 80%; + width: 80%; +} + body.dark input { color: #eee; background: #444;