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?

1 answer 1

Look at this article, the item "Draggable layers":

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