LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: kappa on October 10, 2004, 19:30:57

Title: moving camera in 2d
Post by: kappa on October 10, 2004, 19:30:57
i been playing with lwjgl for a while now and have a nice 2d game running in it.

i was wondering if it was possible to move the camera and get a perpective view on it you know a bit like at 45 degree angle, it would be very cool if this was possible, a bit like final fantasy 6 on the world map(snes).

i was hoping someone could point me in the right direction because i'm not sure how i would go about this in lwjgl.

thanks
Title: moving camera in 2d
Post by: oNyx on October 11, 2004, 00:05:20
Well, it's actually done in a pretty funny way. You don't move the camera at all - instead you move the world around it :D

"rotate" and "translate" are the magic words.

nehe (http://nehe.gamedev.net/) (temporary down right now - duh)
chman's lwjgl stuff (http://chman.kaioa.com/blog/index.php?module=pages&page=lwjgl)