June 2015
Beginner
354 pages
8h 23m
English
We will continue work with our CSS3 card matching game:
matchgame.js JavaScript file.matchingGame variable. This code creates an object named savingObject to save the array of the deck, the removed cards and the current elapsed time:matchingGame.savingObject = {};
matchingGame.savingObject.deck = [];
// array to store which card is removed by their index.
matchingGame.savingObject.removedCards = [];
// store the counting elapsed time.
matchingGame.savingObject.currentElapsedTime = 0;ready function, add the following highlighted code. It clones the order of the deck to the savingObject ...Read now
Unlock full access