1Game.addToManifest({ 2 laptop: "sprites/laptop.png" 3}); 4 5/************* 6 7Provides a screen zooming-out feature! 8 9**************/ 10 11function ScreenZoomOut(scene){ 12 13 var self = this; 14 self.scene = scene; 15 16 self.started = false; 17 self.laptop = null; 18 self.scale = 1; 19 20 var offsetX = 816; 21 var offsetY = 459; 22 23 self.init = function(){ 24 25 if(self.started) return; 26 self.started = true; 27 28 // Put it on! 29 self.laptop = MakeSprite("laptop"); 30 self.laptop.x = -offsetX; 31 self.laptop.y = -offsetY; 32 scene.graphics.addChild(self.laptop); 33 34 self.update(); 35 36 }; 37 38 self.fixLaptop = function(){ 39 if(!self.started) return; 40 self.laptop.x = -offsetX - scene.offX/scene.scale; 41 self.laptop.y = -offsetY - scene.offY/scene.scale; 42 }; 43 44 self.onComplete = null; 45 self.completed = false; 46 self.fullTimer = _s(40); 47 self.timer = self.fullTimer; 48 self.update = function(){ 49 50 if(self.completed) return; 51 if(!self.started) return; 52 53 //self.scale *= 0.99; 54 self.scale *= 0.9996; 55 scene.scale = self.scale; 56 scene.x = (Game.width-(Game.width*self.scale))/2; 57 scene.y = (Game.height-(Game.height*self.scale))/2; 58 59 // IF LESS THAN 0.4, END. (HACK) 60 self.timer--; 61 if(self.timer<=0){ 62 self.completed = true; 63 self.onComplete(); 64 } 65 66 }; 67 68}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.