Parcourir la source

Load From Main Menu

Added button on mmain menu to instantly start game with loaded character
tags/v0.2.9
jsb5468 il y a 5 ans
Parent
révision
cf0df2eeff
2 fichiers modifiés avec 10 ajouts et 2 suppressions
  1. +5
    -2
      feast.html
  2. +5
    -0
      feast.js

+ 5
- 2
feast.html Voir le fichier

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">

<head>
@@ -148,7 +148,10 @@
</p>
<form id="character-form">
<ul class="character-form-list" id="character-step-1">
<li>
<li>
<button type="button" id="character-load">Load Character</button>
</li>
<li>
<label for="character-name">Name</label>
<input type="text" id="character-name" name="name" placeholder="Player"/>
</li>


+ 5
- 0
feast.js Voir le fichier

@@ -365,6 +365,7 @@ function next_step(stage) {

window.addEventListener('load', function(event) {
document.getElementById("character-step-1-next").addEventListener("click", function() { next_step(2); });
document.getElementById("character-load").addEventListener("click", startLoaded, false);
document.getElementById("start-button").addEventListener("click", start, false);
});

@@ -954,6 +955,10 @@ function loadGame() {
moveToByName(save.position, "");
}

function startLoaded() { //used to load the game via the main menu
start();
loadGame();
}
// wow polyfills

if (![].includes) {


Chargement…
Annuler
Enregistrer