STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228086
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/31363049?noj=FRM31363049-2DC" width="1" height="1"></div>

The Bomb Factory.swf

This is the info page for
Flash #36676

(Click the ID number above for more basic data on this flash file.)


Text
The Bomb
Factory

Press SPACE to jump, LEFT/RIGHT to move and SHIFT to change backgrounds

Press SPACE to start
Try to avoid the bombs that come at you

-liam-
@
newgrounds

bigexplosions
@
newgrounds

GAME OVER

Press SPACE to restart

ActionScript [AS1/AS2]

Frame 1
mySound = new Sound(this); mySound.attachSound("song"); mySound.start(0, 9); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var item1 = new ContextMenuItem("Made", function () { }); var item2 = new ContextMenuItem("by", function () { }); var item3 = new ContextMenuItem("-liam-", function () { }); var item4 = new ContextMenuItem("and", function () { }); var item5 = new ContextMenuItem("bigexplosions", function () { }); myMenu.customItems.push(item1); myMenu.customItems.push(item2); myMenu.customItems.push(item3); myMenu.customItems.push(item4); myMenu.customItems.push(item5); _root.menu = myMenu; function checkSpace() { if (Key.isDown(32) && (!notPressed)) { notPressed = true; clearInterval(id); setTimeout(function () { gotoAndPlay (2); }, 50); } } stop(); id = setInterval(checkSpace, 10);
Frame 2
function makeBomb() { _root.score++; i++; duplicateMovieClip (bomb, "bomb" + i, i); _root["bomb" + i].speed = random(3) + 4; clearInterval(bombMaking); bombMaking = setInterval(makeBomb, random(1000) + 1000); } function genEffect() { bmp.perlinNoise(random(550), random(400), random(10), random(100), false, false, random(500), false); if (bmp.getPixel(0, 0) == 0) { bmp.floodFill(0, 0, 16777215); } } i = 0; score = 0; stop(); bombMaking = setInterval(makeBomb, random(1000) + 1000); var bmp = (new flash.display.BitmapData(550, 400, false, 16777215)); _root.attachBitmap(bmp, -16383); genEffect(); onEnterFrame = function () { if (Key.isDown(16) && (!wait)) { genEffect(); wait = true; setTimeout(function () { wait = false; }, 100); } };
Instance of Symbol 30 MovieClip "hero" in Frame 2
onClipEvent (load) { var blur = (new flash.filters.BlurFilter(0, 0, 10)); wide = _width; ready = false; setTimeout(function () { ready = true; }, 500); } onClipEvent (enterFrame) { function jump() { if ((_y > end_y) && (!notJump)) { jumpup = true; } else { jumpup = false; notJump = true; } if (jumpup) { _y = (_y - 5); } if (!jumpup) { _y = (_y + 5); } if ((!jumpup) && (this.hitTest(_root.ground))) { clearInterval(jumpingID); } if (_y > start_y) { this.gotoAndPlay(1); blur.blurY = 0; clearInterval(jumpingID); setTimeout(function () { jumping = false; }, 100); _y = start_y; } } this.filters = [blur]; if (Key.isDown(37)) { walking = true; if ((_x - wide) > 0) { this._x = this._x - 5; } this._xscale = -63.5040283203125; if (_currentframe == 1) { gotoAndPlay (2); } } else if (Key.isDown(39)) { walking = true; this._xscale = 63.5040283203125; if (550 > (_x + wide)) { this._x = this._x + 5; } if (_currentframe == 1) { gotoAndPlay (2); } } else if (Key.isDown(32) && (!jumping)) { walking = false; if (_currentframe == 1) { gotoAndStop (3); } } else { walking = false; if ((_currentframe != 1) && (!jumping)) { gotoAndPlay (1); } } if ((Key.isDown(32) && (!jumping)) && (ready)) { jumping = true; start_y = _y; end_y = start_y - 150; notJump = false; blur.blurY = 5; jumpingID = setInterval(jump, 10); } if ((!walking) && (_currentframe == 2)) { gotoAndPlay (1); } if ((blur.blurY == 0) && (this._currentframe == 3)) { gotoAndPlay (1); } if (_root._currentframe != 2) { clearInterval(jumpingID); } }
Instance of Symbol 32 MovieClip "bomb" in Frame 2
onClipEvent (enterFrame) { this.cacheAsBitmap = true; if (_root._currentframe != 2) { this.removeMovieClip(); } if (_name != "bomb") { if (0 > (_x + _width)) { removeMovieClip(this); } _x = (_x - this.speed); if (hitTest(_root.hero.hitme)) { _root.score--; _root.gotoAndPlay(2); _root.hero.removeMovieClip(); this.removeMovieClip(); } } }
Frame 3
function screen() { (_root._x = 0); (_root._y = 0); } function checkSpace() { if (Key.isDown(32) && (!notPressed)) { notPressed = true; clearInterval(np); setTimeout(function () { gotoAndPlay (2); }, 50); } } stop(); setInterval(screen, 0); scoretxt.text = ("You saved teh Inglor from " + score) + " bombs!"; if (_root.score <= 5) { howDid.text = "u did teh suk."; } else if ((_root.score >= 6) && (_root.score <= 15)) { howDid.text = "Not a bad score, try harder"; } else if ((_root.score >= 16) && (_root.score <= 30)) { howDid.text = "Good score!"; } else if (_root.score >= 31) { howDid.text = "Great score, impressive."; } notPressed = undefined; setTimeout(function () { np = setInterval(checkSpace, 10); }, 500);
Symbol 15 MovieClip Frame 1
onEnterFrame = function () { theScore.text = _root.score + " bombs evaded"; };
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 3
stop();

Library Items

Symbol 1 Sound [song]
Symbol 2 GraphicUsed by:Timeline
Symbol 3 FontUsed by:4 5 7 14 33 36
Symbol 4 TextUses:3Used by:Timeline
Symbol 5 TextUses:3Used by:Timeline
Symbol 6 FontUsed by:7 9 10 34 35
Symbol 7 TextUses:3 6Used by:Timeline
Symbol 8 GraphicUsed by:Timeline
Symbol 9 TextUses:6Used by:Timeline
Symbol 10 TextUses:6Used by:Timeline
Symbol 11 GraphicUsed by:Timeline
Symbol 12 GraphicUsed by:Timeline
Symbol 13 GraphicUsed by:15
Symbol 14 EditableTextUses:3Used by:15
Symbol 15 MovieClipUses:13 14Used by:Timeline
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:24 27 28
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:24 27 28
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:24 27 28
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:24 27 28
Symbol 24 MovieClipUses:17 19 21 23Used by:30
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:25Used by:30
Symbol 27 MovieClipUses:17 21 19 23Used by:30
Symbol 28 MovieClipUses:19 17 23 21Used by:29
Symbol 29 MovieClipUses:28Used by:30
Symbol 30 MovieClipUses:24 26 27 29Used by:Timeline
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:Timeline
Symbol 33 TextUses:3Used by:Timeline
Symbol 34 EditableTextUses:6Used by:Timeline
Symbol 35 EditableTextUses:6Used by:Timeline
Symbol 36 TextUses:3Used by:Timeline

Instance Names

"ground"Frame 2Symbol 15 MovieClip
"hero"Frame 2Symbol 30 MovieClip
"bomb"Frame 2Symbol 32 MovieClip
"howDid"Frame 3Symbol 34 EditableText
"scoretxt"Frame 3Symbol 35 EditableText
"theScore"Symbol 15 MovieClip Frame 1Symbol 14 EditableText
"hitme"Symbol 30 MovieClip Frame 1Symbol 26 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "song"




http://swfchan.com/8/36676/info.shtml
Created: 15/5 -2019 01:22:51 Last modified: 15/5 -2019 01:22:51 Server time: 02/05 -2024 23:02:28