mfhh's recent timeline updates
mfhh

mfhh

V2EX member #15304, joined on 2011-12-26 14:39:57 +08:00
mfhh's recent replies
谢谢
Jun 21, 2018
Replied to a topic by mfhh 问与答 windows 上有能帮助重启程序的工具么?
@canbingzt 嗯。用 nssm 弄成了服务。
Jun 20, 2018
Replied to a topic by mfhh 问与答 windows 上有能帮助重启程序的工具么?
Jun 15, 2018
Replied to a topic by hoyt 分享创造 2D 格斗游戏引擎 & 游戏编辑器
好玩,不过人物是不是太小了?
从原始 canvas 撸的么?为什么不用 createjs 或者 pixijs?
@Hydjan 哦,那你其实可以作个 1234567 跟 cdefgab 之间的 converter,然后 abc 的代码和工具就可以复用了
Jun 15, 2018
Replied to a topic by freedom3 程序员 嵌入式没必要存在的学科,设置不科学
给楼主出个题,如果搞明白了,或许有点启发。
问:
arduino,Raspberry Pi 和 nodemcu 有什么异同?
ABC 记谱法了解一下?
https://zh.wikipedia.org/wiki/ABC%E8%AE%B0%E8%B0%B1%E6%B3%95

下面是《 Frere Jacques 》的 ABC 记谱法例子。

X:1
T:Frère Jacques
M:4/4
L:1/8
K:F
F2 G2 A2 F2 | F2 G2 A2 F2 | A2 B2 c4 | A2 B2 c4 |
cd cB A2 F2 | cd cB A2 F2 | G2 C2 F4 | G2 C2 F4 ||

还有大量支持 midi 播放的软件
http://abcnotation.com/software
@banxi1988
你不是用了 Typescript 么?写个 var settings:ISettings; 就有类型安全和自动补全了。

上文是参照你的风格写的代码。我实际代码一般直接写成这样:

//类型定义,在编辑器中有类型安全和自动补全
interface ISettings {
autoLogin: boolean;
username: string;
age: number;
}

//数据尽量使用 plain json
const settings:ISettings ={
autoLogin:true,
username: "banxi"
age: 10
}

//持久化操作单独拿出,以便性能优化
storage["settings"]=JSON.stringify(settings)
Jun 15, 2018
Replied to a topic by mfhh 问与答 国内有类似 itch.io 的独立游戏开发网站么?
@qooweds 我就是想复刻一些 80 年代的小游戏。纯属自娱自乐。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   809 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 22:15 · PVG 06:15 · LAX 15:15 · JFK 18:15
♥ Do have faith in what you're doing.