vsys Posted April 26, 2020 Share Posted April 26, 2020 Dear GameDev users, i'm new in canvas world. and i need a help. i'm create a 300x300 tile map (with 64x64 tiles). (19200px X 19200 px) <canvas id="entities" width="1440" height="800">Your browser doesn't support HTML5 Canvas</canvas> Added tiles with, every colls and rows drawImage(image, x, y); x= 0,64,128,192 ….. y= 0,64,128,192 ….. i get my map. how can i scroll in this only looking the 1440x800px content. 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.