Skip to content

Commit

Permalink
UT: add onTick callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Exr0n committed Jan 26, 2024
1 parent 17e0a64 commit 85d91f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blockrain.jquery.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

// other callbacks
onKey: function(evt) {}, // NOTE: not implemented for touch or gyro controls
onBlockAppear: function() {}
onBlockAppear: function() {},
onTick: function() {}
},


Expand Down Expand Up @@ -1028,6 +1029,7 @@
//game.updateSizes();

if( !this.paused && !this.gameover ) {
game.options.onTick();

this.dropCount++;

Expand Down

0 comments on commit 85d91f3

Please sign in to comment.