Commit graph

16 commits

Author SHA1 Message Date
Kazhnuz
56a269dd57 modules/world: work around Y invertion in the camera system 2019-05-02 18:46:44 +02:00
Kazhnuz
b69ad095ee modules/world: make drawDebugViewBox function related to one view 2019-05-02 18:27:58 +02:00
Kazhnuz
065a67a915 modules/world: add a function to get view relative position 2019-05-02 16:19:59 +02:00
Kazhnuz
f1edd118ec modules/world: simplify limitView() by using utils.math.between() 2019-05-02 16:19:28 +02:00
Kazhnuz
d908604dcb module/world: return camera coordinate in the right order 2019-05-01 10:39:19 +02:00
Kazhnuz
a2d38a1ef4 module/world: make sure that the view doesn't go outside the world 2019-05-01 10:27:07 +02:00
Kazhnuz
00fe87f61d modules/world: invert player 1 and 2 cam in horizontal split mode 2019-04-29 15:10:02 +02:00
Kazhnuz
882f98bf40 modules/world: add a way to link the camera to an actor 2019-04-29 15:03:28 +02:00
Kazhnuz
1ba74a534d modules/world: scissor the view when attaching the camera 2019-04-29 14:12:04 +02:00
Kazhnuz
bc0b1bb87b modules/world: initial functions to compute camera size and positionning 2019-04-29 13:58:13 +02:00
Kazhnuz
3c498f2d16 modules/world: add a basic view dimension system 2019-04-29 11:39:07 +02:00
Kazhnuz
ffac18d6a5 modules/world: add a way to get camera scale and view 2019-04-29 11:20:59 +02:00
Kazhnuz
06a5192b84 modules/world: fix a typo 2019-04-29 10:47:01 +02:00
Kazhnuz
699efeb2fb modules/world: add a view number limit 2019-04-29 10:42:43 +02:00
Kazhnuz
79ecdc822b modules/world: only attach view to camera if one is requested 2019-04-29 08:45:48 +02:00
Kazhnuz
9c3ef4ce65 modules/world: add initial basic camera system 2019-04-29 08:44:10 +02:00