A free browser game — play it in your browser, no install. 크롬 미니게임 dino의 모작입니다. chrome dino 주소 : chrome://dino canvas를 사용하기 위해 기본적으로 실행돼야 할 코드 그래픽적인 부분을 해결할 수 있다 초당 60회 함수 실행시키는 법 이것으로 플레이어의 위치나 점수 기타 등등을 계속 갱신할 수 있다 requestAnimationFrame(update);만 써도 잘 작동하지만 따로 변수에 저장한 이유는 이 값을 window.cancelAnimationFrame() 에 전달해 콜백 요청을 취소할 수 있다.(정지) 각각의 오브젝트의 위치와 크기를 구하고…
Vote and save it — free account with email or sign in with GitHub
Made this, @dks2312? See how many people played it → or use email
📅 Three new games every day, no account needed · Play today’s three →
Best with a keyboard. Controls: Space
GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.
No account needed to save ♥ or react 🔥: they’re under the game. Or vote with email.
Open the live demo Source on GitHubchrome dino 주소 : chrome://dino
canvas를 사용하기 위해 기본적으로 실행돼야 할 코드
그래픽적인 부분을 해결할 수 있다
초당 60회 함수 실행시키는 법
이것으로 플레이어의 위치나 점수 기타 등등을 계속 갱신할 수 있다
requestAnimationFrame(update);만 써도 잘 작동하지만 따로 변수에 저장한 이유는 이 값을 window.cancelAnimationFrame() 에 전달해 콜백 요청을 취소할 수 있다.(정지)
각각의 오브젝트의 위치와 크기를 구하고 일일이 검사한다.
알고자하는 두 개의 오브젝트 위치를 빼면(-) 길이를 알 수 있다 이 중 양수나 음수가 나올 수 있는데 이것으로 상대가 앞에 있는지 아니면 뒤에 있는지도 알 수 있다
update 함수안에서 계속 해당 오보젝트의 이미지를 바꿔주면 된다
Built something like this? Submit your vibe — free account, takes a minute. How listing works.
Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.
Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.