So i have a game and i want to add a minimap on the bottom right corner. I have seen how to do it with html javascript, which has the ode written in index.html, but i want to write the code in a .js file, while using p5.js library. Link to code: https://github.com/proqbr/minimap and for output: https://proqbr.github.io/minimap/ The player starts from the top right of the canvas and since i've used camera.zoom = 5 it makes it confusing as to where the center of the map is. The camera.position is set in play() in level.js


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.