You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen in the video the rocks can create a barrier that doesn't allow the player to move to the other side of the game field.
Screencast.da.2026-04-12.21-40-46.webm
Although the player could still win by just waiting for the flies to fly in the area it can reach, It don't think it's intended game design.
It should be fixed by adding a new check to the intersect function:
// Set randomely rocksthis.rocks=[];for(vari=0;i<FoodChain.playLevels[this.level-1].rocks;i++){// Ensure distance between blocks and between block and frog is sufficientvarrock=FoodChain.createWithCondition(// Create randomly a new rock...function(){varx=130+Math.floor(Math.random()*(FoodChain.playArea.width-300));vary=130+Math.floor(Math.random()*(FoodChain.playArea.height-200));varh=Math.floor(Math.random()*4)*90;returnnewSprite({x: x,y: y,heading: h,images: ["rock"],width: FoodChain.sprites.rock.dx,height: FoodChain.sprites.rock.dy,index: 0});},// ... while don't intersect with ...function(n,s){return!n.intersect(s);// ADD here something like, && n.distance(s) > 200},// ... other rocks and frogenyo.cloneArray(this.rocks).concat(this.frog));this.rocks.push(rock);}
As seen in the video the rocks can create a barrier that doesn't allow the player to move to the other side of the game field.
Screencast.da.2026-04-12.21-40-46.webm
Although the player could still win by just waiting for the flies to fly in the area it can reach, It don't think it's intended game design.
It should be fixed by adding a new check to the intersect function:
let me know what you think.