언어 설정

Menu
Sites
Language
window.requestAnimationFrame 관련 사용법 질문

기본적인 게임 앱을 개발중인데

현재 simulator 에서는 돌아가는데

핸드폰에 적용이 되지않아 질문드립니다

에러내용은 다음과 같습니다.

 

TypeError: 'undefined' is not a function (evaluating 'window.requestAnimationFrame( ...~~

 

아마 chrome 에서는 animation이 지원되는거같은데

window.requestAnimationFrame

관련해서 tizen 에서 버전? 이 달라서 그런지

문제가 발생하는데 

답변 부탁드립니다.

Responses

1 댓글
Nafisul Islam Kiron

Hello,

Here is a simple example of requestAnimationFrame

http://blog.teamtreehouse.com/efficient-animations-with-requestanimationframe

 

I have tested it in Tizen Emulator, Web Simulator and in Web Browser.