Skip to content

Commit

Permalink
init game
Browse files Browse the repository at this point in the history
  • Loading branch information
booboosui committed Oct 30, 2023
1 parent 70b925a commit 11c2b12
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const canvas = document.getElementById('game-board');
const ctx = canvas.getContext('2d');
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>网页游戏 - Generated by KuaFuAI</title>
<meta charset="UTF-8">
<style>
body {
text-align: center;
}
#game-board {
border: 1px solid #333;
}
</style>
</head>
<body>
<canvas id="game-board" width="900" height="600"></canvas>
<div>Generated by <a href="https://www.kuafuai.net">KuaFuAI</a></div>
</body>
<script src="./game.js"></script>
</html>

0 comments on commit 11c2b12

Please sign in to comment.