東方中央幻視台

瞼の裏に弾幕が飛び交う程度の能力 - 永夜抄Normalはそれなりに難しい。

目次

Blog 利用状況

ニュース

自己紹介

関連サイト

投稿カレンダー

  • スクリプトをダウンロード!

ブログパーツ

Adsense

書庫

日記カテゴリ

もじぴったんのステージをXML文書にしてみた

もじぴったんのステージをXML文書にしてみた。
とりあえずこんな感じ。

 1 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
 2 <Stage>
 3   <String tokoroten="false">
 4     <Endless></Endless>
 5     <Once>あいえおかきくけこがぎぐげごさしすせそざじずぜぞたちつてとだぢづでどなにぬねのはひふへほばびぶべぼぱぴぷぺぽやゆよらりるれろわをんー</Once>
 6   </String>
 7   <Map width="9" height="6">
 8     <Row>
 9       <Cell group="0" reserved="true" value="う"/>
10       <Cell group="0"/>
11       <Cell group="0"/>
12       <Cell group="0"/>
13       <Cell group="0"/>
14       <Cell group="0"/>
15       <Cell group="0"/>
16       <Cell group="0" reserved="true" value="う"/>
17     </Row>
18     <Row>
19       <Empty/>
20       <Empty/>
21       <Empty/>
22       <Empty/>
23       <Cell/>
24       <Empty/>
25       <Empty/>
26       <Empty/>
27       <Empty/>
28     </Row>
29     <Row>
30       <Cell/>
31       <Cell/>
32       <Cell/>
33       <Cell/>
34       <Cell/>
35       <Cell/>
36       <Cell/>
37       <Cell/>
38       <Cell/>
39     </Row>
40     <Row>
41       <Cell/>
42       <Empty/>
43       <Empty/>
44       <Empty/>
45       <Cell/>
46       <Empty/>
47       <Empty/>
48       <Empty/>
49       <Cell/>
50     </Row>
51     <Row>
52       <Cell/>
53       <Empty/>
54       <Cell reserved="true" value="う"/>
55       <Empty/>
56       <Cell/>
57       <Empty/>
58       <Cell reserved="true" value="う"/>
59       <Empty/>
60       <Cell/>
61     </Row>
62     <Row>
63       <Cell/>
64       <Empty/>
65       <Empty/>
66       <Empty/>
67       <Cell/>
68       <Empty/>
69       <Empty/>
70       <Empty/>
71       <Cell/>
72     </Row>
73     <Row>
74       <Cell reserved="true" value="う"/>
75       <Empty/>
76       <Cell reserved="true" value="う"/>
77       <Empty/>
78       <Cell/>
79       <Empty/>
80       <Cell reserved="true" value="う"/>
81       <Empty/>
82       <Cell reserved="true" value="う"/>
83     </Row>
84   </Map>
85   <Condition>
86     <Word number="30" regex="う"/>
87   </Condition>
88   <Events/>
89 </Stage>
90
必要な要素はえらぶくんの文字列、マップ、クリア条件、回転・移動などのイベント。
んでもってスキーマはこちら。
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3   <xs:element name="Stage">
  4     <xs:complexType>
  5       <xs:sequence>
  6         <xs:element name="String">
  7           <xs:complexType mixed="true">
  8             <xs:sequence>
  9               <xs:sequence>
 10                 <xs:element name="Endless" type="xs:string" />
 11                 <xs:element name="Once" type="xs:string" />
 12               </xs:sequence>
 13             </xs:sequence>
 14             <xs:attribute name="tokoroten" type="xs:boolean" default="false" use="optional" />
 15             <xs:attribute name="window" type="xs:unsignedShort" default="0" use="optional" />
 16           </xs:complexType>
 17         </xs:element>
 18         <xs:element name="Map">
 19           <xs:complexType>
 20             <xs:sequence>
 21               <xs:sequence>
 22                 <xs:element maxOccurs="unbounded" name="Row">
 23                   <xs:complexType>
 24                     <xs:sequence>
 25                       <xs:choice maxOccurs="unbounded">
 26                         <xs:element maxOccurs="unbounded" name="Empty" />
 27                         <xs:element maxOccurs="unbounded" name="Cell">
 28                           <xs:complexType>
 29                             <xs:attribute name="group" type="xs:unsignedInt" use="optional" />
 30                             <xs:attribute name="enent" type="xs:string" use="optional" />
 31                             <xs:attribute name="reserved" type="xs:boolean" use="optional" />
 32                             <xs:attribute name="value" type="xs:string" use="optional" />
 33                           </xs:complexType>
 34                         </xs:element>
 35                       </xs:choice>
 36                     </xs:sequence>
 37                   </xs:complexType>
 38                 </xs:element>
 39               </xs:sequence>
 40             </xs:sequence>
 41             <xs:attribute name="width" type="xs:unsignedByte" use="required" />
 42             <xs:attribute name="height" type="xs:unsignedByte" use="required" />
 43           </xs:complexType>
 44         </xs:element>
 45         <xs:element name="Condition">
 46           <xs:complexType>
 47             <xs:sequence>
 48               <xs:choice>
 49                 <xs:element name="Block">
 50                   <xs:complexType>
 51                     <xs:sequence>
 52                       <xs:element name="number" type="xs:unsignedInt" />
 53                     </xs:sequence>
 54                   </xs:complexType>
 55                 </xs:element>
 56                 <xs:element name="Word">
 57                   <xs:complexType>
 58                     <xs:attribute name="length" type="xs:unsignedInt" />
 59                     <xs:attribute name="operator">
 60                       <xs:simpleType>
 61                         <xs:restriction base="xs:string">
 62                           <xs:enumeration value="Equal" />
 63                           <xs:enumeration value="EqualOrOver" />
 64                         </xs:restriction>
 65                       </xs:simpleType>
 66                     </xs:attribute>
 67                     <xs:attribute name="regex" type="xs:string" />
 68                     <xs:attribute name="number" type="xs:unsignedInt" use="required" />
 69                   </xs:complexType>
 70                 </xs:element>
 71                 <xs:element name="FillAll">
 72                   <xs:complexType>
 73                     <xs:sequence>
 74                     </xs:sequence>
 75                   </xs:complexType>
 76                 </xs:element>
 77                 <xs:element name="FillAt">
 78                   <xs:complexType>
 79                     <xs:sequence>
 80                       <xs:sequence>
 81                         <xs:element name="Point">
 82                           <xs:complexType>
 83                             <xs:sequence>
 84                               <xs:element name="x" type="xs:unsignedInt" />
 85                               <xs:element name="y" type="xs:unsignedInt" />
 86                             </xs:sequence>
 87                           </xs:complexType>
 88                         </xs:element>
 89                       </xs:sequence>
 90                     </xs:sequence>
 91                   </xs:complexType>
 92                 </xs:element>
 93               </xs:choice>
 94             </xs:sequence>
 95           </xs:complexType>
 96         </xs:element>
 97         <xs:element name="Events">
 98           <xs:complexType>
 99             <xs:sequence>
100               <xs:element name="Event" minOccurs="0">
101                 <xs:complexType>
102                   <xs:sequence>
103                     <xs:sequence>
104                       <xs:choice>
105                         <xs:element name="Turn">
106                           <xs:complexType>
107                             <xs:sequence>
108                               <xs:element name="cx" type="xs:unsignedInt" />
109                               <xs:element name="cy" type="xs:unsignedInt" />
110                             </xs:sequence>
111                           </xs:complexType>
112                         </xs:element>
113                         <xs:element name="Move">
114                           <xs:complexType>
115                             <xs:attribute name="dx" type="xs:int" use="required" />
116                             <xs:attribute name="dy" type="xs:int" use="required" />
117                           </xs:complexType>
118                         </xs:element>
119                         <xs:element name="Slide">
120                           <xs:complexType>
121                             <xs:sequence>
122                               <xs:element name="origin">
123                                 <xs:simpleType>
124                                   <xs:restriction base="xs:string">
125                                     <xs:enumeration value="Up" />
126                                     <xs:enumeration value="Down" />
127                                     <xs:enumeration value="Left" />
128                                     <xs:enumeration value="Right" />
129                                   </xs:restriction>
130                                 </xs:simpleType>
131                               </xs:element>
132                             </xs:sequence>
133                           </xs:complexType>
134                         </xs:element>
135                       </xs:choice>
136                     </xs:sequence>
137                   </xs:sequence>
138                   <xs:attribute name="name" type="xs:string" use="required" />
139                 </xs:complexType>
140               </xs:element>
141             </xs:sequence>
142           </xs:complexType>
143         </xs:element>
144       </xs:sequence>
145     </xs:complexType>
146   </xs:element>
147 </xs:schema>
148 

もともとはGUIで作る予定だったけど面倒だったのでXMLに。
あとはこれを解釈して総当りで解かせるプログラムを組む予定。
辞書はもじぴったんのものは入手困難なのでフリーのもの。
うーん。結構難しそう。うまくいくかは五分五分といったところです。(汗

# むしめがねがクリアできないんだ~。

投稿日時 : 2007年3月23日 15:03

コメントを追加

# Nike Free 3.0 V4 Damen 2012/10/31 13:34 http://www.nikefree3runschuhe.com/

Add‘w not you could try so difficult, the most beneficial points may be purchased if you happen to typically anticipate the crooks to.
Nike Free 3.0 V4 Damen http://www.nikefree3runschuhe.com/

# Nike Free 3.0 V2 grau orange Schuhe 2012/11/03 18:05 http://www.nikefree3runschuhe.com/nike-free-run-he

It could be that Goodness is wanting people in order to meet a number of erroneous citizens prior to business meeting the best one, making sure that once we lastly match the guy or girl, we will have learned to you should be thankful.
Nike Free 3.0 V2 grau orange Schuhe http://www.nikefree3runschuhe.com/nike-free-run-herren/nike-free-3-0-herren/nike-free-3-0-v2-grau-orange-schuhe.html/

# casquette unkut 2013/02/27 3:06 http://www.b66.fr/

A true comrade is actually who actually overlooks your setbacks and also tolerates your successes. casquette unkut http://www.b66.fr/

# Air Jordan 4 2013/03/06 3:55 http://www.jordanretro4air.com/

Really do not to understand which more comfortable to be with. It's the perfect time who will strength that you prize your lifestyle out. Air Jordan 4 http://www.jordanretro4air.com/

# Jordan Release Dates 2013/03/06 3:55 http://www.nike44.com/

To the world you most likely are a person, nonetheless to man or women you most likely are society. Jordan Release Dates http://www.nike44.com/

# Niketalk 2013/03/06 11:32 http://www.jordanretro10air.com/

Enjoy will be frail in the nascence, it also gets bigger much more powerful with age in case it is competently federal. Niketalk http://www.jordanretro10air.com/

# Air Jordan Retro 3 2013/03/06 11:32 http://www.jordanretro3air.com/

Contentment is definitely a aroma it is impossible storage containers . on the subject of others free of choosing a a handful of falls on the subject of your true self. Air Jordan Retro 3 http://www.jordanretro3air.com/

# uknow 2013/03/06 11:33 http://www.f77.fr/

Hardly any person might be worth your personal tears, as well as person who might be won‘r force you hollo. uknow http://www.f77.fr/

# www.c55.fr 2013/03/06 11:35 http://www.c55.fr/

Any twin aren't a person, yet somehow a person are invariably an important twin. www.c55.fr http://www.c55.fr/

# casquette obey 2013/03/16 3:23 http://www.b77.fr/

A new sister might friends, yet , friends will always be a suitable sister. casquette obey http://www.b77.fr/

# tee shirt g star 2013/03/18 23:40 http://www.i77.fr/

Happen to be continue when every different coworker thinks about she has hook brilliance above the additional. tee shirt g star http://www.i77.fr/

# casquette fox 2013/03/22 16:20 http://e66.fr/

Relationships go on as every different chum is convinced as well as hook high quality instead of the another. casquette fox http://e66.fr/

# gemo 2013/04/08 12:25 http://ruezee.com/

Bliss is often a essence you can't pour over the rest without need of acquiring a only a few declines over your own. gemo http://ruezee.com/

タイトル
名前
URL
コメント