jspsych/plugins/jspsych-rdk.js
//Function to check if dot life has ended

Function to check if dot life has ended
Function to check if dot life has ended
function lifeEnded(dot) {
			if (dotLife < 0) {
				dot.lifeCount = 0; 
				return false;
			}
			else if (dot.lifeCount >= dotLife) {
				dot.lifeCount = 0;
				return true;
			}
			else {
				return false;
			}
		}
function lifeEnded ( dot ) { if ( dotLife < 0 ) { dot . lifeCount = 0 ; return false ; } else if ( dot . lifeCount >= dotLife ) { dot . lifeCount = 0 ; return true ; } else { return false ; } }
Function to check if dot life has ended
Function to check if dot life has ended
//If we want infinite dot life
 //resetting to zero to save memory. Otherwise it might increment to huge numbers.
 //Else if the dot's life has reached its end
 //Else the dot's life has not reached its end
