There is a certain 2D card, the card does not fit on the playing field. How can I move it when a player is playing? How are such games built? How does the map move?
- In general, it seems that I found the solution, right now I will try craftyjs.com/api/Crafty-viewport.html - or_die
|
1 answer
Look at this article, the item "Draggable layers": http://habrahabr.ru/post/168705/
The idea is to draw a map onto a larger canvas, display only a part of the canvas, and if necessary, shift it.
- Thank you, the idea is clear :) The problem is now different, trying to write a toy on CraftyJS. Maybe CraftyJS has already built such functionality? - or_die pm
|