日期:2013-07-05 浏览次数:20639 次
- package {
- import flash.display.Sprite;
- import flash.text.TextField;
- import flash.events.Event;
- import flash.events.KeyboardEvent;
- import flash.utils.getTimer;
- import org.papervision3d.materials.*;
- import org.papervision3d.materials.utils.*;
- import org.papervision3d.materials.shadematerials.FlatShadeMaterial;
- import org.papervision3d.lights.PointLight3D;
- import org.papervision3d.objects.*;
- import org.papervision3d.objects.primitives.*
- import org.papervision3d.view.*;
- import org.papervision3d.scenes.Scene3D;
- [SWF(backgroundColor = "0x000000", frameRate = "24")]
- public class Tetris extends BasicView {
- private const W:int = 10;
- private const H:int = 20;
- private const UNIT:int = 16;
- private const COLOR:Array =[0x000000, 0x00FFFF, 0xFFFF00, 0x22FF22,
0xFF2222,