Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Apr 5, 2019
1 parent d9d3cfd commit ea2e0d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ Fools' Day Minesweeper maze minigame from *THE IDOLM@STER Cinderella Girls:
Starlight Stage*. It is also my first serious attempt at frontend web
programming.

This port is hosted [here](http://hertzdevil.info/misc/nono/). Consult the help
page for more details.
This port is hosted [here](http://hertzdevil.info/misc/nono/). Both mouse and
keyboard controls are available. Consult the help page for more details.

## Roadmap

- Current mine density is fixed at 15%, make it configurable
- Current Tomodachi Block density is fixed at 1%, make it configurable
- Display the active idol's position while flagging
- What happens when an Open skill reveals a flagged tile?
- Profile and optimize the code (might not be worth the effort)

## Deviations from the original

Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ document.addEventListener('DOMContentLoaded', () => {
const HEIGHT = Math.max(5, Math.min(30, parseInt(heightField.value)));

const MINES = Math.floor(WIDTH * HEIGHT * 0.15);
const TOMODACHI = Math.floor(WIDTH * HEIGHT * 0.02);
const TOMODACHI = Math.floor(WIDTH * HEIGHT * 0.01);

const ctrl = new NonoController(WIDTH, HEIGHT);
const view = new NonoView(ctrl, document);
Expand Down
4 changes: 4 additions & 0 deletions public/js/nono-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export default class {
nextStage(inv, mines, tomodachi) {
this.ctrl_.clickNextButton(inv);
this.ctrl_.startGame(inv, mines, tomodachi);

for (const dom of this.domMap_.getElementsByClassName('nono-tile-text'))
dom.className = 'nono-tile-text';

this.startTimer(inv);
}

Expand Down

0 comments on commit ea2e0d1

Please sign in to comment.