除了背景以外,全部使用as3代码:
var sun:Sprite = new Sprite();
sun.graphics.lineStyle(0,0xFF6600);
sun.graphics.beginFill(0xFF3300);
sun.graphics.drawCircle(0,0,40);
sun.graphics.endFill();
var earth:Sprite = new Sprite();
earth.graphics.lineStyle(0,0x92E9FE);
earth.graphics.beginFill(0x00CCFF);
earth.graphics.drawCircle(0,0,20);
earth.graphics.endFill();
var spot:Shape = new Shape();
spot.graphics.lineStyle(0,0x000000);
spot.graphics.beginFill(0x333333);
spot.graphics.drawCircle(0,0,2);
spot.graphics.endFill();
var moon:Shape = new Shape();
moon.graphics.lineStyle(0,0xFFFFCC);
moon.graphics.beginFill(0xFFFF00);
moon.graphics.drawCircle(0,0,5);
moon.graphics.endFill();
this.addChild(sun);
sun.x = 200;
sun.y = 200;
sun.addChild(spot);
spot.x = 20;
spot.y = 10;
sun.addChild(earth);
earth.x = 120;
earth.y = 0;
earth.addChild(moon);
moon.x = 50;
moon.y = 0;
stage.addEventListener(Event.ENTER_FRAME, orbit);
function orbit(evt:Event):void {
sun.rotation++;
earth.rotation+= 3;
moon.rotation-=5;
}
疯狂医院达什医生中文版(Crazy Hospital)
疯狂医院达什医生最新版是一款医院模拟经营类游戏,逼真的场景画
宝宝庄园官方版
宝宝庄园官方版是一款超级经典好玩的模拟经营类型的手游,这个游
桃源记官方正版
桃源记是一款休闲娱乐类的水墨手绘风格打造的模拟经营手游。玩家
长途巴士模拟器手机版
长途巴士模拟器汉化版是一款十分比真好玩的大巴车模拟驾驶运营类
房东模拟器最新版2024
房东模拟器中文版是一个超级有趣的模拟经营类型的手游,这个游戏