Happy new year !
Nice work :)
I tried to modified Tilewidth, number of tiles but it doesn't work right.
I modified :
|
c.drawImage(texture,j,i,130,230,-65,-130,130,230) |
to allow tile size modifications,
c.drawImage(texture,j,i,130,230,-tileWidth/2-1,-tileHeight*2-2,tileWidth,tileHeight*230 / 66 );
Display works right but formulas for mouse event needs modification which reveal the logic bug in actual formula.
It probably still require some work to remove the remaining magic numbers and to make it pixel perfect. (There are currently some one pixel width lines between tiles for some tiles). There are probably some dark pixel magic needed to have it render pixel perfect without interpolation issues and texture sampling.
Similarly increase the number of tiles doesn't work.
Also by the way the lighting of the ground of the last tile is inverted with respect to all other tiles.
It looks really nice, well done !