We just released a Feb. 5 '89 prototype of DuckTales for the NES!
If you'd like to support our preservation efforts (and this wasn't cheap), please consider donating or supporting us on Patreon. Thank you!

The Amazing World of Gumball: Sky Streaker

From The Cutting Room Floor
Jump to navigation Jump to search

Title Screen

The Amazing World of Gumball: Sky Streaker

Developer: Cartoon Network Studios
Publisher: Cartoon Network Studios
Platform: Adobe Flash
Released internationally: March 19, 2015


CodeIcon.png This game has unused code.
TextIcon.png This game has unused text.


Unused Text

some message here

Placeholder message.

Unused FPS Counter

package com.fox
{
    import flash.display.*;
    import flash.events.*;
    import flash.system.*;
    import flash.text.*;
    import flash.utils.*;

    public class fpsbox extends TextField
    {
        protected var format:TextFormat;
        protected var fpsarray:Array;
        protected var targetfps:int = 0;
        protected var frames:uint = 0;

        public function fpsbox(... args)
        {
            args = null;
            frames = 0;
            format = new TextFormat();
            fpsarray = new Array();
            targetfps = 0;
            args = new Timer(1000);
            format.font = "Verdana";
            format.color = 0;
            format.size = 10;
            this.autoSize = TextFieldAutoSize.LEFT;
            this.defaultTextFormat = format;
            this.text = "-- FPS ---- AV";
            args.addEventListener(TimerEvent.TIMER, tick);
            if (args[0] is Stage)
            {
                args[0].addEventListener(Event.ENTER_FRAME, fpsloop, false, 0, true);
                targetfps = args[0].frameRate;
            }
            else
            {
                this.addEventListener(Event.ENTER_FRAME, fpsloop, false, 0, true);
            }
            args.start();
            return;
        }// end function

        public function fpsloop(event:Event) : void
        {
            var _loc_3:* = frames + 1;
            frames = _loc_3;
            return;
        }// end function

        protected function tick(event:TimerEvent) : void
        {
            var _loc_2:* = 0;
            fpsarray.push(frames);
            if (fpsarray.length == 4)
            {
                _loc_2 = 1;
                while (_loc_2 < fpsarray.length)
                {
                    
                    fpsarray[0] = fpsarray[0] + fpsarray[_loc_2];
                    _loc_2++;
                }
                fpsarray.splice(1, (fpsarray.length - 1));
                fpsarray[0] = fpsarray[0] / 4;
            }
            this.text = frames + " FPS " + Math.round(fpsarray[0]) + " AV | RAM: " + int(System.totalMemory / 1000000 * 100) / 100 + "Mb";
            frames = 0;
            return;
        }// end function

    }
}

A piece of code for an unseen FPS counter.