![]() |
Routines |
| Prev: C337 | Up: Map | Next: C3A4 |
|
Used by the routine at DrawChangedObjects.
Moves the sun or moon along the arc in the window of the panel by one pixel, on one frame in eight, and shows it.
|
||||
| MoveSunMoon | C397 | LD A,($5BA2) | Fetch the frame counter from FrameCounter. | |
| C39A | AND %00000111 | Keep the lowest three bits. | ||
| C39C | RET NZ | Return unless it is one frame in eight. | ||
| C39D | LD IX,$C44D | Point IX at SunMoonObject. | ||
| C3A1 | INC (IX+$1A) | Move the sun/moon one pixel to the right. | ||
| Prev: C337 | Up: Map | Next: C3A4 |