Changeset 12960 for lang/d

Show
Ignore:
Timestamp:
06/01/08 03:14:41 (6 months ago)
Author:
omega
Message:

ゲ丼追加

Location:
lang/d/koke/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/d/koke/trunk/readme.txt

    r7201 r12960  
    55 
    66 
    7 そうさほうw 
    8  まうす つかいます 
     7操作法w 
     8 マウス つかいます 
    99  
    10  ひだり            めにゅー えらんだり まっぷ そうさしたり いろろいww 
    11  みぎ                     がめん すくろーるwww 
     10 ひだり            基本操作いろいろw 
     11 みぎ                     がめん スクロールwww 
    1212  
    1313  
     
    1515 きーぼーど でも おk 
    1616  
    17  zとかxとか 
     17 zとかxとかスペースとかリターンとか 
    1818 
    1919 
     
    2121 
    2222右上とか 
     23 SAVE / LOAD 
     24  地形だけ保存したり読み込んだりできます。 
     25  config.ini変更してないなら、mapdata.txtに 
     26  mapdata.txtはメモ帳とかのテキストエディタで編集して読ませても良し! 
     27  
     28 ゲ丼 
     29  《Armageddon/はるまげどん》3白 
     30  コストは要りませんが、インスタント発動します 
     31  
     32  
    2333 チャート 
    2434  グラフとか出せます 
  • lang/d/koke/trunk/src/character.d

    r12379 r12960  
    715715        } 
    716716         
     717        void destroyAll() { 
     718                foreach( inout c ; actors ){ 
     719                        if( c.exist && c.type != Character.TYPE.EXPLODE ) c.destroy(); 
     720                } 
     721        } 
     722         
    717723        // キャラクタ出現 
    718724        Character set(Vec3 pos , Character.TYPE type , Character.DIRECTION direction = Character.DIRECTION.DOWN){ 
  • lang/d/koke/trunk/src/gamecore.d

    r12957 r12960  
    151151                // save/load 
    152152                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) 
    154154                        , 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) 
    156156                        , ImageButton.TYPE.LOAD); 
     157                sys_switch.add("reset" , new Vec3( -32*5 - 16 , 0 , 0) 
     158                        , ImageButton.TYPE.RESET); 
    157159                 
    158160        } 
     
    194196                 
    195197                // システム save&load 
    196                 if(sys_switch.getSelected() == "load"){ 
     198                string syscmd = sys_switch.getSelected(); 
     199                switch(syscmd){ 
     200                case "load": 
    197201                        if( map.loadFile( configparser.get("MAP_LOAD_FILE") ) ){ 
    198202                                setMessage("MAP LOAD SUCCESS"); 
     
    201205                        } 
    202206                        sys_switch.setSelected(""); 
    203                 } 
    204                 if(sys_switch.getSelected() == "save"){ 
     207                        break; 
     208                         
     209                case "save": 
    205210                        if( map.saveFile( configparser.get("MAP_SAVE_FILE") ) ){ 
    206211                                setMessage("MAP SAVE SUCCESS"); 
     
    209214                        } 
    210215                        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; 
    211227                } 
    212228                 
    213229                string menucmd = menu.getSelected(); 
    214                  
    215230                if((Hell_isPressMouse() & 0x01) && onMouseMap()){ 
    216231                        // マップをいじる操作とかいろいろ(左クリック系 
     
    443458                if(message_timer > 0 && timer % 11 < 10){ 
    444459                        if(message_color == MESSAGE_COLOR.ERROR){ 
    445                                 Hell_drawFont(message , (getScreenWidth() - 8 * message.length)/ 2 , getScreenHeight() / 2  
    446                                                 , 1 , 255,128,0); 
     460                                Hell_drawFont(message , (getScreenWidth() - 16 * message.length)/ 2 , getScreenHeight() / 2  
     461                                                , 2 , 255,128,0); 
    447462                        }else{ 
    448                                 Hell_drawFont(message , (getScreenWidth() - 8 * message.length)/ 2 , getScreenHeight() / 2  
    449                                                 , 1 , 128,192,255); 
     463                                Hell_drawFont(message , (getScreenWidth() - 16 * message.length)/ 2 , getScreenHeight() / 2  
     464                                                , 2, 128,192,255); 
    450465                        } 
    451466                } 
  • lang/d/koke/trunk/src/map.d

    r12011 r12960  
    186186                 
    187187                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                } 
    188202        } 
    189203         
     
    342356                return true; 
    343357        } 
    344          
    345358        // マップチップを配置 
    346359        bool set(int x,int y,MapChip.TYPE type){