STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229671 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2596 · P5191 |
This is the info page for Flash #52684 |
Frame 1function Star() { this.x = 0; this.y = 0; this.z = 0; this.mc = null; this.reset(); this.reset = function () { this.x = ((Math.random() * APP_WIDTH) - (APP_WIDTH * 0.5)) * STAR_DIST_MAX; this.y = ((Math.random() * APP_HEIGHT) - (APP_HEIGHT * 0.5)) * STAR_DIST_MAX; this.z = STAR_DIST_MAX; }; this.paint = function () { if (this.mc != null) { this.mc._x = this.x / this.z; this.mc._y = this.y / this.z; this.mc._xscale = 100 / this.z; this.mc._yscale = 100 / this.z; } }; } function update(dt) { var ft = (dt * 0.001); var n = g_stars.length; var s; var i = 0; while (i < n) { s = g_stars[i]; s.z = s.z - (ft * g_camVel); if (s.z < 0.1) { s.reset(); } i++; } return(0); } function paint() { var n = g_stars.length; var s; var i = 0; while (i < n) { s = g_stars[i]; s.paint(); if ((((s.mc._x < -200) || (s.mc._x > 200)) || (s.mc._y < -200)) || (s.mc._y > 200)) { s.reset(); s.paint(); } i++; } return(0); } function doFrame() { var curT = getTimer(); var dt = (curT - g_prevT); if (dt > 0) { update(dt); paint(); } g_prevT = curT; return(0); } function initialize(mcDst) { var i; var s; i = 0; while (i < g_stars.length()) { if (s.mc != null) { s.mc.removeMovieClip(); } i--; } g_stars = new Array(); i = 0; while (i < NUM_STARS) { s = new Star(); var mcname = ("star" + String(i)); mcDst.attachMovie("Star", mcname, 100 + i); s.mc = mcDst[mcname]; s.paint(); g_stars.push(s); i++; } g_prevT = getTimer(); return(0); } var STAR_DIST_MAX = 10; var STAR_DIST_MIN = 0.1; var NUM_STARS = 100; var CAM_VEL_DEFAULT = 4; var APP_WIDTH = 400; var APP_HEIGHT = 400; var g_stars = new Array(); var g_prevT = 0; var g_camVel = CAM_VEL_DEFAULT;Frame 5initialize(theStarField);Frame 10doFrame();Frame 11gotoAndPlay (10);
Library Items
Symbol 1 MovieClip [StarField] | |
Symbol 2 Graphic | Used by:3 |
Symbol 3 MovieClip [Star] | Uses:2 |
Symbol 4 MovieClip [StarField] | Used by:Timeline |
Symbol 5 Graphic | Used by:Timeline |
Symbol 6 Graphic | Used by:Timeline |
Symbol 7 Graphic | Used by:Timeline |
Symbol 8 Graphic | Used by:Timeline |
Symbol 9 Sound | Used by:Timeline |
Instance Names
"theStarField" | Frame 1 | Symbol 4 MovieClip [StarField] |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "StarField" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "Star" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 2 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 3 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 4 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 5 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 6 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 7 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 8 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 9 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 10 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 11 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 12 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 13 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 14 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 15 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 16 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 17 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 18 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 19 | Symbol 4 as "StarField" |
ExportAssets (56) | Timeline Frame 20 | Symbol 4 as "StarField" |
Labels
"init" | Frame 5 |
"loop" | Frame 10 |
|