Skip to content

Commit

Permalink
Added crossy road game
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhijitMotekar99 committed Oct 10, 2024
1 parent f530e61 commit e031a89
Show file tree
Hide file tree
Showing 3 changed files with 825 additions and 0 deletions.
51 changes: 51 additions & 0 deletions projects/Crossy Road Game/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Crossy Road Game Clone</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="counter">0</div>

<div id="controlls">
<div>
<button id="forward">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(0, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
<button id="left">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(-90, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
<button id="backward">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(180, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
<button id="right">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(90, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
</div>
</div>

<div id="end">
<button id="retry">Retry</button>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/99/three.min.js"></script>
<script src="script.js"></script>
</body>
</html>
Loading

0 comments on commit e031a89

Please sign in to comment.