===================================================================
--- original.js
+++ change.js
@@ -94,5 +94,9 @@
// Spawn a new ingredient every 60 frames
if (LK.ticks % 60 === 0) {
spawnIngredient();
}
+ // Publish the game when the score reaches 100
+ if (score >= 100) {
+ LK.publish();
+ }
};
\ No newline at end of file