|
Project Ghost Code Demo |
||
|
|
||
|
This applet demonstrates the
Isometric Canvas class I started toying with. Since our game-engine is
going Isometric, I had to understand the calculations involved and test
for myself the simplest ways to create Isometric display and determine
where the mouse-pointer (or other objects) exist in relation to the
Isometric tiles. Since things are different now, I'll have to modify
and maybe re-write parts of my PaintManager class so the background will
get refreshed properly, based on the specific Isometric tiles that became
"dirty" in the previous frame, and not just the
"dirty" rectangles.
Simply move the mouse around inside the tiles and you can notice the current tile is highlighted. Then click the mouse and drag it around, you can see a yellow rectangle that marks all the Isometric tiles that are affected by the displayed rectangle. |
||