- 博客(8)
- 收藏
- 关注
原创 前端实现 迷宫
package.json{ "name": "rfei", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "http-server -
2017-12-01 17:37:24 1180
原创 自制消消乐 使用学习vue.js 和 es6 class语法 就写了一个这个游戏 源码 可以去 github 上下载
地址 git@github.com:raopengfei/eliminateGame.git;在本地 执行npm install --save-dev 下载依赖 之后 执行 http-server -p 3000在本地 localhost:3000 浏览器下就可以访问
2017-11-24 15:12:49 1725 2
原创 自制游戏 index.html
html>html lang="en">head> meta charset="UTF-8"> title>Titletitle> link rel="stylesheet" href="my.css">head>body> div id="app" > --> transition-group name="list-move
2017-11-22 17:48:16 715
原创 自制游戏 data.json
{ "obj": [], "border":{ "type":"static" }, "type":[{ "name":"cow", "src":"imgs/cow.png" },{ "name":"chicken", "src":"imgs/chicken.png" },{ "name":"fox", "src":"
2017-11-22 17:46:37 913
原创 自制游戏 package.json
{ "name": "rfei", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC",
2017-11-22 17:45:33 329
原创 自制游戏 util.js
/** * Created by wxraopf on 2017-11-17. */class Cell { constructor(x,y,data,id) { //构造函数 // this.name = name; this.x = x; this.y = y; this.id = id || this.y*9 +
2017-11-22 17:44:50 210
原创 自制游戏 消消乐 代码 my.js
/** * Created by wxraopf on 2017-11-17. */var lastCell = {};var _lastCell = {};var isMove = false;Vue.component('obj-list', { props: ['cell'], template: 'v-bind:class="{active: cell.isAc
2017-11-22 17:44:13 8171
原创 自制游戏 消消乐 代码 css
*{ padding: 0; margin: 0;}#app{ border: 1px solid aquamarine; margin: 250px auto; position: relative; width: 495px; height: 495px; background: #000000; overflow:h
2017-11-22 17:43:25 1931
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人