rolandoam / ChesterGL

A simple and performant WebGL game library for 2D games
Other
105 stars 16 forks source link

Camera! #28

Closed lharding closed 12 years ago

lharding commented 12 years ago

So here's that camera system I promised, more or less. How it works and where it's going in my mind should be mostly self-explanatory.

rolandoam commented 12 years ago

great! thanks a lot. I'll review it later today.

One question: would it be possible for you to add an example on how to use this? maybe you could just duplicate test_single_block.html and create a simple example... That would be awesome :)

lharding commented 12 years ago

That's probably a good idea. I'll send you a pull request for it when I've made one.

rolandoam commented 12 years ago

thanks!

lharding commented 12 years ago

Alrighty, here's a super-simple camera example. Enjoy!

rolandoam commented 12 years ago

cool! thanks ^_^ I'll give it a look this weekend

rolandoam commented 12 years ago

Ok, tested it and looks good (some parts can be improved, but it looks ok). This change breaks all other tests though, so I'll keep this open for a while.

I'll add my comments to the diff. Again, thanks a lot!

rolandoam commented 12 years ago

I'll close this for now, since I'm also rewriting the rendering code (separating the scene graph from the rendering list)