About
-
Version: 0.3.1 (mobile-beta)
+
Version: 0.9
This is a pre-release. If you encounter any bugs please report them using GitHub issues. This game runs best in landscape mode. Performance of the event display may rely heavily on your hardware.
Particle Clicker is a game that was made during the CERN Webfest 2014. The idea is borrowed from Cookie Clicker, an amazing and addictive cookie-themed game.

diff --git a/js/app.js b/js/app.js
index 8c532df..dd6b5c4 100644
--- a/js/app.js
+++ b/js/app.js
@@ -32,7 +32,7 @@
app.controller('DetectorController', function() {
this.click = function() {
- lab.acquireData(lab.state.detector);
+ lab.clickDetector();
detector.addEvent();
UI.showUpdateValue("#update-data", lab.state.detector);
return false;
@@ -146,6 +146,16 @@
$interval($scope.saveNow, 10000);
}]);
+ app.controller('StatsController', function($scope) {
+ $scope.stats = {
+ clicks: lab.state.clicks,
+ moneyCollected: lab.state.moneyCollected,
+ moneySpent: lab.state.moneySpent,
+ dataCollected: lab.state.dataCollected,
+ dataSpent: lab.state.dataSpent
+ };
+ });
+
analytics.init();
analytics.sendScreen(analytics.screens.main);
})();
diff --git a/js/gameobjects.js b/js/gameobjects.js
index 9f5e34e..3f56fa0 100644
--- a/js/gameobjects.js
+++ b/js/gameobjects.js
@@ -54,6 +54,11 @@ var GameObjects = (function() {
this.state.dataCollected += amount;
};
+ Lab.prototype.clickDetector = function() {
+ this.state.clicks += 1;
+ this.acquireData(this.state.detector);
+ };
+
Lab.prototype.research = function(cost, reputation) {
if (this.state.data >= cost) {
this.state.data -= cost;