We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on game-manager.js:
game-manager.js
line 144 extend legend tile list
for (var i = 1; i <= 12; i++) {
then exist already this function to crowd the board with live tiles.
// Crowd board GameManager.prototype.crowd = function () { this.storageManager.clearGameState(); this.actuator.continueGame(); // Clear the game won/lost message this.grid = new Grid(this.size); this.score = 0; this.over = false; this.won = false; this.keepPlaying = false; this.actuate(); var counter = 0; for (var i = 0; i < 3; i++) { for (var j = 0; j < 4; j++) { counter++; var value = Math.pow(2, counter); var tile = new Tile({ x: j, y: i }, value); // adjust limit below if (value <= 4096) this.grid.insertTile(tile); } } };
To activate
this.inputManager.on("crowd", this.crowd.bind(this));
this.bindButtonPress(".crowd-button", this.crowd);
<a class="crowd-button">crowd</a>
The text was updated successfully, but these errors were encountered:
...or more simply edit <div class="tile tile-4096 tile-position-2-1"> and the svg url inside the tile <img src="style/img/4096.svg">
<div class="tile tile-4096 tile-position-2-1">
<img src="style/img/4096.svg">
background is black though... :(
Sorry, something went wrong.
No branches or pull requests
on
game-manager.js
:line 144 extend legend tile list
then exist already this function to crowd the board with live tiles.
To activate
this.inputManager.on("crowd", this.crowd.bind(this));
this.bindButtonPress(".crowd-button", this.crowd);
<a class="crowd-button">crowd</a>
The text was updated successfully, but these errors were encountered: