Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

The microcomputer for Minesweeper, whose UI is sloppy due to exhausting motivation and effort on unnecessary features

This is a Mine Sweeper microcontroller where UI-related aspects became sloppy due to exhausting motivation and effort on unnecessary features. A single video node can control up to 16 Mine Sweeper units. Caution: Running multiple Mine Sweeper units simultaneously may increase load significantly. Modifying the microcontroller is required to run multiple Mine Sweeper units. Increase the number of composite signals for the display touch as needed, and modify the internals appropriately using the default setup as a reference. Always connect nodes in the exact order the displays were mounted on the vehicle. Failure to do so may cause touch information to misalign with the display. Procedure First, power on the display. Next, set the X, Y, B values on the left (X=width, Y=height, B=number of bombs). Defaults are 10, 10, 20. Setting Method Press the X, Y, B letters. Enter the numerical value on the keypad that appears. On the keypad, < clears the input, E confirms (cancels if the number is 0). Adjust the view: use the + and - on the right to zoom in/out, the up/down/left/right arrows to move, and R to reset. Pressing the light gray area in the center of the display starts the game. “START” appears in the bottom left, and settings cannot be changed until the game ends. Once the game starts, the letters on the left change to E, F, C. F enters flag placement mode. You cannot open squares while in flag placement mode. A placed flag can be removed by pressing the same key again. Pressing F again returns you to the mode where you can open squares. Pressing a square with a flag in this state removes the flag. C clears all flags. E ends the game. Pressing E displays a popup. Pressing Y in the bottom left completely ends the game. Pressing N in the bottom right resumes the game. When the game ends, all squares are revealed, and a pseudo-score appears in the top-left corner. If you hit even one bomb, it displays a percentage of the total number of bombs. If you didn't open any bombs, it displays a percentage of the total openable squares that were still unopened. To play again, you return to the very beginning. Also, the script is a bit messy, so it might get stuck. ------------------------------ これは、必要ない機能にモチベーションと労力を使い果たしたことでUI関連が雑なマインスイーパーのマイコンです。 映像ノード一つで最大16個のマインスイーパーを動かせます。 注意 同時に複数のマインスイーパーを動かすと負荷が高くなる可能性があります。 複数のマインスイーパーを動かす場合マイコンの改造が必要です。ディスプレイのタッチ用複合信号を増やしたい分増やして中身もデフォルトを参考に適当に改造してください。 必ずディスプレイをビークルに設置した順番にノードを繋いでください。そうしないとタッチ情報とディスプレイがズレる可能性があります。 やり方 まずディスプレイを起動します。 次に左にあるX,Y,B(X=横幅,Y=高さ,B=爆弾の数)を設定します。デフォルトは10,10,20です。 設定方法 X,Y,Bの文字を押します。 出てきたキーパッドに数値を入力します。 キーパッドの<は消去、Eは完了(数値が0の時はキャンセル)です。 視点は、右にある+,-で拡大縮小、上下左右にある矢印で移動、Rでリセットできます。 ディスプレイの中央の薄い灰色の部分を押すとゲームが開始され、左下にSTARTと表示され、設定はゲームが終わるまで変更できなくなります。 ゲームが開始されると左の文字がE,F,Cに変わります。 Fは旗を立てるモードになります。 旗を立てるモード中はマスを開けることはできません。 一度立てた旗はもう一度押すと消すことができます。 もう一度Fを押すとマスを開けることができるモードに戻ります。この状態で旗の立っているマスを押すと旗が消えます。 Cは全ての旗を消します。 Eはゲーム終了です。 Eを押すとポップアップが出てきます。左下のYを押すことで完全にゲーム終了です。右下のNを押すとゲームが再開されます。 ゲームが終わると全てのマスが開封され、左上に擬似的なスコアが表示されます。 もし爆弾を一つでも当ててしまった場合は全ての爆弾の数の何%かを表示します。 爆弾を一つも開封しなかった場合は開封できるがまだ開封されていないマスが開封できるマスの何%かを表示します。 もう一度ゲームをやる場合は再び一番最初に戻ります。 あと、スクリプトが雑なので詰む可能性があります。