微信小游戏开发经验
文章平均质量分 91
最近开发微信小游戏,遇到过很多坑,把这些经验总结起来以备不时之需
美酒爱尔兰
不再维护,去了其他平台
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
微信小游戏——MySQL 8.0 数据库安装(windows server)
因为做微信小游戏,需要统计一些玩家信息,并且需要实现一个排位算法,思来想去想了一个解决方案。新买了一个服务器,里面的环境基本为空,需要安装数据库。再数据库的选择上,我也是犯了难。首先,node.js是支持很多种数据库的,我专栏里也有发教程。不过根据网友的经验,最好的结合是node.js+mongodb。但是腾讯云支持的微信小程序模板环境是node.js+mysql。所以,我也就随大流...原创 2018-08-04 14:42:30 · 1713 阅读 · 3 评论 -
微信小游戏——绘制圆形微信头像
直接上代码: ctx.save() //保存上下文 ctx.beginPath()//开始绘制 ctx.arc(screenWidth / 10, screenHeight / 7, 24, 0, 2 * Math.PI, false)//画一个圆 ctx.clip()//裁剪这个圆 ctx.drawImage(image, screenWidth / 10 - 25, screenHeigh...原创 2018-07-26 11:02:25 · 3394 阅读 · 0 评论 -
node.js ws模块 方法属性(websocket)
WebSocket compression ws supports the permessage-deflate extension which enables the client and server to negotiate a compression algorithm and its parameters, and then selectively apply it to the da...转载 2018-07-29 14:49:29 · 8700 阅读 · 0 评论 -
Nodejs连接12种数据库例子集合
转自:https://segmentfault.com/a/1190000008753686 Cassandra Module: cassandra-driver Installation $ npm install cassandra-driver Example var cassandra = require('cassandra-driver') var client = n...转载 2018-08-01 19:30:33 · 3070 阅读 · 0 评论