Nikos123 Posted April 4, 2017 Share 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 Link to comment Share on other sites More sharing options...
Nikos123 Posted April 4, 2017 Author Share Posted April 4, 2017 Found the issue My rectangle was been drawn offscreen due to the x,y value been inflated somehow. Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted April 4, 2017 Author Share Posted April 4, 2017 Basically its because I'm using canvas width 100%, canvas prefers actual pixel values. 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.