Skip to content

Commit

Permalink
feat: ログのアセット追加
Browse files Browse the repository at this point in the history
  • Loading branch information
RyoTaniguchi committed Sep 12, 2020
1 parent 0faca30 commit 7522ae2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/assets/ログ/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const sco = require('../../preference/scopes')
const cat = require('../../preference/categories')

const base = {
scopes: [
sco.ゲームがはじまったとき,
sco.たおされたとき,
sco.しょうかんされたとき,
sco.つくられたとき,
sco.ぶつかったとき,
sco.こうげきされたとき,
sco.つねに,
sco.ふまれたとき,
sco.どかれたとき,
sco.メッセージされたとき,
sco.へんすうがかわったとき,
sco.みつけたとき,
sco.こうげきするとき,
sco.あるいたとき,
sco.タップされたとき,
sco.マップがかわったとき
],
module: null, // 改造ボタン用のコードへのパス. null の場合は改造不可
category: cat.システム, // カテゴリーの参照を指定する
production: false, // www.hackforplay.xyz に表示する場合は true. earlybird だけなら false
plan: 'free' // 'free' にする
}

module.exports = [
{
...base,
name: 'ログ',
description: 'ゲームの下に小さなもじがでる',
icon: './log.png', // アセットのアイコンへのパス
insert: './log.js' // 追加ボタン用のコードへのパス. null の場合は追加不可
}
]
1 change: 1 addition & 0 deletions src/assets/ログ/log.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
log('このもじが ゲームがめんの したに ちいさく でます')
Binary file added src/assets/ログ/log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7522ae2

Please sign in to comment.