Giter VIP home page Giter VIP logo

anovel's Introduction

ANovel (Atra Novel)

Unity用のノベルパートを作成する為のフレームワークです。
先行プリロードやロールバックなどの機能を持ちます。
※現在開発中でリリースの段階にまで至っていません。

概要

より詳細な内容はドキュメントに記載してあります。

スクリプト

ANovelのスクリプトはKAG3/KAGEXを参考にした文法を採用しています。

@image name="画像" path="file_name"

テキストの表示に特別な命令は必要ありません。

デフォルトでは空白の行があると改ページとして扱われます。

※現在、デフォルトの挙動しかありません!

まともな開発環境がないとつらいのでVisualStudioCodeの拡張を用意してあります。
ユーザーが作成したタグも補完が出来ます。
https://github.com/yazawa-ichio/anovel-vscode

コマンドを作成する

コマンドを作成は簡単に出来ます。
登録等は不要でCommandクラスを継承しTagNameを付けていれば自動で登録されます。

//@sample key="value" flag="false"

[TagName("sample")]
public class SampleCommand : Command
{
	// デフォルトでは「_」と「m_」が除かれた変数名がkeyになります。
	[Argument]
	string m_Key;
	[Argument(Required = true)]
	bool m_Flag = true;

	protected override void Execute()
	{
		// 事前にContainerに登録して使います。
		var service = Container.Get<ISampleService>();
		service.Execute(m_Key, _flag);
	}
}

QuickStart

インストール

upmで以下のURLでパッケージのインストールが出来ます。
https://github.com/yazawa-ichio/ANovel.git?path=Unity/Assets/ANovel

インポート

メニューの[ANovel/Import/QuickStart]でQuickStartのプロジェクトがインポートできます。 Assets/ANovel.QuickStart/QuickStart.unity を開くと実行できます。

anovel's People

Contributors

yazawa-ichio avatar

Watchers

 avatar

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.