<html>
	<head>
		<title>Simple HTML Game - Easy to Create and Play</title>
		<style>
			body {
				background-color: #fefefe;
				text-align: center;
				font-family: sans-serif;
			}
			.game {
				width: 400px;
				margin: 0 auto;
				background-color: #f2f2f2;
				padding: 20px;
				border-radius: 5px;
				box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.15);
			}
			.game h1 {
				margin: 0 0 10px 0;
				font-size: 18px;
				font-weight: bold;
			}
			.game button {
				background-color: #3a3a3a;
				color: #fefefe;
				padding: 10px;
				border-radius: 5px;
				font-size: 16px;
				cursor: pointer;
				margin: 10px;
				display: inline-block;
			}
			.game button:hover {
				background-color: #929292;
				color: #3a3a3a;
			}
		</style>
	</head>
	<body>
		<div class='game'>
			<h1>Simple HTML Game</h1>
			<p>
				Welcome to the game! Click the button below to start.
			</p>
			<button onclick='startGame()'>Start</button>
		</div>
		<script>
			function startGame() {
				// game logic here
			}
		</script>
	</body>
</html>
Simple HTML Game - Easy to Create and Play

原文地址: https://www.cveoy.top/t/topic/lmlB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录