📜 ⬆️ ⬇️

Parallax in 2D game. Interesting motion effect when creating a game on JavaScript (canvas)

When creating a game, I came across an interesting idea of ​​how to realize the effect of three-dimensional movement, while creating, for example, a platformer. This opportunity, I think, is suitable for most 2D games, tied to the scrolling of the game world.
image

Video timing:
00:00 - 02:09 - theory
02:08 - 03:32 - the creation and positioning of objects
03:32 - 05:16 - control of the object, movement
05:16 - 07:44 - creating the effect of parallax (three-dimensional)
07:44 - 08:50 - fixing the camera on the object

The lesson itself:
Watch 10 minutes


')
As usual, if you have questions - write in the comments.

Source: https://habr.com/ru/post/304140/


All Articles