Skip to content

Instantly share code, notes, and snippets.

View phi-jp's full-sized avatar

phi phi-jp

View GitHub Profile
@phi-jp
phi-jp / ひよこダッシュ.md
Last active December 17, 2015 17:59
tmlib.js チュートリアル用ゲーム

ひよこダッシュ

ジャンル

避けゲー

対象年齢

小学校1, 2年

@phi-jp
phi-jp / watcher.tm.js
Created March 1, 2013 11:44
watcher.tm.js
/*
* phi
*/
;(function(global) {
global.tm = global.tm || {};
var ajax = function(url, fn) {
@phi-jp
phi-jp / script.js
Created February 27, 2013 02:11
tmlib.js クラス定義サンプル
tm.define("SubSubHoge", {
superClass: "foo.SubHoge",
init: function(a, b, c) {
this.superInit(a, b);
this.c = c;
}
});
tm.define("foo.SubHoge", {
@phi-jp
phi-jp / 9leap.md
Last active December 11, 2015 18:08
GGJ in 新宿 with tmlib.js

jsdo.it から 9leap に投稿する方法

1. 9leap にスコアを登録する処理を追加する

ResultScene の init 処理内で下記の関数を実行します. 引数はスコア(数値), メッセージ(文字列)です.

// 9leap に投稿したときだけ反応します
tm.social.Nineleap.postRanking(スコア, メッセージ);
@phi-jp
phi-jp / test.md
Created April 27, 2012 08:55
title

test