8분만에 angry bird 만들기
DESCRIPTION
TRANSCRIPT
Newheart����������� ������������������ 내부����������� ������������������ 세미나����������� ������������������ 인턴����������� ������������������ 최제필
8분만에����������� ������������������ ‘Angry����������� ������������������ Bird’����������� ������������������ 만들기����������� ������������������ with����������� ������������������ Corona����������� ������������������ SDK
13년 4월 18일 목요일
8분만에����������� ������������������ ‘Angry����������� ������������������ Bird’����������� ������������������ 만들기����������� ������������������ 가능할까요?
13년 4월 18일 목요일
올ㅋ
13년 4월 18일 목요일
연사����������� ������������������ 소개최제필����������� ������������������ |����������� ������������������ Newheart����������� ������������������ 인턴
KAIST����������� ������������������ 글로벌기술창업자����������� ������������������ 육성사업����������� ������������������ 최연소����������� ������������������ CEO����������� ������������������ 선정
대한민국����������� ������������������ SW����������� ������������������ Maestro����������� ������������������ 2기
삼성전자����������� ������������������ 슈퍼루키멤버십����������� ������������������ 게임����������� ������������������ 분야
“아직도����������� ������������������ PT����������� ������������������ 만들����������� ������������������ 때����������� ������������������ 영어����������� ������������������ 문법����������� ������������������ 틀릴까봐����������� ������������������ 무서워요”
2011����������� ������������������ 대한민국����������� ������������������ 게임대상����������� ������������������ 우수상����������� ������������������ (문화체육부장관상)
2010����������� ������������������ 대한민국����������� ������������������ 인디게임����������� ������������������ 및����������� ������������������ 게임����������� ������������������ 아이디어����������� ������������������ 공모전����������� ������������������ 대상����������� ������������������ (문화체육부장관상)
2011����������� ������������������ 청년프론티어����������� ������������������ 앱����������� ������������������ 창업����������� ������������������ 경진대회����������� ������������������ 최우수상����������� ������������������ 외����������� ������������������ 12건
청년프론티어����������� ������������������ 앱����������� ������������������ 창업����������� ������������������ 지원사업����������� ������������������ ‘Coaching����������� ������������������ Startup’����������� ������������������ 우수사례����������� ������������������ 발표
KSIA����������� ������������������ 제����������� ������������������ 4회����������� ������������������ ‘IT인들의����������� ������������������ 마음����������� ������������������ 속����������� ������������������ 이야기’����������� ������������������ -����������� ������������������ ‘청년����������� ������������������ 스타트업의����������� ������������������ 허와����������� ������������������ 실’����������� ������������������ 강연
삼성����������� ������������������ 슈퍼루키멤버십����������� ������������������ 자기����������� ������������������ 소개����������� ������������������ 분야����������� ������������������ -����������� ������������������ ‘그래도����������� ������������������ 우리는����������� ������������������ 게임을����������� ������������������ 만든다’����������� ������������������ 발표����������� ������������������ 외����������� ������������������ 5건
EBS����������� ������������������ 창업오디션����������� ������������������ <브레인����������� ������������������ 빅뱅>����������� ������������������ Top����������� ������������������ 12����������� ������������������ 최연소����������� ������������������ 합격����������� ������������������ 및����������� ������������������ 7부작����������� ������������������ 출연
KBS����������� ������������������ 특성화고����������� ������������������ 입사프로젝트����������� ������������������ <스카우트>����������� ������������������ SK����������� ������������������ Planet편����������� ������������������ 최종����������� ������������������ 4인����������� ������������������ 진출����������� ������������������ 및����������� ������������������ 출연
YTN����������� ������������������ Science����������� ������������������ <마이웨이����������� ������������������ 25시>����������� ������������������ 한국애니메이션고등학교����������� ������������������ 편����������� ������������������ 출연
13년 4월 18일 목요일
About����������� ������������������ Corona����������� ������������������ SDK
13년 4월 18일 목요일
not����������� ������������������ Beer����������� ������������������ :Di����������� ������������������ want����������� ������������������ to����������� ������������������ drink
13년 4월 18일 목요일
About����������� ������������������ Corona����������� ������������������ SDK
1.Go����������� ������������������ Cross-Platform����������� ������������������ with����������� ������������������ ease
13년 4월 18일 목요일
About����������� ������������������ Corona����������� ������������������ SDK
1.Go����������� ������������������ Cross-Platform����������� ������������������ with����������� ������������������ ease
2. Develop����������� ������������������ Apps����������� ������������������ 10x����������� ������������������ Faster
13년 4월 18일 목요일
About����������� ������������������ Corona����������� ������������������ SDK
1.Go����������� ������������������ Cross-Platform����������� ������������������ with����������� ������������������ ease
2. Develop����������� ������������������ Apps����������� ������������������ 10x����������� ������������������ Faster
3. Develop����������� ������������������ Business,����������� ������������������ E-Book,����������� ������������������ ����������� ������������������ Educational����������� ������������������ Apps
13년 4월 18일 목요일
세계를����������� ������������������ 창조해봐요Created����������� ������������������ the����������� ������������������ World!
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(50,����������� ������������������ 80,����������� ������������������ 30)
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(50,����������� ������������������ 80,����������� ������������������ 30)
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(50,����������� ������������������ 80,����������� ������������������ 30)
있으면����������� ������������������ 지역����������� ������������������ 변수,����������� ������������������ 없으면����������� ������������������ 전역����������� ������������������ 변수
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(50,����������� ������������������ 80,����������� ������������������ 30)
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"
physics.start()
physics.addBody(myBall,����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ })
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
PT1����������� ������������������ 프로젝트����������� ������������������ 시연
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(50,����������� ������������������ 80,����������� ������������������ 30)
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"
physics.start()
physics.addBody(myBall,����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ })
==����������� ������������������ C����������� ������������������ :����������� ������������������ #include,����������� ������������������ C#����������� ������������������ :����������� ������������������ using,����������� ������������������ java����������� ������������������ :����������� ������������������ import
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(50,����������� ������������������ 80,����������� ������������������ 30)
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"
physics.start()
physics.addBody(myBall,����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ }) 물체����������� ������������������ 속성
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
Open����������� ������������������ in����������� ������������������ your����������� ������������������ Editor
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
settings����������� ������������������ =����������� ������������������ {����������� ������������������ ����������� ������������������ orientation����������� ������������������ =����������� ������������������ {����������� ������������������ ����������� ������������������ default����������� ������������������ =����������� ������������������ "landscapeRight",����������� ������������������ ����������� ������������������ supported����������� ������������������ =����������� ������������������ {����������� ������������������ "landscapeRight",����������� ������������������ }����������� ������������������ },����������� ������������������ ����������� ������������������ iphone����������� ������������������ =����������� ������������������ {����������� ������������������ ����������� ������������������ plist����������� ������������������ =����������� ������������������ {����������� ������������������ ����������� ������������������ ����������� ������������������ UIStatusBarHidden����������� ������������������ =����������� ������������������ false,����������� ������������������ ����������� ������������������ ����������� ������������������ UIPrerenderedIcon����������� ������������������ =����������� ������������������ true,����������� ������������������ --����������� ������������������ set����������� ������������������ to����������� ������������������ false����������� ������������������ for����������� ������������������ "shine"����������� ������������������ overlay����������� ������������������ ����������� ������������������ ����������� ������������������ --UIApplicationExitsOnSuspend����������� ������������������ =����������� ������������������ true,����������� ������������������ --����������� ������������������ uncomment����������� ������������������ to����������� ������������������ quit����������� ������������������ app����������� ������������������ on����������� ������������������ suspend
����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ --[[����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ --����������� ������������������ iOS����������� ������������������ app����������� ������������������ URL����������� ������������������ schemes:����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ CFBundleURLTypes����������� ������������������ =����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ {����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ {����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ CFBundleURLSchemes����������� ������������������ =����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ {����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ "fbXXXXXXXXXXXXXX",����������� ������������������ --����������� ������������������ example����������� ������������������ scheme����������� ������������������ for����������� ������������������ facebook����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ "coronasdkapp",����������� ������������������ --����������� ������������������ example����������� ������������������ second����������� ������������������ scheme����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ }����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ }����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ }����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ --]]����������� ������������������ ����������� ������������������ }����������� ������������������ },����������� ������������������ ����������� ������������������ --[[����������� ������������������ --����������� ������������������ Android����������� ������������������ permissions
����������� ������������������ androidPermissions����������� ������������������ =����������� ������������������ {����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ "android.permission.INTERNET",����������� ������������������ ����������� ������������������ ����������� ������������������ },
����������� ������������������ ]]--}
<-����������� ������������������ Add����������� ������������������ Code
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(100,����������� ������������������ 250,����������� ������������������ 30);
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"physics.start();physics.setDrawMode("debug");physics.addBody(myBall,����������� ������������������ "static",����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ });
local����������� ������������������ start_touch_x,����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ 0,����������� ������������������ 0;myBall.touch����������� ������������������ =����������� ������������������ function(self,����������� ������������������ event)����������� ������������������ if����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "began"����������� ������������������ then����������� ������������������ ����������� ������������������ start_touch_x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ elseif����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "moved"����������� ������������������ then����������� ������������������ ����������� ������������������ self.x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ ����������� ������������������ self.y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ else����������� ������������������ ����������� ������������������ self.bodyType����������� ������������������ =����������� ������������������ "dynamic";����������� ������������������ ����������� ������������������ self:applyForce((start_touch_x����������� ������������������ -����������� ������������������ self.x)����������� ������������������ *����������� ������������������ 13,����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ (start_touch_y����������� ������������������ -����������� ������������������ self.y)����������� ������������������ *����������� ������������������ 13,����������� ������������������ self.x,����������� ������������������ self.y);����������� ������������������ endendmyBall:addEventListener("touch",����������� ������������������ self)
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
PT2����������� ������������������ 프로젝트����������� ������������������ 시연
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(100,����������� ������������������ 250,����������� ������������������ 30);
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"physics.start();physics.setDrawMode("debug");physics.addBody(myBall,����������� ������������������ "static",����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ });
local����������� ������������������ start_touch_x,����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ 0,����������� ������������������ 0;myBall.touch����������� ������������������ =����������� ������������������ function(self,����������� ������������������ event)����������� ������������������ if����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "began"����������� ������������������ then����������� ������������������ ����������� ������������������ start_touch_x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ elseif����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "moved"����������� ������������������ then����������� ������������������ ����������� ������������������ self.x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ ����������� ������������������ self.y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ else����������� ������������������ ����������� ������������������ self.bodyType����������� ������������������ =����������� ������������������ "dynamic";����������� ������������������ ����������� ������������������ self:applyForce((start_touch_x����������� ������������������ -����������� ������������������ self.x)����������� ������������������ *����������� ������������������ 13,����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ (start_touch_y����������� ������������������ -����������� ������������������ self.y)����������� ������������������ *����������� ������������������ 13,����������� ������������������ self.x,����������� ������������������ self.y);����������� ������������������ endendmyBall:addEventListener("touch",����������� ������������������ self)
dynamic����������� ������������������ 공,����������� ������������������ 박스����������� ������������������ static����������� ������������������ 벽,����������� ������������������ 바닥
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(100,����������� ������������������ 250,����������� ������������������ 30);
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"physics.start();physics.setDrawMode("debug");physics.addBody(myBall,����������� ������������������ "static",����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ });
local����������� ������������������ start_touch_x,����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ 0,����������� ������������������ 0;myBall.touch����������� ������������������ =����������� ������������������ function(self,����������� ������������������ event)����������� ������������������ if����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "began"����������� ������������������ then����������� ������������������ ����������� ������������������ start_touch_x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ elseif����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "moved"����������� ������������������ then����������� ������������������ ����������� ������������������ self.x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ ����������� ������������������ self.y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ else����������� ������������������ ����������� ������������������ self.bodyType����������� ������������������ =����������� ������������������ "dynamic";����������� ������������������ ����������� ������������������ self:applyForce((start_touch_x����������� ������������������ -����������� ������������������ self.x)����������� ������������������ *����������� ������������������ 13,����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ (start_touch_y����������� ������������������ -����������� ������������������ self.y)����������� ������������������ *����������� ������������������ 13,����������� ������������������ self.x,����������� ������������������ self.y);����������� ������������������ endendmyBall:addEventListener("touch",����������� ������������������ self)
Touch����������� ������������������ Event����������� ������������������ ==
local����������� ������������������ function����������� ������������������ touchEvent(event)����������� ������������������ ...
endmyBall:addEventListener(“touch”,����������� ������������������ touchEvent)
or
function����������� ������������������ myBall:touch(event)...
endmyBall:addEventListener(“touch”,����������� ������������������ myBall)
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(100,����������� ������������������ 250,����������� ������������������ 30);
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"physics.start();physics.setDrawMode("debug");physics.addBody(myBall,����������� ������������������ "static",����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ });
local����������� ������������������ start_touch_x,����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ 0,����������� ������������������ 0;myBall.touch����������� ������������������ =����������� ������������������ function(self,����������� ������������������ event)����������� ������������������ if����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "began"����������� ������������������ then����������� ������������������ ����������� ������������������ start_touch_x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ elseif����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "moved"����������� ������������������ then����������� ������������������ ����������� ������������������ self.x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ ����������� ������������������ self.y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ else����������� ������������������ ����������� ������������������ self.bodyType����������� ������������������ =����������� ������������������ "dynamic";����������� ������������������ ����������� ������������������ self:applyForce((start_touch_x����������� ������������������ -����������� ������������������ self.x)����������� ������������������ *����������� ������������������ 13,����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ (start_touch_y����������� ������������������ -����������� ������������������ self.y)����������� ������������������ *����������� ������������������ 13,����������� ������������������ self.x,����������� ������������������ self.y);����������� ������������������ endendmyBall:addEventListener("touch",����������� ������������������ self)
self����������� ������������������ ==����������� ������������������ myBall(함수����������� ������������������ 내에서����������� ������������������ self����������� ������������������ 키워드로����������� ������������������ 접근����������� ������������������ 가능)
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ myBall����������� ������������������ =����������� ������������������ display.newCircle(100,����������� ������������������ 250,����������� ������������������ 30);
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"physics.start();physics.setDrawMode("debug");physics.addBody(myBall,����������� ������������������ "static",����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 25����������� ������������������ });
local����������� ������������������ start_touch_x,����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ 0,����������� ������������������ 0;myBall.touch����������� ������������������ =����������� ������������������ function(self,����������� ������������������ event)����������� ������������������ if����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "began"����������� ������������������ then����������� ������������������ ����������� ������������������ start_touch_x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ start_touch_y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ elseif����������� ������������������ event.phase����������� ������������������ ==����������� ������������������ "moved"����������� ������������������ then����������� ������������������ ����������� ������������������ self.x����������� ������������������ =����������� ������������������ event.x;����������� ������������������ ����������� ������������������ ����������� ������������������ self.y����������� ������������������ =����������� ������������������ event.y;����������� ������������������ else����������� ������������������ ����������� ������������������ self.bodyType����������� ������������������ =����������� ������������������ "dynamic";����������� ������������������ ����������� ������������������ self:applyForce((start_touch_x����������� ������������������ -����������� ������������������ self.x)����������� ������������������ *����������� ������������������ 13,����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ (start_touch_y����������� ������������������ -����������� ������������������ self.y)����������� ������������������ *����������� ������������������ 13,����������� ������������������ self.x,����������� ������������������ self.y);����������� ������������������ endendmyBall:addEventListener("touch",����������� ������������������ self)
힘을����������� ������������������ 받는����������� ������������������ 부분����������� ������������������ (중심축)
self.x,����������� ������������������ self.y
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ floor����������� ������������������ =����������� ������������������ display.newRect(0,����������� ������������������ 0,����������� ������������������ display.contentWidth,����������� ������������������ 30)floor.x����������� ������������������ =����������� ������������������ display.contentWidth����������� ������������������ /����������� ������������������ 2;����������� ������������������ floor.y����������� ������������������ =����������� ������������������ display.contentHeight����������� ������������������ -����������� ������������������ 15;physics.addBody(floor,����������� ������������������ "static",����������� ������������������ {����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3����������� ������������������ });
local����������� ������������������ monster����������� ������������������ =����������� ������������������ display.newCircle(400,����������� ������������������ floor.y����������� ������������������ -����������� ������������������ 5,����������� ������������������ 10)physics.addBody(monster,����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 10����������� ������������������ })monster.postCollision����������� ������������������ =����������� ������������������ function(self,����������� ������������������ event)����������� ������������������ native.showAlert("8분만에����������� ������������������ 앵그리버드����������� ������������������ 만들기",����������� ������������������ "충돌",����������� ������������������ {����������� ������������������ "Ok",����������� ������������������ "Cancle"����������� ������������������ },����������� ������������������ nil);endmonster:addEventListener("postCollision",����������� ������������������ self);
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
PT3����������� ������������������ 프로젝트����������� ������������������ 시연
13년 4월 18일 목요일
First����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ floor����������� ������������������ =����������� ������������������ display.newRect(0,����������� ������������������ 0,����������� ������������������ display.contentWidth,����������� ������������������ 30)floor.x����������� ������������������ =����������� ������������������ display.contentWidth����������� ������������������ /����������� ������������������ 2;����������� ������������������ floor.y����������� ������������������ =����������� ������������������ display.contentHeight����������� ������������������ -����������� ������������������ 15;physics.addBody(floor,����������� ������������������ "static",����������� ������������������ {����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3����������� ������������������ });
local����������� ������������������ monster����������� ������������������ =����������� ������������������ display.newCircle(400,����������� ������������������ floor.y����������� ������������������ -����������� ������������������ 5,����������� ������������������ 10)physics.addBody(monster,����������� ������������������ {����������� ������������������ density����������� ������������������ =����������� ������������������ 1.0,����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3,����������� ������������������ bounce����������� ������������������ =����������� ������������������ 0.2,����������� ������������������ radius����������� ������������������ =����������� ������������������ 10����������� ������������������ })monster.postCollision����������� ������������������ =����������� ������������������ function(self,����������� ������������������ event)����������� ������������������ native.showAlert("8분만에����������� ������������������ 앵그리버드����������� ������������������ 만들기",����������� ������������������ "충돌",����������� ������������������ {����������� ������������������ "Ok",����������� ������������������ "Cancle"����������� ������������������ },����������� ������������������ nil);endmonster:addEventListener("postCollision",����������� ������������������ self);
충돌처리
13년 4월 18일 목요일
한����������� ������������������ 걸음����������� ������������������ 더One����������� ������������������ More����������� ������������������ Step
13년 4월 18일 목요일
Second����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ webView����������� ������������������ =����������� ������������������ native.newWebView(����������� ������������������ 0,����������� ������������������ 0,����������� ������������������ display.contentWidth,����������� ������������������ display.contentHeight,����������� ������������������ nil����������� ������������������ )
webView:request(����������� ������������������ "http://www.google.com/"����������� ������������������ )
13년 4월 18일 목요일
Second����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
What����������� ������������������ theF....
13년 4월 18일 목요일
PT4����������� ������������������ 프로젝트����������� ������������������ 시연
Second����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
13년 4월 18일 목요일
Second����������� ������������������ Step����������� ������������������ Corona����������� ������������������ SDK
local����������� ������������������ physics����������� ������������������ =����������� ������������������ require����������� ������������������ "physics"physics.start()physics.setDrawMode("hybrid")
local����������� ������������������ floor����������� ������������������ =����������� ������������������ display.newRect(0,����������� ������������������ 0,����������� ������������������ display.contentWidth,����������� ������������������ 30)floor.x����������� ������������������ =����������� ������������������ display.contentWidth����������� ������������������ /����������� ������������������ 2;����������� ������������������ floor.y����������� ������������������ =����������� ������������������ display.contentHeight����������� ������������������ -����������� ������������������ floor.height����������� ������������������ /����������� ������������������ 2;physics.addBody(floor,����������� ������������������ "static",����������� ������������������ {����������� ������������������ friction����������� ������������������ =����������� ������������������ 0.3����������� ������������������ })
local����������� ������������������ function����������� ������������������ webViewCreate()����������� ������������������ local����������� ������������������ webView����������� ������������������ =����������� ������������������ native.newWebView(����������� ������������������ 0,����������� ������������������ 0,����������� ������������������ 100,����������� ������������������ 100,����������� ������������������ nil����������� ������������������ )����������� ������������������ webView:request(����������� ������������������ "http://www.google.com/"����������� ������������������ )����������� ������������������ webView.x����������� ������������������ =����������� ������������������ math.random(0,����������� ������������������ display.contentWidth);����������� ������������������ webView.y����������� ������������������ =����������� ������������������ 0;����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ ����������� ������������������ webView.rotation����������� ������������������ =����������� ������������������ math.random(0,����������� ������������������ 360)����������� ������������������ physics.addBody(webView)end
timer.performWithDelay(500,����������� ������������������ webViewCreate,����������� ������������������ 0)
In����������� ������������������ Source
13년 4월 18일 목요일
With
13년 4월 18일 목요일