Worked on some camera controls for our upcoming (multi player, multi device) board games simulator Board Game Machine . Control mechanisms demonstrated in the video below:
- 90 degree spherical (elliptical) rotation of the camera position to view each side of the game board
- Continuous vertical rotation of the camera position to get the desired view angle onto the board
- 90 degree camera rolling when the camera is facing straight down
Notice (or rather, please do not notice) how there is a myriad of debugging text on the screen (the video is recorded straight from the dedicated development tool), and how the graphics are still very much in development.
Making Eclipse stop on Null Pointer Exception (and friends)
- Watch the IDE stop into an empty page somewhere in the Dalvik code (no source code available unless you installed the full Android sources) with a rather meaningless call stack.
- Hit F8 to continue running.
- Look at LogCat to find out what was actually wrong. Find the red lines in the log, scroll down until you find the "caused by" line, doubleclick, and finally be transported to the offending line in your code.
- From the menu, select Run, Add Java Exception Breakpoint
- Find NullPointerException (or whatever exception you are debugging)
- Verify Suspend On Caught Exceptions is checked. Click OK.
No comments:
Post a Comment