vant+vue实现见缝插针小游戏代码
代码语言:html
所属分类:游戏
代码描述:vant+vue实现见缝插针小游戏代码,发射红色针插入上面的风车,同一个角度只能插入一针,否则失败
代码标签: 小游戏
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta charset="utf-8"> <title></title> <style> html,body{ overflow: hidden; height: 100vh;} #app{ height: 100vh;} .box { padding: 100px 0 0 0; } .rota { width: 256px; height: 256px; position: relative; margin: 0 auto;} .li,.ligo { width: 30px; height: 100px; background: #c00; position: absolute; left: 118px; top:-71px; transform-origin: 10px 200px; border: 2px solid #000; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; } .li:last-child{ /* background: #f60; */ } .ligo{ top:70vh; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0