ピクロス
ピクロスゲームです。
・ゲームに使用した画像は下記のサイトよりお借りいたしました。
Whitecat:http://whitecafe.sakura.ne.jp/
・参考にさせていただいたコード。
*2009-3-14 選んだファイルを Base64 エンコードする
http://wonderfl.net/c/h1NU/
*2009-3-14 wonderfl に任意の画像を埋め込む
http://wonderfl.net/c/7ZwK
memo:swfをダウンロードして動かしても動かない・・・。作り直ししてみた。
/**
* Copyright seino ( http://wonderfl.net/user/seino )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/oFyF
*/
/*
ピクロスゲームです。
・ゲームに使用した画像は下記のサイトよりお借りいたしました。
Whitecat:http://whitecafe.sakura.ne.jp/
・参考にさせていただいたコード。
*2009-3-14 選んだファイルを Base64 エンコードする
http://wonderfl.net/c/h1NU/
*2009-3-14 wonderfl に任意の画像を埋め込む
http://wonderfl.net/c/7ZwK
memo:swfをダウンロードして動かしても動かない・・・。作り直ししてみた。
*/
package {
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.text.TextField;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.Stage;
import flash.display.Sprite;
import jp.progression.commands.Func;
import jp.progression.commands.lists.SerialList;
import jp.progression.commands.Wait;
[SWF(backgroundColor="#666666", frameRate="50")]
public class Pcrs extends Sprite {
private var questionArray:Array= [{title:"プリン" ,rimit:600,bmp:"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABc0lEQVR42mL8//8/Ay0BQAAxMdAYAAQQzS0ACCCaWwAQQCxEuYKREWtE/fv/n5GQXoAAYiHG4AgJbrzy+CwCCCAWfIZ3m3MynH2IOxRBFhvL/wOrxWUJQAAxkWs4DIDUgNTiCkaAAMJpgrSqAth1hABIDUgtLgAQQ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VORK5CYII="}
,{title:"ガラスノクツ" ,rimit:600,bmp:"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABaElEQVR42mL8//8/Ay0BQAAxMdAYAAQQzS0ACCCaWwAQQCwku4iRER5p//7/ZySkHiCAWEg1/B80UVw9dhvGx2sJQACxkGr4pPqZYH5eYzrD5aO3CFoCEEBM5Bh++NghDHkYRtcLEEAspBgOM3j17qXgIEKKC5zBBhBALMQYHuoaDeav3bMMbBjMcF1rNQZCwQYQQCzEGA4yGOZSXIaDfJfHkI5hDkAAseAyHOQSkGZChuMKNhgACCAGUFmEjoF++48Orhy9BcYwuRCXKDCG8WHyE+tmwMTAZgEEEFbDQQqxWYBsOIhNyHAQBggggi5HNhzZEHTDQXxsFgAEEN58AApTUDiDwhwEtK1UwSkFFP7IcYIPAAQQSiSDkha2zAICoEjHBWAOwAYAAghrJBMbbMhBghRsKPoBAohkC7DEA179AAHESEyViS3YiCmqQQAggBhpXScDBBDNazSAAKK5BQABRHMLAAIMADi8/NJ+qtgjAAAAAElFTkSuQmCC"}
,{title:"トイレットペーパー",rimit:600,bmp:"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABcElEQVR42mL8//8/Ay0BQAAxMdAYAAQQzS0ACCCaWwAQQDS3ACCAWEh2ESMj1lTx7/9/RmziAAHEQqrh/3CkOqgchiUAAcREjuFb5+0G8cEYxIb6AKvvAAKIAZQPiMFAp/2vy2z5jwvcOf4I5Pz/6PoAAojkOAC5WENLA0XsxrUbGGIwABBATMQGz+3jjzDE+UV4wRhmCTYAEE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AEwcGcP0IesHCCAGbJrRDcAmD3MIusHIekA0QADBg0hdSY7BjB3CPvUT06fo8jfvPcIIVmT1MD5AACHbBncZyLVYvIsijyuY0DFAAKGkIpjLTt55DXcFsstg8rGacgw5m88SFccAAYQRydmbzuCMQJjLcanBhgECiBG5uMYVnujypCRTgABipHV9ABBANM/JAAFEcwsAAojmFgAEEM0tAAggmlsAEEA0twAggGhuAUCAAQAFnj5UodewUAAAAABJRU5ErkJggg=="}
,{title:"ケイタイ" ,rimit:600,bmp:"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAhUExURdj0/19re5GuurLT4YN/h6umr0xJTujl7QEAAP///////0D9q20AAAALdFJOU/////////////8ASk8B8gAAAPVJREFUeNpi4MIBAAKIAZcEQAChS3BwcEAYAAGEJsHByckKkQEIIHQJdnaoDEAAMaBpYGSEygAEEJoEOzMTIycbSAIggBjQNDAwM7GDJQACCFWCnYmBASLOBRBADCjijAwMzFAJgABiQPYCKxMzTAMXQAAhS3CysDMxs0IlAAKIAVkcKAMT5wIIIAaEODtQho0FJgEQQAwIcVZOFhaYDVxcAAHEABcHGsTKzgaXAAggBiRxToQNXFwAAcSAQ5wLIIAgEqwgGRRxLoAAghoFlEEV5wIIIJjlrJyo4lwAAQR3LguqOBdAACE8iCrOBRBAOFMJQIABAKKFFB274I8EAAAAAElFTkSuQmCC"}
,{title:"ヒジョウグチ" ,rimit:600,bmp:"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABJ0lEQVR42mL8//8/Ay0BQACxYBM0ZmQk29az//8zIvMBAogFj0KSDQc6DEMMIICYSNGMzQBCACCAmEh1GamWAAQQEwONAUAAMREZcWTHDUAAsZCQOjCCiBjLAAKIhdzUARMnZAlAADGRYzjIUGw+wgYAAoiJ2GSJ7FKYODGWAAQQSZGMLTiQfYMNAAQQSTkZPT8QE8kAAcRCSTFATKYDCCCSczKhIEEHAAHEiF5c4ytJz2KqxYh89NIUIICwBtG0vSdQ+FnOFjjzAKFgAgggnHGAzVD0IEMPOmyWAQQQzjgA+QLZJzADkIMFG40exAABRLQPkA1GdylycKHHAUAA0by4BgggFnxBhOwb5DDGFd6wIEL2BUAAkZRMyan4AQKIkdbNFoAAAwAgUYyfCzcelgAAAABJRU5ErkJggg=="}
,{title:"ドライバ" ,rimit:600,bmp:"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAbUExURcvLy5GNlP///2JcZ78AAIIAAP9BQQEAAP///3eBx8AAAAAJdFJOU///////////AFNPeBIAAADdSURBVHjaYuDABtjZOQACiAGrOBMTO0AAMWAVZ2BkBwggrBJAcQ6AAMIiwc4MtIIDIIAwJdiByoEAIIAYMM0Bi3MABBADDnEOgABiwCHOARBADDjEOQACiAGHOAdAADHgEOcACCAGRPBA3QkFAAEEk2BnY2NGFucACCCoBDsLGxsLigRAADFAjGFlZWFBlQAIIAawchYWoAyKOAdAADGAxdnYWFlRxTkAAogBIs6GLs4BEEAMUHEMCYAAYmDHLs4BEEAM7KxYxTkAAghoBys2cQ6AAGIABwaWiAcIMAC5mBC/0+mXMwAAAABJRU5ErkJggg=="}
,{title:"バクダン" ,rimit:600,bmp:"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAqUExURXUhB71bGVENAf/TaLWnuol5j/usPJGNlMvLy2JcZzQxOAEAAP///////zyNJk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EHcxUlL4w+Ph8N+/jIOuFgEALbpm2dbbpxsAAAAASUVORK5CYII="}
];
private var questions :Array = new Array();
private var plates :Array = new Array();
private var stageWidth :int = stage.stageWidth;
private var stageHeight:int = stage.stageHeight;
private var selectStage:StageBase;
private var pzlStage :StageBase;
private var compCnt:int = 0;
public function Pcrs() {
init();
stage.addEventListener(Event.RESIZE,setPlate);
}
private function init():void{
var wideSize:int = stageWidth*0.75;
for(var i:int=0;i<questionArray.length;i++){
var question:Question = new Question(questionArray[i],wideSize,false);
question.addEventListener(CompEvent.COMPLETE,onComplete);
questions.push(question);
}
}
private function onComplete(e:Event):void{
compCnt++;
//すべての画像の読み込みが終わってから描画
if(compCnt == questionArray.length){
setPlate();
}
}
private function setPlate():void{
const INTERVAL :int = 10;
var pX :int = INTERVAL;
var pY :int = INTERVAL;
var spr :Sprite = new Sprite();
var upZoneSpr :Sprite = new StageBase(0,0,stageWidth,stageHeight/6,0x630000);
var downZoneSpr:Sprite = new StageBase(0,stageHeight/6*5,stageWidth,stageHeight/6,0x636399);
var spd :int = 0;
var sprHeight :int = 0;
selectStage = new StageBase(0,0,stageWidth,stageHeight,0x636363);
upZoneSpr.alpha = 0;
downZoneSpr.alpha = 0;
spr.addChild(upZoneSpr);
spr.addChild(downZoneSpr);
for(var i:int=0;i<questions.length;i++){
var plate:Plate = new Plate(i,questions[i]);
if(pX + plate.width > stageWidth){
pX = INTERVAL;
pY += plate.height + INTERVAL;
}
plate.x = pX;
plate.y = pY;
pX += plate.width + INTERVAL;
plate.addEventListener(MouseEvent.CLICK,plateOnClick);
spr.addChild(plate);
}
selectStage.addChild(spr);
sprHeight = spr.height;
if(sprHeight > stageHeight){
upZoneSpr.addEventListener(MouseEvent.MOUSE_MOVE,function(e:MouseEvent):void{
spd = e.target.height - e.localY;
upZoneSpr.addEventListener(Event.ENTER_FRAME,sprDownMove);
});
upZoneSpr.addEventListener(MouseEvent.ROLL_OUT,function():void{
upZoneSpr.removeEventListener(Event.ENTER_FRAME,sprDownMove);
});
downZoneSpr.addEventListener(MouseEvent.MOUSE_MOVE,function(e:MouseEvent):void{
spd = e.localY * -1;
downZoneSpr.addEventListener(Event.ENTER_FRAME,sprUpMove);
});
downZoneSpr.addEventListener(MouseEvent.ROLL_OUT,function():void{
downZoneSpr.removeEventListener(Event.ENTER_FRAME,sprUpMove);
});
}
stage.addChild(selectStage);
function sprDownMove(e:Event):void{
var y:int;
y = spr.y + spd;
if(y >= 0){
spr.y = 0;
}else{
spr.y = y;
upZoneSpr.y -= spd;
downZoneSpr.y -= spd;
}
}
function sprUpMove(e:Event):void{
var y:int;
y = spr.y + spd;
//20は微調整
if((y * (-1)) + stageHeight >= sprHeight + 20){
spr.y = stageHeight - sprHeight - 20;
}else{
spr.y += spd;
upZoneSpr.y -= spd;
downZoneSpr.y -= spd;
}
}
function onMouseMoveDownZone(e:MouseEvent):void{
var spd:int = e.localY;
trace(spd);
}
}
private function plateOnClick(e:Event):void{
pzlStage= new StageBase(0,0,stageWidth,stageHeight,0x636363);
questions[e.target.getIdx()].addEventListener(ClearEvent.CLEAR,onClear);
questions[e.target.getIdx()].addEventListener(ClearEvent.FAILED,onFailed);
questions[e.target.getIdx()].draw(pzlStage);
stage.addChild(pzlStage);
stage.removeChild(selectStage);
function onClear(e:Event):void{
var spr:Sprite = messageBar("\n " + e.target.getTitle() + " ステージクリア!!\n ");
backSelectStage(spr);
}
function onFailed(e:Event):void{
var spr:Sprite = messageBar("\n クリアシッパイ...\n ");
backSelectStage(spr);
}
}
private function backSelectStage(spr:Sprite):void{
var list:SerialList = new SerialList();
list.addCommand(new Func(function():void{pzlStage.addChild(spr)}));
list.addCommand(new Wait(3));
list.addCommand(new Func(function():void{stage.removeChild(pzlStage); }));
list.addCommand(new Func(setPlate));
list.execute();
}
private function messageBar(msg:String):Sprite{
var txt:TextField = new TextField();
var format:TextFormat = new TextFormat();
format.align = TextFormatAlign.JUSTIFY;
format.font = "MS ゴシック";
format.color = 0xFFFFFF;
format.size = 10;
txt.selectable = false;
txt.autoSize = TextFieldAutoSize.LEFT;
txt.defaultTextFormat = format;
txt.appendText(msg);
var spr:Sprite = new Sprite();
spr.graphics.lineStyle (2, 0x222222, 1);
spr.graphics.beginFill(0x666666,1);
spr.graphics.drawRoundRect(0, 0, txt.width, txt.height , 5 , 5);
spr.graphics.endFill();
spr.x = stageWidth / 2 - spr.width /2;
spr.y = stageHeight / 2 - spr.height /2;
spr.addChild(txt);
return spr;
}
}
}
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import flash.geom.Matrix;
import flash.geom.Rectangle;
import flash.geom.Point;
import flash.geom.ColorTransform;
import flash.display.BlendMode;
import flash.display.Sprite;
import flash.display.Loader;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.DisplayObjectContainer;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.text.TextFormatAlign;
import flash.utils.ByteArray;
import flash.utils.Timer;
import mx.utils.Base64Decoder;
class StageBase extends Sprite{
public function StageBase(_x:int,_y:int,_width:int,_height:int,_fillColor:Number){
x = _x;
y = _y;
graphics.beginFill(_fillColor,1);
graphics.drawRect(0, 0, _width, _height );
graphics.endFill();
}
}
class Plate extends Sprite{
private var idx:int;
public function getIdx():int{
return idx;
}
public function Plate(_idx:int,_quest:Object):void{
var w :int = 50;
var h :int = 50;
var r :int = 20;
var bmd:BitmapData = _quest.getAnsBmpData().clone();
idx = _idx;
alpha = 0.01;
if(_quest.getCleared() == false){
changeMonoclome(bmd);
}
var bmp:Bitmap = new Bitmap(bmd);
bmp.scaleX = (w / bmp.width) - 0.6;
bmp.scaleY = (h / bmp.height) -0.6;
bmp.x = 5;
bmp.y = 5;
bmp.alpha = _quest.getCleared() ? 1.0 : 0.1;
bmp.blendMode = BlendMode.DARKEN;
graphics.lineStyle (1, 0x000000, 1);
graphics.beginFill(0xFFFFFE,1);
graphics.drawRoundRect(0, 0, w, h , r , r);
graphics.endFill();
addChild(bmp);
buttonMode = true;
addEventListener(Event.ENTER_FRAME,onEnterFrame);
addEventListener(MouseEvent.ROLL_OVER,function():void{alpha = 0.5})
addEventListener(MouseEvent.ROLL_OUT,function():void{alpha = 1})
}
private function onEnterFrame(e:Event):void{
if(alpha >= 1){
removeEventListener(Event.ENTER_FRAME,onEnterFrame);
return;
}
alpha += 0.05;
}
private function changeMonoclome(bmd:BitmapData):void{
for(var h:int=0;h<bmd.height;h++){
for(var w:int=0;w<bmd.width;w++){
var col:uint = bmd.getPixel(w,h);
switch(true){
case col <= 0xFFFFFF && col >= 0xDDDDDD:
bmd.setPixel(w,h,0xFFFFFF);
break;
case col < 0xDDDDD && col >= 0xAAAAAA:
bmd.setPixel(w,h,0xAAAAAA);
break;
case col < 0xAAAAAA && col >= 0x999999:
bmd.setPixel(w,h,0x999999);
break;
case col < 0x999999 && col >= 0x555555:
bmd.setPixel(w,h,0x555555);
break;
case col < 0x55555 && col >= 0x222222:
bmd.setPixel(w,h,0x222222);
break;
default:
bmd.setPixel(w,h,0x000000);
}
}
}
}
}
class Cell extends Sprite{
private const LINE_COLOR:Number = 0x666666;
private var stat :Boolean = true;
private var ans :Boolean;
private var color :Number;
private var fillColor:Number;
private var wIdx :int;
private var vIdx :int;
private var side :int;
public function getvIdx():int{
return vIdx;
}
public function getwIdx():int{
return wIdx;
}
public function Cell(_side:int,_ans:Boolean,_color:Number,_wIdx:int,_vIdx:int,_fillColor:Number):void{
ans = _ans;
color = _color;
wIdx = _wIdx;
vIdx = _vIdx;
side = _side;
fillColor = _fillColor;
}
public function draw():void{
graphics.clear();
graphics.beginFill(fillColor, 1);
graphics.drawRect(0,0,side,side);
graphics.endFill();
graphics.lineStyle(0.1, LINE_COLOR);
graphics.drawRect(0,0,side,side);
}
public function colorChange():void{
graphics.clear();
var colorTransForm:ColorTransform = new ColorTransform();
colorTransForm.redMultiplier = 1;
colorTransForm.greenMultiplier = 1;
colorTransForm.blueMultiplier = 1;
transform.colorTransform = colorTransForm;
graphics.beginFill(color, 1);
graphics.drawRect(0,0,side,side);
graphics.endFill();
graphics.lineStyle(0.1, LINE_COLOR);
graphics.drawRect(0,0,side,side);
}
public function getAns():Boolean{
return ans;
}
public function getStat():Boolean{
return stat;
}
public function setStat(bool:Boolean):void{
stat = bool;
}
public function cngStat():void{
stat = !stat;
var iTra:int = stat ? 1 : 0;
var colorTransForm:ColorTransform = new ColorTransform();
colorTransForm.redMultiplier = iTra;
colorTransForm.greenMultiplier = iTra;
colorTransForm.blueMultiplier = iTra;
transform.colorTransform = colorTransForm;
}
}
class SideBar extends Sprite {
private var idx:int;
public function getIdx():int{
return idx;
}
public function SideBar(_idx:int,_width:int,_height:int,_fillColor:uint):void{
idx = _idx;
graphics.lineStyle (0.1, 0x000000, 1);
graphics.beginFill(_fillColor,1);
graphics.drawRoundRect(0, 0, _width, _height , 0 , 0);
graphics.endFill();
}
}
class ClearEvent extends Event{
public static const CLEAR:String = "clear";
public static const FAILED:String = "failed";
public function ClearEvent(type:String){
super(type);
}
}
class CompEvent extends Event{
public static const COMPLETE:String = "complete";
public function CompEvent(type:String){
super(type);
}
}
class Question extends Sprite{
private var ansBmp:Bitmap = new Bitmap();
private var ansBmpData:BitmapData;
private var cellMap:Array = new Array();
private var vHints:Array;
private var wHints:Array ;
private var vHintsSpr:Array;
private var wHintsSpr:Array ;
private var stageSize:int;
private var quest:Object;
private var cleared:Boolean;
private var pHeight:int;
private var pWidth:int;
private var timer:Timer;
public function getCleared():Boolean{
return cleared;
}
public function setCleared(bool:Boolean):void{
cleared = bool;
}
public function getTitle():String{
return quest.title;
}
public function getAnsBmpData():BitmapData{
return ansBmpData;
}
public function Question(_quest:Object,_stageSize:int,_cleared:Boolean){
cleared = _cleared;
quest = _quest;
stageSize = _stageSize;
ansBmpData = base64StringDecoder(_quest.bmp);
ansBmp.bitmapData = ansBmpData;
}
public function draw(parent:Object):void{
this.mouseChildren = true;
pHeight = parent.height;
pWidth = parent.width;
var cY :int = pHeight *0.25;
for(var rowLen:int=0;rowLen < cellMap.length;rowLen++){
var cX:int = parent.width *0.25;
for (var colLen:int=0;colLen<cellMap[rowLen].length;colLen++){
var cellSpl:Cell = cellMap[rowLen][colLen];
cellSpl.draw();
cellSpl.setStat(false);
cellSpl.cngStat();
cellSpl.x = cX;
cellSpl.y = cY;
cX += cellSpl.width;
cellSpl.addEventListener(MouseEvent.MOUSE_DOWN,cellDown);
cellSpl.addEventListener(MouseEvent.ROLL_OVER ,cellRoll);
cellSpl.addEventListener(MouseEvent.ROLL_OUT ,cellRoll);
this.addChild(cellSpl);
}
cY += cellMap[rowLen][0].height;
}
drawVhints(pWidth *0.25 ,pHeight *0.25);
drawWhints(pWidth *0.25 ,pHeight *0.25);
drawMenu(pWidth *0.25 ,pHeight *0.25);
parent.addChild(this);
}
private function drawVhints(_cX:int,_cY:int):void{
var cX :int = _cX;
var cY :int = _cY;
var vHintWidth :Number = cX;
var vHintHeight:Number = cellMap[0][0].height;
vHintsSpr = new Array();
for(var i:int = 0;i<vHints.length;i++){
var bgcolor:uint = i%2 ? 0xECF7E9 : 0xE6F0F4;
var bar :SideBar = new SideBar(i,vHintWidth,vHintHeight,bgcolor);
var txt :TextField = new TextField();
var format :TextFormat = new TextFormat();
bar.x = 0;
bar.y = cY;
format.align = TextFormatAlign.RIGHT;
format.font = "MS ゴシック";
format.size = 10;
txt.autoSize = TextFieldAutoSize.RIGHT;
txt.selectable = false;
txt.defaultTextFormat = format;
for(var m:int = 0;m < vHints[i].length;m++){
txt.appendText(vHints[i][m]);
txt.appendText(" ");
}
txt.y = 1;
cY += vHintHeight;
bar.addChild(txt);
vHintsSpr.push(bar);
this.addChild(bar);
}
}
private function drawWhints(_cX:int,_cY:int):void{
var cX :int = _cX;
var cY :int = _cY;
var wHintWidth :Number = cellMap[0][0].width;
var wHintHeight:Number = cY;
wHintsSpr = new Array();
for(var i:int = 0;i<wHints.length;i++){
var bgcolor:uint = i%2 ? 0xECF7E9 : 0xE6F0F4;
var bar :SideBar = new SideBar(i,wHintWidth,wHintHeight,bgcolor);
var format :TextFormat = new TextFormat();
var txt :TextField = new TextField();
bar.x = cX;
bar.y = 0;
format.align = TextFormatAlign.CENTER;
format.font = "MS ゴシック";
format.size = 10;
txt.defaultTextFormat = format;
for(var m:int = 0;m < wHints[i].length;m++){
txt.appendText(wHints[i][m]);
txt.appendText("\n");
}
txt.width = wHintWidth;
txt.autoSize = TextFieldAutoSize.CENTER;
txt.y = bar.height - txt.height-1;
txt.selectable = false;
cX += wHintWidth;
bar.addChild(txt);
wHintsSpr.push(bar);
this.addChild(bar);
}
}
private function drawMenu(_cX:int,_cY:int):void{
var menuSpr:Sprite = new Sprite();
var infoTxt:TextField = new TextField();
var format :TextFormat = new TextFormat();
menuSpr.x = 0;
menuSpr.y = 0;
menuSpr.graphics.lineStyle (2, 0x000000, 1);
menuSpr.graphics.beginFill(0x666666, 1);
menuSpr.graphics.drawRect(0,0,_cX,_cY);
menuSpr.graphics.endFill();
format.align = TextFormatAlign.LEFT;
format.color = 0xFFFFFF;
format.font = "MS ゴシック";
infoTxt.defaultTextFormat = format;
infoTxt.selectable = false;
infoTxt.autoSize = TextFieldAutoSize.LEFT;
infoTxt.appendText(" タテ[" + (cellMap.length) + "]\n");
infoTxt.appendText(" ヨコ[" + cellMap[0].length + "]\n");
var timerTxt:TextField = new TextField();
var rimit :int = quest.rimit;
timerTxt.defaultTextFormat = format;
timerTxt.text = "ノコリジカン[" + secToMin(rimit) + "]"
timerTxt.y = infoTxt.height;
timer = new Timer(1000);
timer.addEventListener("timer", function():void{
rimit -= 1;
if(rimit == 0){
dispatchEvent(new Event(ClearEvent.FAILED));
timer.removeEventListener("timer",arguments.callee);
}else if(rimit <= 30 ){
timerTxt.textColor = 0xFF6262;
}
timerTxt.text = "ノコリジカン[" + secToMin(rimit) + "]";
});
timer.start();
var giveTxt:TextField = new TextField();
giveTxt.defaultTextFormat = format;
giveTxt.selectable = false;
giveTxt.autoSize = TextFieldAutoSize.LEFT;
giveTxt.appendText("ギブアップ?");
giveTxt.addEventListener(MouseEvent.ROLL_OVER,txtRollOver);
giveTxt.addEventListener(MouseEvent.ROLL_OUT,txtRollOut);
giveTxt.addEventListener(MouseEvent.CLICK,dispConfirm);
giveTxt.y = menuSpr.height * 0.75;
menuSpr.addChild(infoTxt);
menuSpr.addChild(timerTxt);
this.addChild(menuSpr);
this.addChild(giveTxt);
function secToMin(_sec:int):String{
var sec:int = (_sec % 60);
var secStr:String = sec < 10 ? "0" + sec : "" + sec;
return Math.floor(_sec / 60) + ":" + secStr ;
}
}
private function dispConfirm(e:MouseEvent):void{
var spr:Sprite = confirmSpr();
e.target.parent.addChild(spr);
}
private function confirmSpr():Sprite{
timer.stop();
var spr :Sprite = new Sprite();
var txtConf:TextField = new TextField();
var txtYes :TextField = new TextField();
var txtNo :TextField = new TextField();
var format :TextFormat = new TextFormat();
spr.graphics.lineStyle (2, 0x222222, 1);
spr.graphics.beginFill(0x333333,0.5);
spr.graphics.drawRect(0, 0, pWidth, pHeight);
spr.graphics.endFill();
format.align = TextFormatAlign.JUSTIFY;
format.font = "MS ゴシック";
format.color = 0xFFFFFF;
format.size = 10;
txtConf.defaultTextFormat = format;
txtConf.autoSize = TextFieldAutoSize.CENTER;
txtConf.selectable = false;
txtConf.x = pWidth / 2 - 30;
txtConf.y = pHeight / 2- 10;
txtConf.appendText("ギブアップ シマスカ?");
txtYes.defaultTextFormat = format;
txtYes.autoSize = TextFieldAutoSize.CENTER;
txtYes.selectable = false;
txtYes.x = txtConf.x;
txtYes.y = txtConf.y + 30;
txtYes.appendText("ハイ");
txtYes.addEventListener(MouseEvent.ROLL_OVER,txtRollOver);
txtYes.addEventListener(MouseEvent.ROLL_OUT,txtRollOut);
txtYes.addEventListener(MouseEvent.CLICK,function():void{spr.mouseChildren = false;
dispatchEvent(new Event(ClearEvent.FAILED));});
txtNo.defaultTextFormat = format;
txtNo.autoSize = TextFieldAutoSize.CENTER;
txtNo.selectable = false;
txtNo.x = txtConf.x + 60;
txtNo.y = txtConf.y + 30;
txtNo.appendText("イイエ");
txtNo.addEventListener(MouseEvent.ROLL_OVER,txtRollOver);
txtNo.addEventListener(MouseEvent.ROLL_OUT,txtRollOut);
txtNo.addEventListener(MouseEvent.CLICK,function():void{spr.parent.removeChild(spr);
timer.start();});
spr.addChild(txtConf);
spr.addChild(txtYes);
spr.addChild(txtNo);
return spr;
}
private function txtRollOver(e:MouseEvent):void{
e.target.border = true;
e.target.background = true;
e.target.backgroundColor = 0xCCCCCC;
}
private function txtRollOut(e:MouseEvent):void{
e.target.border = false;
e.target.background = false;
}
private function cellRoll(e:MouseEvent):void{
const ALPHA_LV:Number = 0.9;
var tgV :int = e.target.getvIdx();
var tgW :int = e.target.getwIdx();
var i :int;
var m :int;
if(e.type == MouseEvent.ROLL_OUT){
for( i=0;i<cellMap.length;i++){setShadow(cellMap[i][tgV],1);}
for( m=0;m<cellMap[tgV].length;m++){setShadow(cellMap[tgW][m],1);}
setShadow(vHintsSpr[tgW],1);
setShadow(wHintsSpr[tgV],1);
}
else if(e.type == MouseEvent.ROLL_OVER){
if(e.buttonDown){
cellDown(e);
}
for( i=0;i<cellMap.length;i++){setShadow(cellMap[i][tgV],ALPHA_LV);}
for( m=0;m<cellMap[tgV].length;m++){setShadow(cellMap[tgW][m],ALPHA_LV);}
setShadow(vHintsSpr[tgW],ALPHA_LV);
setShadow(wHintsSpr[tgV],ALPHA_LV);
setShadow(e.target, 1);
}
}
public function setShadow(tgt:*,iTra:Number):void{
tgt.alpha = iTra;
}
private function cellDown(e:MouseEvent):void{
e.target.cngStat();
if(ansCheck(e)){
cleared = true;
onCrear();
};
}
private function onCrear():void{
timer.stop();
for(var v:int=0;v<cellMap.length;v++){
for(var w:int = 0;w<cellMap[v].length;w++){
cellMap[v][w].colorChange();
}
}
//カスタムイベントの送出
dispatchEvent(new Event(ClearEvent.CLEAR));
this.mouseChildren = false;
}
private function ansCheck(e:MouseEvent):Boolean{
if(e.target.getAns() != e.target.getStat()){
return false;
}
for(var rowLen:int=0;rowLen < cellMap.length;rowLen++){
for (var colLen:int=0;colLen<cellMap[rowLen].length;colLen++){
var _cell:Cell = cellMap[rowLen][colLen];
if(_cell.getAns() != _cell.getStat()){
return false;
}
}
}
return true;
}
private function base64StringDecoder(_data:String):BitmapData{
const MAXPIXEL_NUM :int = 100; //問題にする画像の最大縦横ピクセルサイズ。画面が大きくなれば大きくしていいと思う。
var byteArray :ByteArray;
var base64Decoder:Base64Decoder;
var loader :Loader;
var bmd :BitmapData = new BitmapData(MAXPIXEL_NUM, MAXPIXEL_NUM, false, 0xFFFFFF);
var rtnBmd :BitmapData;
base64Decoder = new Base64Decoder();
base64Decoder.decode(_data);
try {
byteArray = base64Decoder.toByteArray();
byteArray.position = 0;
} catch (e:Error) {
return null;
}
loader = new Loader();
loader.loadBytes(byteArray);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE
,function(e:Event):void
{
var v:int,w:int =0;//ループインデクサ
bmd.draw(loader);
//問題範囲として必要なサイズの割り出し
//このへんの処理は蛇足的。
var u:Number = MAXPIXEL_NUM;
var l:Number = MAXPIXEL_NUM;
var d:Number = 0;
var r:Number = 0;
for(v = 0;v < bmd.height;v++){
for(w = 0;w < bmd.width;w++){
if(bmd.getPixel(w,v) != 0xFFFFFF){
var tmpPoint:Point = new Point(w,v);
u = (u >= tmpPoint.y) ? tmpPoint.y : u;//左上
d = (d <= tmpPoint.y) ? tmpPoint.y : d;//右上
l = (l >= tmpPoint.x) ? tmpPoint.x : l;//左上
r = (r <= tmpPoint.x) ? tmpPoint.x : r;//右上
}
}
}
//切り抜き範囲の大きさ
var rect:Rectangle = new Rectangle(0,0,r-l+1,d-u+1);
var mat :Matrix = new Matrix();
//切り抜き開始地点の指定
mat.translate(-l,-u);
rtnBmd = new BitmapData(r-l+1, d-u+1, false, 16711422);
rtnBmd.draw(loader,mat,null,null,rect);
var vSize:int = rtnBmd.height;
var wSize:int = rtnBmd.width;
var side:int = (function(vNum:int,wNum:int):int{
return stageSize / (vNum > wNum ? vNum : wNum);
})(vSize,wSize);
vHints = new Array(vSize);
wHints = new Array(wSize);
for ( v =0;v<vSize;v++){
var cellLine:Array = new Array();//1行分
for (w =0;w<wSize;w++){
var pixelColor:Number = rtnBmd.getPixel(w,v);
var ans :Boolean = pixelColor > 0x808080 ?true:false;
var fillColor :Number;
if(v%10 >= 5){
fillColor = w%10 >= 5 ? 0xFFFFF0 : 0xFFFFE0;
}else{
fillColor = w%10 >= 5 ? 0xFFFFE0 : 0xFFFFF0;
}
var _cell:Cell = new Cell(side,ans,pixelColor,v,w,fillColor);
cellLine.push(_cell);
vHints[v] = vHints[v] == null ? [0] : vHints[v] ;
wHints[w] = wHints[w] == null ? [0] : wHints[w] ;
if (!ans){
vHints[v].push(vHints[v].pop() + 1);
wHints[w].push(wHints[w].pop() + 1);
}else{
vHints[v].push(0);
wHints[w].push(0);
}
}
cellMap.push(cellLine);
}
delElm(vHints,0);
delElm(wHints,0);
ansBmpData = rtnBmd;
dispatchEvent(new Event(CompEvent.COMPLETE));
function delElm(arr:Array,val:*):void{
for(var i:int = 0;i<arr.length;i++){
_delElm(arr[i],0);
}
function _delElm(arr:Array,val:*):void{
var flg:Boolean = true;
while(flg){
var i:int = arr.indexOf(val);
if(i==-1){
flg=false;
break;
}else{
arr.splice(i,1);
}
}
}
}
});
return rtnBmd;
}
}