This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// zlib/libpng License | |
// | |
// Copyright (c) 2021 TSUCHIYA Tsukasa | |
// | |
// This software is provided 'as-is', without any express or implied warranty. | |
// In no event will the authors be held liable for any damages arising from the use of this software. | |
// Permission is granted to anyone to use this software for any purpose, | |
// including commercial applications, and to alter it and redistribute it freely, | |
// subject to the following restrictions: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// zlib/libpng License | |
// | |
// Copyright (c) 2021 TSUCHIYA Tsukasa | |
// Inspired By ImtStateMachine(Sinoa) https://github.com/Sinoa/IceMilkTea/blob/develop/Packages/IceMilkTea/Runtime/Core/UnitCode/PureCsharp/StateMachine.cs | |
// | |
// This software is provided 'as-is', without any express or implied warranty. | |
// In no event will the authors be held liable for any damages arising from the use of this software. | |
// Permission is granted to anyone to use this software for any purpose, | |
// including commercial applications, and to alter it and redistribute it freely, | |
// subject to the following restrictions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Tsukasa | |
{ | |
abstract class PushDownStateMachine<StateType> | |
{ | |
protected Stack<StateType> StateStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//UnityChanShaderGUI_T2.shader | |
//ユニティちゃんシェーダー(Toon_DoubleShadeWithFeather)用エディタ拡張 | |
//ver1.0(2018/10/13) | |
//作者:土屋つかさ | |
//本ソースコードはユニティちゃんライセンス(http://unity-chan.com/contents/license_jp/)に準じて配布されます。 | |
using System; | |
using UnityEngine; | |
namespace UnityEditor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! ruby -E utf-8 | |
_TEXT_BUTTON_ text: "右", out_color: [0,255,255], #カーソルがボタン外にある時の背景色 | |
in_color: [255,255,0] do | |
#キーがクリックされた | |
_DEFINE_ :on_key_push do | |
_SEND_ [:bg] do | |
_SET_ bgcolor: [255,0,0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! ruby -E utf-8 | |
require 'pp' | |
require 'minitest/test' | |
require '../system/Tsukasa.rb' | |
#このコードが動作する為には、testフォルダ配下にAyame.dllが配置されている必要がある(将来的に依存関係を辞めたいが、解消できるのか不明) | |
MiniTest.autorun | |
class TC_Foo < Minitest::Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_RESIZE_ width: 512, height: 512 | |
#キャラの生成 | |
_CREATE_ :Image, id: :main_char, width:32, height:32, color: C_RED, x:32, y:416, z:100 | |
#マップデータ | |
MAP = [ [1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], | |
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 1], | |
[1, 0, 0, 1, 1, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 1], | |
[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! ruby -E utf-8 | |
require 'test/unit' | |
require 'dxruby' | |
#Window.loop() do | |
#end | |
class TC_Foo < Test::Unit::TestCase | |
def test_foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#常駐シーン(のつもり) | |
_CREATE_ :Layout, id: :test01, width:256, height:256, x:0, y:0 do | |
_CREATE_ :Image, id: :normal, width:256, height:256 do | |
_CIRCLE_ x: 128, y: 128, r: 128, color: C_BLUE, fill: true | |
_TEXT_ x:80, y:120, text: "常駐UIのつもり", color: [0,255,0] | |
end | |
end |