-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf46d64
commit fecaef4
Showing
5 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
つくる('ダークナイト', 13, 7, 'map1', むき.した) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this.しょうかんする('ダークナイト', 1, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import '../game' | ||
|
||
rule.つくられたとき(async function() { | ||
await this.みためをかえる('ダークナイト') | ||
this.なかま = なかま.モンスター | ||
this.たいりょく = 10 | ||
this.こうげきりょく = 1 | ||
this.みえるきょり = 3 | ||
this.みえるはんい = 1 | ||
|
||
/*+ つくられたとき */ | ||
}) | ||
|
||
rule.つねに(async function() { | ||
await this.まつ(らんすう(3)) | ||
await this.おいかける('プレイヤー') | ||
await this.てきをみつける() | ||
await this.こうげきする() | ||
this.しょうかんする('ダークハンド') | ||
await this.てきをみつける() | ||
|
||
/*+ つねに */ | ||
}) | ||
|
||
rule.みつけたとき(async function(item) { | ||
await this.おいかける(item) | ||
await this.おいかける(item) | ||
await this.まつ(0.5) | ||
await this.こうげきする() | ||
await this.みぎにあるく() | ||
await this.こうげきする() | ||
await this.てきをみつける() | ||
|
||
/*+ みつけたとき */ | ||
}) | ||
|
||
rule.こうげきされたとき(async function(item) { | ||
if (item.は('プレイヤー')) { | ||
/*+ こうげきされたとき */ | ||
} | ||
|
||
await this.まつ(1) | ||
this.しょうかんする('ダークハンド', 0, 0) | ||
await this.テレポートランダム() | ||
await this.まつ(1) | ||
|
||
/*+ こうげきされたとき */ | ||
}) | ||
|
||
rule.たおされたとき(async function() { | ||
this.しょうかんする('金色のほうせき', 0, 0) | ||
|
||
/*+ たおされたとき */ | ||
}) | ||
|
||
rule.ぶつかったとき(async function(item) { | ||
if (item.は('プレイヤー')) { | ||
/*+ ぶつかったとき */ | ||
} | ||
/*+ ぶつかったとき */ | ||
}) | ||
|
||
rule.メッセージされたとき(async function(item) { | ||
/*+ メッセージされたとき */ | ||
}) | ||
|
||
rule.じかんがすすんだとき(async function() { | ||
/*+ じかんがすすんだとき */ | ||
}) | ||
|
||
rule.すすめなかったとき(async function() { | ||
/*+ すすめなかったとき */ | ||
}) | ||
|
||
rule.しょうかんされたとき(async function(item) { | ||
/*+ しょうかんされたとき */ | ||
}) | ||
|
||
rule.こうげきするとき(async function() { | ||
/*+ こうげきするとき */ | ||
}) | ||
|
||
rule.あるいたとき(async function() { | ||
/*+ あるいたとき */ | ||
}) | ||
|
||
rule.へんすうがかわったとき(async function() { | ||
/*+ へんすうがかわったとき */ | ||
}) | ||
|
||
rule.タップされたとき(async function() { | ||
/*+ タップされたとき */ | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const sco = require('../../preference/scopes') | ||
const cat = require('../../preference/categories') | ||
|
||
const base = { | ||
name: 'ダークナイト', | ||
module: './dark_knight.js', // 改造ボタン用のコードへのパス. null の場合は改造不可 | ||
category: cat.キャラクター, // カテゴリーの参照を指定する | ||
description: 'とおくにいるときと、ちかくにいるときで、うごきがかわる', | ||
icon: './dark_knight.png', // アセットのアイコンへのパス | ||
production: false, // www.hackforplay.xyz に表示する場合は true. earlybird だけなら false | ||
plan: 'free' // 'free' にする | ||
} | ||
|
||
module.exports = [ | ||
// | ||
{ | ||
...base, | ||
scopes: [ | ||
// スコープの参照を配列で指定する. null の場合は常に表示 | ||
sco.ゲームがはじまったとき | ||
], | ||
insert: './dark_knight-create.js' // 追加ボタン用のコードへのパス. null の場合は追加不可 | ||
// thumbnail: 'https://i.gyazo.com/b8d97d933be3789bc4b1ea707e59fc50.gif' // サムネイル画像 | ||
}, | ||
// | ||
{ | ||
...base, | ||
scopes: [ | ||
// スコープの参照を配列で指定する. null の場合は常に表示 | ||
sco.こうげきされたとき, | ||
sco.たおされたとき, | ||
sco.ふまれたとき, | ||
sco.どかれたとき, | ||
sco.ぶつかったとき, | ||
sco.メッセージされたとき, | ||
sco.へんすうがかわったとき, | ||
sco.みつけたとき, | ||
sco.タップされたとき, | ||
sco.マップがかわったとき | ||
], | ||
insert: './dark_knight-summon.js' // 追加ボタン用のコードへのパス. null の場合は追加不可 | ||
} | ||
] |