Skip to content

Commit

Permalink
Add Fire Walk
Browse files Browse the repository at this point in the history
  • Loading branch information
x-sheep authored Jul 29, 2024
1 parent e2d2942 commit cb7ed3d
Show file tree
Hide file tree
Showing 12 changed files with 584 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src-ui/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
<main>
<div style="margin-bottom: 5px;"><b>Latest types</b> (<em><a href="/list.html" target="_parent">all types</a></em>)</div>
<ul>
<li><a href="/p?firewalk" target="_parent">Fire Walk</a></li>
<li><a href="/p?batten" target="_parent">Battenberg Painting</a></li>
<li><a href="/p?zabajaba" target="_parent">Zabajaba</a></li>
<li><a href="/p?curving" target="_parent">Curving Road カービングロード</a></li>
<li><a href="/p?sananko" target="_parent">San-Anko サンアンコー</a></li>
<li><a href="/p?bosnianroad" target="_parent">Bosnian Road</a></li>
<li><a href="/p?kuromenbun" target="_parent">Kuromenbun クロメンブン</a></li>
<li><a href="/p?portal" target="_parent">Portal Loop</a></li>
</ul>
</main>
</body>
Binary file added src-ui/img/firewalk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions src-ui/js/ui/KeyPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ ui.keypopup = {
bosnianroad: [80, 0],
sananko: [10, 113],
zabajaba: [80, 0],
batten: [10, 0]
batten: [10, 0],
firewalk: [10, 0]
},

//---------------------------------------------------------------------------
Expand Down Expand Up @@ -465,13 +466,19 @@ ui.keypopup = {
pid === "icelom2" ||
pid === "icewalk" ||
pid === "waterwalk" ||
pid === "firewalk" ||
pid === "dbchoco"
) {
itemlist.push([
"q",
{
text: "■",
color: pid === "dbchoco" ? "rgb(204,204,204)" : "rgb(192,224,255)"
color:
pid === "dbchoco"
? "rgb(204,204,204)"
: pid === "firewalk"
? "rgb(255,192,192)"
: "rgb(192,224,255)"
}
]);
}
Expand Down
1 change: 1 addition & 0 deletions src-ui/js/ui/Misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function toBGimage(pid) {
"doubleback",
"easyasabc",
"evolmino",
"firewalk",
"geradeweg",
"heteromino",
"heyapin",
Expand Down
1 change: 1 addition & 0 deletions src-ui/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
<li data-pid="lixloop"></li>
<li data-pid="portal"></li>
<li data-pid="bosnianroad"></li>
<li data-pid="firewalk"></li>
</ul>
</div>
<div class="lists loops">
Expand Down
1 change: 1 addition & 0 deletions src-ui/p.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ <h2 id="title2">読み込み中です...</h2>
<div class="child" data-value="empty">__inputmode.empty__</div>
<div class="child" data-value="ice">__inputmode.ice__</div>
<div class="child" data-value="water">__inputmode.water__</div>
<div class="child" data-value="fire">__inputmode.fire__</div>
<div class="child" data-value="nabe">__inputmode.nabe__</div>
<div class="child" data-value="box">__inputmode.box__</div>
<div class="child" data-value="pin">__inputmode.pin__</div>
Expand Down
1 change: 1 addition & 0 deletions src-ui/res/p.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"inputmode.empty": "Invalid cells",
"inputmode.ice": "Icebarns",
"inputmode.water": "Water hazard",
"inputmode.fire": "Fire",
"inputmode.nabe": "Crocks",
"inputmode.box": "Boxes",
"inputmode.pin": "Pins",
Expand Down
8 changes: 6 additions & 2 deletions src/puzzle/LineManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ pzpr.classmgr.makeCommon({
// linegraph.createNodeIfEmpty() 指定されたオブジェクトの場所にNodeを生成する
// linegraph.deleteNodeIfEmpty() 指定されたオブジェクトの場所からNodeを除去する
//---------------------------------------------------------------------------
usesSecondNode: function(cell, other) {
return cell.getvert(other, 2);
},

createNodeIfEmpty: function(cell) {
var nodes = this.getObjNodeList(cell);

Expand All @@ -265,8 +269,8 @@ pzpr.classmgr.makeCommon({
// 上下/左右の線が1本ずつだった場合は左右の線をnodes[1]に付加し直します
var nbnodes = nodes[0].nodes;
var isvert = [
cell.getvert(nbnodes[0].obj, 2),
cell.getvert(nbnodes[1].obj, 2)
this.usesSecondNode(cell, nbnodes[0].obj),
this.usesSecondNode(cell, nbnodes[1].obj)
];
if (isvert[0] !== isvert[1]) {
// breaking up a corner; we create two new nodes to ensure
Expand Down
1 change: 1 addition & 0 deletions src/pzpr/variety.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
{ kanpen2: "fillomino01" }
],
firefly: [1, 0, "ホタルビーム", "Hotaru Beam"],
firewalk: [1, 0, "Fire Walk", "Fire Walk", "icewalk"],
fivecells: [0, 0, "ファイブセルズ", "FiveCells", "nawabari"],
fourcells: [0, 0, "フォーセルズ", "FourCells", "nawabari"],
fracdiv: [0, 0, "分数分割", "Fractional Division"],
Expand Down
2 changes: 2 additions & 0 deletions src/res/failcode.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@
"lcCurveNe.firefly": "The number of curves is different from a firefly's number.",
"lcDeadEnd": "There is a dead-end line.",
"lcDivided": "All lines and numbers are not connected to each other.",
"lnDoubleTurn.firewalk": "A cell with double turns has its center outside of the loop.",
"lcGrayGt.coffeemilk": "A group has more than one gray circle.",
"lcInvalid.coffeemilk": "A white and black circle are connected directly.",
"lcInvalid.kusabi": "The types of connected circles don't match.",
Expand Down Expand Up @@ -588,6 +589,7 @@
"lnRightAngle.kouchoku": "Segments don't intersect at a right angle.",
"lnSnLine.lither": "There is only one tree.",
"lnStarNe.starbattle": "The number of stars in a line is wrong.",
"lnStraightOnIce.firewalk": "A line goes straight through fire.",
"lnWrongAngle.kouchoku": "Some segments meet at the wrong angle.",
"lookairBC.lookair": "Two squares of the same size can see each other.",
"lpNoNum.onsen": "A loop has no numbers.",
Expand Down
Loading

0 comments on commit cb7ed3d

Please sign in to comment.