Beispiel #1
0
        public SMBXNpc getDefaultValues(obj_npc global)
        {
            SMBXNpc local = new SMBXNpc();

            local.gfxoffsetx     = global.gfx_offset_x;
            local.gfxoffsety     = global.gfx_offset_y;
            local.width          = global.width;
            local.height         = global.height;
            local.gfxwidth       = global.gfx_w;
            local.gfxheight      = global.gfx_h;
            local.score          = global.score;
            local.playerblock    = global.block_player;
            local.playerblocktop = global.block_player_top;
            local.npcblock       = global.block_npc;
            local.npcblocktop    = global.block_player_top;
            local.grabside       = global.grab_side;
            local.grabtop        = global.grab_top;
            local.jumphurt       = (
                (global.hurt_player)
                &&
                (!global.kill_on_jump));
            local.nohurt           = (!global.hurt_player);
            local.noblockcollision = (!global.collision_with_blocks);
            local.cliffturn        = global.turn_on_cliff_detect;
            local.noyoshi          = (!global.can_be_eaten);
            local.foreground       = global.foreground;
            local.speed            = 1;
            local.nofireball       = (!global.kill_by_fireball);
            local.nogravity        = (!global.gravity);
            local.frames           = global.frames;
            local.framespeed       = 8;
            local.framestyle       = global.framestyle;
            local.noiceball        = (!global.freeze_by_iceball);
            //Extended
            local.nohammer = (!global.kill_hammer);
            local.noshell  = (!global.kill_by_npc);
            local.name     = global.name;

            return(local);
        }
        public SMBXNpc getDefaultValues(obj_npc global)
        {
            SMBXNpc local = new SMBXNpc();

            local.gfxoffsetx = global.gfx_offset_x;
            local.gfxoffsety = global.gfx_offset_y;
            local.width = global.width;
            local.height = global.height;
            local.gfxwidth = global.gfx_w;
            local.gfxheight = global.gfx_h;
            local.score = global.score;
            local.playerblock = global.block_player;
            local.playerblocktop = global.block_player_top;
            local.npcblock = global.block_npc;
            local.npcblocktop = global.block_player_top;
            local.grabside = global.grab_side;
            local.grabtop = global.grab_top;
            local.jumphurt = (
                        (global.hurt_player)
                                          &&
                                          (!global.kill_on_jump));
            local.nohurt = (!global.hurt_player);
            local.noblockcollision = (!global.collision_with_blocks);
            local.cliffturn = global.turn_on_cliff_detect;
            local.noyoshi = (!global.can_be_eaten);
            local.foreground = global.foreground;
            local.speed = 1;
            local.nofireball = (!global.kill_by_fireball);
            local.nogravity = (!global.gravity);
            local.frames = global.frames;
            local.framespeed = 8;
            local.framestyle = global.framestyle;
            local.noiceball = (!global.freeze_by_iceball);
            //Extended
            local.nohammer = (!global.kill_hammer);
            local.noshell = (!global.kill_by_npc);
            local.name = global.name;

            return local;
        }