jrheard / voke

a roguelite in clojurescript
MIT License
32 stars 2 forks source link

implement a camera #42

Closed jrheard closed 7 years ago

jrheard commented 7 years ago

follows the player around, lets them explore a big level

http://www.gamasutra.com/blogs/ItayKeren/20150511/243083/Scroll_Back_The_Theory_and_Practice_of_Cameras_in_SideScrollers.php

jrheard commented 7 years ago

http://www.imake-games.com/cameras-in-2d-platformers/

jrheard commented 7 years ago

https://www.youtube.com/watch?v=TCIMPYM0AQg&feature=player_embedded

jrheard commented 7 years ago

" The best way to support cameras at the moment is to put everything in a container and move that around. So if the camera position is 10, 100 the container position would be set to -10, -100. "

"Yes, there is no automagic culling in PIXI.js. You can implement culling on your own using .visible properties."

jrheard commented 7 years ago

see https://github.com/fponticelli/ledge/issues/4