Sign up ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm making a mode7 game like mario-kart and I need to tilt the image before I draw it, I have tried using a buffer canvas to tilt the image then draw it on the games canvas but this makes it laggy (because the image of map is 1280 x 2556.)

So my question is:

How can I rotate my image before i draw it

share|improve this question
    
How the original Mario Cart did it is off-topic on this website, but let me give you a hint what to google for: SNES Mode7. To get fast 3d rendering in HTML5 canvas, you should look into using WebGL. A complete explanation would be far too long to write as an answer, but doing a basic WebGL tutorial should tell you enough to do what you want to do. – Philipp Sep 15 at 19:48
    
I fixed my question to make it more on-topic – that guy Sep 15 at 19:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.