Giter VIP home page Giter VIP logo

egadv's Introduction

egadv - easy adventure game framework

ノベルゲームづくりからのJavaScript入門

  1. HTMLはじめのいっぽ demo
  2. JavaScriptはじめのいっぽ demo
  3. 繰り返しとライブラリ demo
  4. 変数と定数 demo
  5. 条件判断と分岐 demo
  6. 乱数を使った応用 demo
  7. 地図表示 demo

デモ

  1. 立ち絵 demo
  2. ナビへのリンク demo

ノベルゲームツール

http://code4fukui.github.io/egadv/?url=https://code4fukui.github.io/novel-fukui/越前市黄金伝説.md

使い方

基本的な使い方

import { bg, show } from "https://js.sabae.cc/egadv.js";
await bg();
await show("おはよう!");
const a = await show("ここはどこ?", ["福井", "東京"]);
if (a == "福井") {
  await show("ほんと!?");
}
await bg("E91624");

bg

  • 背景を表示する(無指定でFIND/47からランダムに表示、番号指定でFIND/47の画像、URL指定でその画像、Geo3x3指定で地図表示、都道府県名指定でその県内でランダムに表示)
function bg(num)

show

  • テキスト表示(第二パラメータ以降または第ニパラメータに配列で文字列を指定することで選択肢を表示、選択した文字列が返る)
function show(message, option1, option2 ...)

fg

  • 立ち絵を表示する(現在、yuimihime のみ対応、無指定で非表示)
function fg(name)

navi

  • その場所へのナビ用リンク(GoogleMaps)を開く
function navi(pos)

ブログ

egadv's People

Contributors

taisukef avatar

Watchers

James Cloos avatar  avatar

Forkers

sausukei

egadv's Issues

好きなdiv要素に好きなフォントで文字を表示できるようにカスタマイズできますか?

新しいアプリにノベルゲームを使いたいなと思い、こちらのAPIをお借りしたいと思っています。

・テキストをcssからフォント指定したい。

・ドラクエ風に吹き出し要素をdivで作り、そこに会話文として文字を入れていきたい。

と思っているのですが、カスタマイズ可能でしょうか?

ご検討のほど、よろしくお願いいたします。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.