Commits

kevin1024  committed e7f899d

add poop wiggle option

  • Participants
  • Parent commits 56c7cd9

Comments (0)

Files changed (1)

File public_html/static/js/main.js

 
 	var SNAKE_START_LENGTH = 5;
 	var SNAKE_EMOTE_TIME = 3;
+	var POOP_WIGGLE = false;  //wiggles poop but slows down the game
 
 	var color_to_rgb = function(c){
 		switch(c){
 			this.render();
 		},
 		on_tick: function(){
+			if (POOP_WIGGLE) {
+			    this.render();
+			}
 		},
 		has_coords: function(i,j) {
 			if (i < 0 || i > GRID_HEIGHT - 1) {