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; | |
using System.Text; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Audio; | |
using Microsoft.Xna.Framework.Content; | |
using Microsoft.Xna.Framework.GamerServices; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; |
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
#coding: shift-jis | |
#保安装置のスクリプトのサンプル | |
#Automatic Nanimo Shinai system | |
#必須インポート | |
import clr | |
from TrainSystemSimulator.Simulate import * | |
from Microsoft.Xna.Framework import * | |
from Microsoft.Xna.Framework.Content import * | |
from Microsoft.Xna.Framework.Graphics import * | |
from Microsoft.Xna.Framework.Media import * |
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
/// <summary> | |
/// 動きまわるものを定義します。 | |
/// </summary> | |
public class XSprite | |
{ | |
/// <summary> | |
/// X位置 | |
/// </summary> | |
public double X { get; set; } |
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
--[[ | |
createDynamicText_Righter関数 | |
右の方に動いて消えるテキストを生成します。 | |
一応、テクスチャフォント専用です。 | |
イメージとしては、東方のBGM名のアレみたいなのです。 | |
1.濃くなりながら50fで200px右移動 | |
2.3秒止まる | |
3.薄くなりながら右へ退場 | |
引数 | |
font フォントハンドル |
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
while true do | |
turtle.dig(); | |
turtle.suck(); | |
if (turtle.getFuelLevel()<=20) then | |
turtle.refuel(1); | |
end | |
sleep(2); | |
end |
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.Runtime.InteropServices; | |
namespace XInput | |
{ | |
/// <summary> | |
/// Xinput方式によるコントローラーの操作を提供します。 | |
/// </summary> | |
public class XInput | |
{ |
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
/* | |
色々できるOOPっぽいコンフィグ | |
KxConfig V1.0 | |
2014/01/04 kb10uy | |
コンパイルの仕方 | |
1.適当なプロジェクトに放り込む | |
2.Irony( http://irony.codeplex.com/ )のプロジェクトを適当にビルドして、Irony.dllを参照に追加する | |
3.コンパイルする | |
*/ |
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
#coding: shift-jis | |
import clr | |
from Kbtter import * | |
from System import * | |
from TweetSharp import * | |
from System.Text import * | |
from System.Text.RegularExpressions import * |
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
#coding: shift-jis | |
import clr | |
from Kbtter import * | |
from System import * | |
from TweetSharp import * | |
from System.Text import * | |
from System.Text.RegularExpressions import * | |
from System.IO import * |
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
public interface IKbtterCallable : IKbtterHasName | |
{ | |
IEnumerable<KbtterPluginMenu> GetMenuList(); | |
} | |
public class KbtterPluginMenu | |
{ | |
public string MenuTitle { get; set; } | |
public Action MenuAction { get; set; } | |
} |
OlderNewer