[AS3연구]직접 구현한 플캠

[AS3연구]직접 구현한 플캠

[AS3연구]직접 구현한 플캠

(AZ)아지돋2013-12-22

Likes 0Comments 3Views 0

다음이 액션스크립트입니다 : import flash.display.BitmapData; import flash.display.Bitmap; import flash.geom.Matrix; import flash.geom.Point; var bmd:BitmapData = new BitmapData(550,400,true,0x00000000) var viewer:Bitmap = new Bitmap(bmd) addChild(viewer) var showpoint:Point = new Point(mouseX - 275,mouseY - 200) stage.addEventListener("enterFrame",gogo) function gogo(e){ if(Math.abs(mouseX - 275) > 100){ showpoint.x += (mouseX - 275)/5 } if(Math.abs(mouseY - (viewer.y + 200)) > 80){ showpoint.y += (mouseY - 200)/5 } bmd.lock() bmd.fillRect(bmd.rect,0x00000000) var a = new map() var mat:Matrix = new Matrix() mat.translate(- showpoint.x, -showpoint.y) bmd.draw(a,mat) bmd.unlock() } 여기서 map은 미리 그려둔 맵의 심볼(그래픽)입니다~

No execution requirements were declared. Support in this environment is unknown.

The runtime needed for this feature has not been verified. You can still view the work and comments.

Comments

(AZ)아지돋

얼라리오 왜 대문자들이 다 소문자가 되어있지 ㅇㅂㅇ

블루캡♡

ㄴ작가방을 통해 들어오면 괜찮아져요

DS

matrix.invert()인가 그거써도될듯

Sign in