Commit graph

14 commits

Author SHA1 Message Date
Kazhnuz
9ea2d2ca40 feat(world): add a wrapper for maps new "getBox()" function 2019-07-26 11:43:54 +02:00
Kazhnuz
2e3fd587c0 chore: port every print to new debug mode 2019-07-24 11:21:32 +02:00
Kazhnuz
79aff589b9 fix(camera): remove test reticule 2019-07-15 10:09:54 +02:00
Kazhnuz
2f7d313ab9 fix(camera): fix tearing and heavy pixelisation in zoom mode
Currently, the canvas was created at render size and elements where 
resized inside. Work a bit differenlty, by creating a canvas that have 
the view "true" size (meaning the scaled size), and draw everything at 
1:1 size inside. Then, when drawing the view canvas, resize the whole 
canvas at the multiplication of both scaling.
2019-07-15 10:04:06 +02:00
Kazhnuz
f2cabff81c chore(camera): improve comments 2019-07-14 23:15:30 +02:00
Kazhnuz
f9a268a51a improvement(camera): make getViewsDimensions a wrapper around a camutil 2019-07-14 23:12:22 +02:00
Kazhnuz
7376d75aeb chore(camera): simplify view system
Remove view.cam and view.pos
2019-07-14 22:59:58 +02:00
Kazhnuz
7ec715850c chore(camera): remove unused functions 2019-07-14 22:53:55 +02:00
Kazhnuz
81dd584e11 improvement(camera): use a new canvas-based view system 2019-07-14 22:49:27 +02:00
Kazhnuz
35433b273d chore(camera): remove hump.camera 2019-07-14 18:57:50 +02:00
Kazhnuz
f48de0e9bd improvement(camera): manually attach the view instead of using hump func 2019-07-14 18:48:25 +02:00
Kazhnuz
6947d2f3f2 fix(camera): fix onscreen coordinates by using new core.screen func 2019-07-14 18:41:13 +02:00
Kazhnuz
fb428b45c3 chore(camera): put the view algorithm in a "utils" file 2019-07-14 18:35:33 +02:00
Kazhnuz
e4b89ddd31 chore(camera): split camera into a specific folder 2019-07-14 18:28:29 +02:00