pen: [ http://codepen.io/ustvarno/pen/yJWJox?editors=0010 ]
line 30
I tried this
$gameContainer.empty(); // only this works
$gameContainer.slice(1).empty();
$gameContainer.not(':first').empty();
Only first works, but i need something like second and third to be working
Is this the result you are looking for:
for ( var i = 0; i < currentGridNumber; i ++ )
for ( var y = 0; y < currentGridNumber; y ++ ){
if(y===0&&i==0){
}else{
Add an if/else statement within your for loops.
No, ur code ‘deleting’ my first canvas (node in grid)
comment line where i empty $gameContainer
u will se another div
called '#ground'
it represent 'shadow’
i want to use div
instead box-shadow