Nikos123 6 Report post Posted April 4, 2017 Basically after this line runs, I expect a rectangle to be drawn on screen https://github.com/QuantumInformation/Density-Wars/blob/master/client/hud/GameOverlay.ts#L70 However I see no rectangle drawn to screen, even though the code seems to run fine, any ideas? No issue with z-indexes. Quote Share this post Link to post Share on other sites
Nikos123 6 Report post Posted April 4, 2017 Found the issue My rectangle was been drawn offscreen due to the x,y value been inflated somehow. Quote Share this post Link to post Share on other sites
Nikos123 6 Report post Posted April 4, 2017 Basically its because I'm using canvas width 100%, canvas prefers actual pixel values. Quote Share this post Link to post Share on other sites