Object placement and movement figure smooth sliding demolets take look under the hood
Object Placement and Movement 471
Most of the globals in IsoHex18_2 are the same as in IsoHex18_1. A few were added to accommodate
the smooth scrolling nature of unit movement.
Table 18.3 Game States
State When It Happens
TeamLRN
GS_STARTMOVE |
|
---|
POINT ptUnitOffset;
int iUnitFrame=0;
The main loop, on the other hand, has changed a great deal, especially because of the switch to multiple game states. Let’s look at them one at a time.
GS_IDLE.