danrhan Posted March 13, 2018 Share Posted March 13, 2018 Hello, I made a script to draw map from dungeon keeper game. I use the tileset extract from the game to draw it. Just for fun =) To draw the full map i need a huge stage of 8160x8160. (85*3*32px) So i draw only a part of map. But CPU up to 100% when i move mouse or keyboard... I use chrome and the last release of pixijs 4.7 I don't unsterdand. Can you help me to optimize my script ? Sorry, i don't speak english very well... Project.zip Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 14, 2018 Share Posted March 14, 2018 Consider using pixi-tilemap and please read all forum posts related to tilemaps (in this pixi subsection), it was explained many times. Also, pixijs github issues. Your info is not enough because therre are many ways to implement tilemaps in pixi. Quote Link to comment Share on other sites More sharing options...
danrhan Posted March 20, 2018 Author Share Posted March 20, 2018 Thank for your fast response. My project is no more slow ! i find a solution. i will detail in a future post. I added texts things, animated tiled, creature... =) to do mouse control to nav in map ... Look the screenshot. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 20, 2018 Share Posted March 20, 2018 Nice! Yep, we need more articles about possible tilemap implementations. Quote Link to comment Share on other sites More sharing options...
Gerente Posted March 20, 2018 Share Posted March 20, 2018 nice, would be nice to see what was your issue and did you fixed it. 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.