- Timestamp:
- 06/01/08 03:14:41 (6 months ago)
- Location:
- lang/d/koke/trunk
- Files:
-
- 4 modified
-
readme.txt (modified) (3 diffs)
-
src/character.d (modified) (1 diff)
-
src/gamecore.d (modified) (5 diffs)
-
src/map.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/d/koke/trunk/readme.txt
r7201 r12960 5 5 6 6 7 そうさほうw8 まうすつかいます7 操作法w 8 マウス つかいます 9 9 10 ひだり めにゅー えらんだり まっぷ そうさしたり いろろいww11 みぎ がめん すくろーるwww10 ひだり 基本操作いろいろw 11 みぎ がめん スクロールwww 12 12 13 13 … … 15 15 きーぼーど でも おk 16 16 17 zとかxとか 17 zとかxとかスペースとかリターンとか 18 18 19 19 … … 21 21 22 22 右上とか 23 SAVE / LOAD 24 地形だけ保存したり読み込んだりできます。 25 config.ini変更してないなら、mapdata.txtに 26 mapdata.txtはメモ帳とかのテキストエディタで編集して読ませても良し! 27 28 ゲ丼 29 《Armageddon/はるまげどん》3白 30 コストは要りませんが、インスタント発動します 31 32 23 33 チャート 24 34 グラフとか出せます -
lang/d/koke/trunk/src/character.d
r12379 r12960 715 715 } 716 716 717 void destroyAll() { 718 foreach( inout c ; actors ){ 719 if( c.exist && c.type != Character.TYPE.EXPLODE ) c.destroy(); 720 } 721 } 722 717 723 // キャラクタ出現 718 724 Character set(Vec3 pos , Character.TYPE type , Character.DIRECTION direction = Character.DIRECTION.DOWN){ -
lang/d/koke/trunk/src/gamecore.d
r12957 r12960 151 151 // save/load 152 152 sys_switch = new ClickablePool(); 153 sys_switch.add("save" , new Vec3( -32* 6- 16 , 0 , 0)153 sys_switch.add("save" , new Vec3( -32*7 - 16 , 0 , 0) 154 154 , ImageButton.TYPE.SAVE); 155 sys_switch.add("load" , new Vec3( -32* 5- 16 , 0 , 0)155 sys_switch.add("load" , new Vec3( -32*6 - 16 , 0 , 0) 156 156 , ImageButton.TYPE.LOAD); 157 sys_switch.add("reset" , new Vec3( -32*5 - 16 , 0 , 0) 158 , ImageButton.TYPE.RESET); 157 159 158 160 } … … 194 196 195 197 // システム save&load 196 if(sys_switch.getSelected() == "load"){ 198 string syscmd = sys_switch.getSelected(); 199 switch(syscmd){ 200 case "load": 197 201 if( map.loadFile( configparser.get("MAP_LOAD_FILE") ) ){ 198 202 setMessage("MAP LOAD SUCCESS"); … … 201 205 } 202 206 sys_switch.setSelected(""); 203 } 204 if(sys_switch.getSelected() == "save"){ 207 break; 208 209 case "save": 205 210 if( map.saveFile( configparser.get("MAP_SAVE_FILE") ) ){ 206 211 setMessage("MAP SAVE SUCCESS"); … … 209 214 } 210 215 sys_switch.setSelected(""); 216 break; 217 218 case "reset": 219 map.destroyAll(); 220 charpool.destroyAll(); 221 shake_power = 24; 222 sys_switch.setSelected(""); 223 break; 224 225 default: 226 break; 211 227 } 212 228 213 229 string menucmd = menu.getSelected(); 214 215 230 if((Hell_isPressMouse() & 0x01) && onMouseMap()){ 216 231 // マップをいじる操作とかいろいろ(左クリック系 … … 443 458 if(message_timer > 0 && timer % 11 < 10){ 444 459 if(message_color == MESSAGE_COLOR.ERROR){ 445 Hell_drawFont(message , (getScreenWidth() - 8* message.length)/ 2 , getScreenHeight() / 2446 , 1, 255,128,0);460 Hell_drawFont(message , (getScreenWidth() - 16 * message.length)/ 2 , getScreenHeight() / 2 461 , 2 , 255,128,0); 447 462 }else{ 448 Hell_drawFont(message , (getScreenWidth() - 8* message.length)/ 2 , getScreenHeight() / 2449 , 1, 128,192,255);463 Hell_drawFont(message , (getScreenWidth() - 16 * message.length)/ 2 , getScreenHeight() / 2 464 , 2, 128,192,255); 450 465 } 451 466 } -
lang/d/koke/trunk/src/map.d
r12011 r12960 186 186 187 187 timer = 0; 188 } 189 190 void destroyAll(){ 191 for(int x = 0;x < width;x++){ 192 for(int y=0;y < height;y++){ 193 MapChip m = toMap( x , y ); 194 if( m.type != MapChip.TYPE.NONE ) { 195 Character c = gamemain.charpool.set( new Vec3( x , y , 0) 196 , Character.TYPE.EXPLODE); 197 if(c) c.setMotion( Character.MOTION.VANISH ); 198 } 199 m.set( MapChip.TYPE.NONE , 0 ); 200 } 201 } 188 202 } 189 203 … … 342 356 return true; 343 357 } 344 345 358 // マップチップを配置 346 359 bool set(int x,int y,MapChip.TYPE type){
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)