RC3D

by hemingway
♥0 | Line 34 | Modified 2015-03-26 06:55:39 | MIT License
play

ActionScript3 source code

/**
 * Copyright hemingway ( http://wonderfl.net/user/hemingway )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/wWvI
 */

package {
    import flash.display.Sprite;
    
    [SWF(frameRate=60, width=465, height=465)]
    public class InitScene extends Sprite {
    
        private var mapWidth:int = 0;
        private var mapHeight:int = 0;
        private var sceneMap:Vector.<Vector.<int>> = new <Vector.<int>> [
            new <int> [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
            new <int> [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
            new <int> [1,0,0,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
            new <int> [1,0,0,3,0,3,0,0,1,1,1,2,1,1,1,1,1,2,1,1,1,2,1,0,0,0,0,0,0,0,0,1],
            new <int> [1,0,0,3,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
            new <int> [1,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
            new <int> [1,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,1,1,1,1,1],
            new <int> [1,0,0,3,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1]
        ];
        
        public function InitScene() {
            this.mapWidth = sceneMap[0].length;
            this.mapHeight = sceneMap.length;
        }
    }
}

import flash.display.Bitmap;

internal class RayEngine extends Bitmap {
    public function RayEngine() {
        
    }
}

internal class Player {
    public var x :int;
    public var y :int;
    public var rotation :int;
    public var rotationSpeed :Number;
    public var speed :int;
}