andrushkin Posted April 23, 2015 Share Posted April 23, 2015 Hello everyone, just registered for the forum a little while ago. Already enjoying the place I've been playing around with PIXI for the past couple of days and have run into an issue which has me stumpedI am attempting to draw a tile map/grid of N number of tiles, pixi however abruptly stops drawing tiles, see the images below The time when it ceases to draw any more doesn't seem to be dependant on the number of drawing operations, or the tiles size. Interestingly enough, Firefox manages to get a little further than Chrome in drawing the tilemap. Here is my code for drawing the tilemap for(var i = 0; i < this.gridWidth; i++){ for(var j = 0; j < this.gridHeight; j++){ var cell = this.grid[i][j]; graphics.beginFill(cell.color); graphics.drawRect(i*cellSize, j*cellSize, cellSize, cellSize); } } graphics.endFill(); };Any ideas? Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.