vue实现用鼠标抓火箭游戏

代码语言:html

所属分类:游戏

代码描述:vue实现用鼠标抓火箭游戏

代码标签: 鼠标 火箭 游戏

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
@import url("https://fonts.googleapis.com/css?family=Baloo+2&display=swap");
html {
  background: #333;
  color: white;
  font-family: "Baloo 2", cursive;
}

#app {
  margin: 4rem auto;
  width: 24rem;
  height: 38rem;
  box-shadow: 1px 1px 45px #00000070;
}
#app .title {
  display: flex;
  align-items: center;
  flex-flow: column;
  padding: 2rem;
}
#app .title h1, #app .title h2, #app .title h3 {
  line-height: 0;
}
#app .rocket {
  position: relative;
  font-size: 2.5rem;
  transition: all .5s linear;
  width: 2rem;
}
#app .rocket:active {
  transform: scale(1.3);
  transition: all .2s;
}
</style>

</head>
<body translate="no">
<div id="app">
<div class="title">
<h3> ✨ 🌏 ✨ 🪐 ✨ 🛰 ✨ 👽 ✨</h3>
<h1>用鼠标抓火箭!</h1>
<h2.........完整代码请登录后点击上方下载按钮下载查看

网友评论0