Instructor Notes
April 2, 2008
Assignments
- Project Proposals
- Phase I discussion
Review
- lookup tables with sound revisited
- convert from Hz to GB values at assemble time
- main loop with timer
- CALL_IF_NTH_TIME macro
Transferer II questions
What to cover next week
How do we "pool our recourses?"
- break into small groups?
- program at the lab?
- identify more common problems?
- go over people's code, either broken or working?
windows
- 32 x 32 8x8 tiles
- choose coordinates on the screen with WX and WY
- WX offset by 7 i.e. WX = 7 WY = 0 is actually (0,0)
- turn the window off and on with LCDC and LCDCF_WINON and LCDCF_WINOFF
- choose Window Tile Map also with LCDC.
- Use $9c00 for Window Tile Map if you use $9800 for Background Tile Map....or...vice versa
- no tiles in a window are transparent
- window is always above background
- sprite is either above both background and window, or below both background and window.
LCDC interrupt
- use to turn window on and off at certain vertical lines
- set flags in STAT so the LCDC interrupt is generated when LYC = LCDC LY
- in your LCDC interrupt routine, turn the window off or on, etc.