瀏覽代碼

Load From Main Menu

Added button on mmain menu to instantly start game with loaded character
tags/v0.2.9
jsb5468 5 年之前
父節點
當前提交
cf0df2eeff
共有 2 個檔案被更改,包括 10 行新增2 行删除
  1. +5
    -2
      feast.html
  2. +5
    -0
      feast.js

+ 5
- 2
feast.html 查看文件

@@ -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 查看文件

@@ -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) {


Loading…
取消
儲存