Kazhnuz
940cb1b41f
improvement(camera): use the shape system to control the camera.
2019-07-01 14:15:10 +02:00
Kazhnuz
b558650d00
feat(camera): add more camera types
2019-06-29 18:42:38 +02:00
Kazhnuz
91fc55555f
feat(camera): make the camera support multiple "mode"
2019-06-29 11:32:42 +02:00
Kazhnuz
408a71434f
fix(world): use right camera internal coordinate
...
Fixes #15 and #17
2019-06-21 18:50:45 +02:00
Kazhnuz
3ced2dbef4
fix(world): separate getting data from the internal and advertised view
...
Use two functions instead of just one, one showing the actual dimensions
of the internal "cam" (basically, the whole screen), and one showing the
advertised displaced camera.
Fixes #16
2019-06-21 18:27:02 +02:00
Kazhnuz
4c2427bfd6
feat(world): add a drawHUD function to draw the current HUD
...
It is able to draw everything a player object want directly where it
should go.
Fixes #3
2019-06-13 22:23:23 +02:00
Kazhnuz
adfa147b72
examples/moveplayer: fix camera2 having the wrong set of coordinate
2019-05-02 18:47:36 +02:00
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