<commit_before>
var ice_dictionary ;
demo.icestate = function(){};
demo.icestate.prototype = {
    preload: function(){
        loadImages();
        loadCatBoss();

        
        // make sure to set this to the size of the tile map 
        game.world.setBounds(0, 0, 1000, 6000);
        
        // load in tile map assets 
        game.load.tilemap('iceStage', 'assets/tilemaps/IceStage/IceMap.json', null, Phaser.Tilemap.TILED_JSON);
//        game.load.image('ice_sprite', 'assets/tilemaps/IceStage/ice_sprite.png');
        game.load.image('fixed_ice_ladder_top', 'assets/tilemaps/IceStage/fixed_ice_ladder.png');
        game.load.image('tempBlueBlock', 'assets/tilemaps/IceStage/blue_snow.png');
        game.load.image('tempGreenBlock', 'assets/tilemaps/IceStage/green_snow.png');
        game.load.image('tempPurpleBlock', 'assets/tilemaps/IceStage/purple_snow.png');
        game.load.image('fixed_ice_ladder', 'assets/tilemaps/IceStage/fixed_ice_ladder.png');
        game.load.image('snow_platform', 'assets/tilemaps/IceStage/snow_platform.png');
    },
    
    
    
    create: function(){
//        game.physics.startSystem(Phaser.Physics.ARCADE);
//        cursors = game.input.keyboard.createCursorKeys();
        
        // stop all other sounds 
        game.sound.stopAll();
        game.camera.y = game.world.height;
        
        // play background music
        clearday = game.add.audio('clearday');
        
        clearday.play('','',0.2,true,true);
        
        // add background
        add_game_bg('bg2');
        
        game.stage.backgroundColor = '#DDDDDD';

//        cursors = game.input.keyboard.createCursorKeys();

        // add in the tile map * make into function - creates dictionary and cycles through dictionary 
        iceMap = game.add.tilemap('iceStage');
//        iceMap.addTilesetImage('ice_sprite');
        iceMap.addTilesetImage('fixed_ice_ladder');
        iceMap.addTilesetImage('fixed_ice_ladder_top');
        iceMap.addTilesetImage('tempBlueBlock');
        iceMap.addTilesetImage('tempPurpleBlock');
        iceMap.addTilesetImage('tempGreenBlock');
        iceMap.addTilesetImage('snow_platform');

        
        
        icelayer1 = iceMap.createLayer('Platforms');
        icelayer2 = iceMap.createLayer('Ladders');
        icelayer1.resizeWorld();
        icelayer2.resizeWorld();
        
        game.physics.arcade.enable(icelayer1);
        game.physics.arcade.enable(icelayer2);
        
        
//        createChameleon(500,game.world.height - 300);
        
        place_cat_boss(0,0);

        
//        iceMap.setCollision(12, true, icelayer1);
        iceMap.setCollisionBetween(1, 12, true, icelayer1);
        iceMap.setCollisionBetween(13, 14, true, icelayer2);
        

        
        //prep for placing fruit and enemies and health packs 
        make_fruit_groups();
        make_enemy_groups();
        make_healthpack_groups(); 
        make_balloon_group();
        
        placeBalloon(500, 3925);
        
        // place fruit
        placeHealthpack (700, 5400);
        placeFruit(700, game.world.height - 300, "bluefruit");
        placeFruit(650, game.world.height -450,"greenfruit");
        placeFruit(750, game.world.height - 1600, "bluefruit");
        placeFruit(150, 1000, "greenfruit");
        placeFruit(200, 300, "purplefruit");
        placeFruit(500, game.world.height - 1600, "purplefruit");
        placeFruit(825, 5025, "bluefruit");
        placeHealthpack(725,3275);
//        placeFruit(725, 3275, "greenfruit"); // put in moving platform to get to here 
        placeFruit(400, 3125, "greenfruit");
        placeFruit(450, 2475, "bluefruit");
        placeFruit(675,1925, "purplefruit");
        placeFruit(275,8575,"greenfruit");
        placeFruit(775,875,"purplefruit");
        placeHealthpack(25, 250);
        placeFruit(925, 250, "greenfruit");
        placeFruit(400,2775, "purplefruit");
        
        placeHealthpack(500, 550);
        
        
//        // place enemies ( note don't put anything with y pos above 5050 )
        var bird1 = placeBird(275,5050,["green"]);
        
        // tween bird 2
        var bird2 = placeBird(575,3875,["blue"]);
        bird2.mytween = game.add.tween(bird2).to({x:[650, 575], y:[3875,3875]}, 1000, Phaser.Easing.Linear.None, true, 0, -1, false);
        
        
        placeSnake(325,3475, ["purple"]);

        
        // tween snake 
        var snake1 = placeSnake(325, 4875, ["purple"]); // TWEEN THIS ENEMY! 
        snake1.mytween = game.add.tween(snake1).to({x:[125, 325], y:[4875,4875]}, 1, Phaser.Easing.Linear.None, true, 0, -1, false);
        <commit_msg>missing tween fixed<commit_after>
var ice_dictionary ;
demo.icestate = function(){};
demo.icestate.prototype = {
    preload: function(){
        loadImages();
        loadCatBoss();

        
        // make sure to set this to the size of the tile map 
        game.world.setBounds(0, 0, 1000, 6000);
        
        // load in tile map assets 
        game.load.tilemap('iceStage', 'assets/tilemaps/IceStage/IceMap.json', null, Phaser.Tilemap.TILED_JSON);
//        game.load.image('ice_sprite', 'assets/tilemaps/IceStage/ice_sprite.png');
        game.load.image('fixed_ice_ladder_top', 'assets/tilemaps/IceStage/fixed_ice_ladder.png');
        game.load.image('tempBlueBlock', 'assets/tilemaps/IceStage/blue_snow.png');
        game.load.image('tempGreenBlock', 'assets/tilemaps/IceStage/green_snow.png');
        game.load.image('tempPurpleBlock', 'assets/tilemaps/IceStage/purple_snow.png');
        game.load.image('fixed_ice_ladder', 'assets/tilemaps/IceStage/fixed_ice_ladder.png');
        game.load.image('snow_platform', 'assets/tilemaps/IceStage/snow_platform.png');
    },
    
    
    
    create: function(){
//        game.physics.startSystem(Phaser.Physics.ARCADE);
//        cursors = game.input.keyboard.createCursorKeys();
        
        // stop all other sounds 
        game.sound.stopAll();
        game.camera.y = game.world.height;
        
        // play background music
        clearday = game.add.audio('clearday');
        
        clearday.play('','',0.2,true,true);
        
        // add background
        add_game_bg('bg2');
        
        game.stage.backgroundColor = '#DDDDDD';

//        cursors = game.input.keyboard.createCursorKeys();

        // add in the tile map * make into function - creates dictionary and cycles through dictionary 
        iceMap = game.add.tilemap('iceStage');
//        iceMap.addTilesetImage('ice_sprite');
        iceMap.addTilesetImage('fixed_ice_ladder');
        iceMap.addTilesetImage('fixed_ice_ladder_top');
        iceMap.addTilesetImage('tempBlueBlock');
        iceMap.addTilesetImage('tempPurpleBlock');
        iceMap.addTilesetImage('tempGreenBlock');
        iceMap.addTilesetImage('snow_platform');

        
        
        icelayer1 = iceMap.createLayer('Platforms');
        icelayer2 = iceMap.createLayer('Ladders');
        icelayer1.resizeWorld();
        icelayer2.resizeWorld();
        
        game.physics.arcade.enable(icelayer1);
        game.physics.arcade.enable(icelayer2);
        
        
//        createChameleon(500,game.world.height - 300);
        
        place_cat_boss(0,0);

        
//        iceMap.setCollision(12, true, icelayer1);
        iceMap.setCollisionBetween(1, 12, true, icelayer1);
        iceMap.setCollisionBetween(13, 14, true, icelayer2);
        

        
        //prep for placing fruit and enemies and health packs 
        make_fruit_groups();
        make_enemy_groups();
        make_healthpack_groups(); 
        make_balloon_group();
        
        placeBalloon(500, 3925);
        
        // place fruit
        placeHealthpack (700, 5400);
        placeFruit(700, game.world.height - 300, "bluefruit");
        placeFruit(650, game.world.height -450,"greenfruit");
        placeFruit(750, game.world.height - 1600, "bluefruit");
        placeFruit(150, 1000, "greenfruit");
        placeFruit(200, 300, "purplefruit");
        placeFruit(500, game.world.height - 1600, "purplefruit");
        placeFruit(825, 5025, "bluefruit");
        placeHealthpack(725,3275);
//        placeFruit(725, 3275, "greenfruit"); // put in moving platform to get to here 
        placeFruit(400, 3125, "greenfruit");
        placeFruit(450, 2475, "bluefruit");
        placeFruit(675,1925, "purplefruit");
        placeFruit(275,8575,"greenfruit");
        placeFruit(775,875,"purplefruit");
        placeHealthpack(25, 250);
        placeFruit(925, 250, "greenfruit");
        placeFruit(400,2775, "purplefruit");
        
        placeHealthpack(500, 550);
        
        
//        // place enemies ( note don't put anything with y pos above 5050 )
        var bird1 = placeBird(275,5050,["green"]);
        
        // tween bird 2
        var bird2 = placeBird(575,3875,["blue"]);
        bird2.mytween = game.add.tween(bird2).to({x:[650, 575], y:[3875,3875]}, 1000, Phaser.Easing.Linear.None, true, 0, -1, false);
        
        
        placeSnake(325,3475, ["purple"]);

        
        // tween snake 
        var snake1 = placeSnake(325, 4875, ["purple"]); // TWEEN THIS ENEMY! 
        snake1.mytween = game.add.tween(snake1).to({x:[125, 325], y:[4875,4875]}, 1500, Phaser.Easing.Linear.None, true, 0, -1, false);
        
{'fraction_non_alphanumeric': 0.13595974735039076, 'fraction_numerical': 0.05342040466759448, 'mean_word_length': 2.3933890301489282, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2045997', 'n_tokens_mistral': 3415, 'n_tokens_neox': 2977, 'n_words': 494}