Jump to content

Grid/Tilemap drawing ending abruptly


andrushkin
 Share

Recommended Posts

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 stumped

I 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.

post-14260-0-22996800-1429760669.png

post-14260-0-56136800-1429760950.png

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...