- 玉子が点滅するリズムに合わせて、ノード玉子を発生させる
予め16のノード玉子を生成しておく。全部非表示 玉子が光るタイミングでノード玉子をonにする
タッチされたら割る
| # -*- encoding: utf-8 -*- | |
| describe Array do | |
| let(:e) { [1,2,3,4,5] } | |
| it "先頭の要素(1)を返すメソッド" do | |
| e[0].should == 1 | |
| e.at(0).should == 1 | |
| e.first.should == 1 |
| h = { | |
| 'heteml' => 'kaba', | |
| 'muumuu' => 'kuma', | |
| 'lolipop' => 'ozisan' | |
| } | |
| another_hash = { | |
| "hatena" => "cinnamon", | |
| "oracle" => "candy", | |
| } |
| public void Unko() | |
| { | |
| } |
| #pragma strict | |
| function Start () { | |
| } | |
| function Update () { | |
| } | |
| function Unko() { | |
| print("unko"); |
| # -*- coding: utf-8 -*- | |
| module Capybara | |
| class Session | |
| def mouse_over(dom) | |
| dom = convert_text_to_element(dom, "onmouseover") | |
| execute_trigger(dom, "mouseover") | |
| end | |
| def mouse_click(dom) |
| # -*- coding: utf-8 -*- | |
| module Capybara | |
| class Session | |
| def mouse_over(dom) | |
| execute_trigger(dom, "mouseover") | |
| end | |
| def mouse_click(dom) | |
| execute_trigger(dom, "click") |
| using System; | |
| using System.Collections.Generic; | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| string[] sankisei = { "ぐっさん", "おっくん", "きたけー", "たけお"}; | |
| List<string> shuffle = new List<string>(); | |
| Ramdom r = new Random(); |
| /// <summary> | |
| /// コンテンツを選択するカーソルインタフェース | |
| /// </summary> | |
| public interface ICursol | |
| { | |
| /// <summary> | |
| /// 現在選択中のコンテンツ | |
| /// </summary> | |
| ICursolContent content { set; get; } | |
| /// <summary> |
| using System.Collections; | |
| using System.Xml; | |
| using System.Xml.Serialization; | |
| using System.IO; | |
| /// <summary> | |
| /// クラスオブジェクトとxmlをシリアライズ・デシリアライズするクラス | |
| /// </summary> | |
| public static class MyXmlSerializer | |
| { |