6. Static Vs Dynamic
Dynamic (In Black)
Static (In Green)
Pointers
ADDRESS
Value
1
10 (Addr of XYZ)
10
XYZ
12
HEALTH
Value at ((Value at 1) + 2) = Health
Value at ((10) + 2) = Health
Value at (12) = Health
7. Memory Dissects – Player Structure
Struct Player {
.
.
.
float xPos;
float yPos;
flost zpos;
float xMouse;
float yMouse;
int health;
int bullets_weapon1;
int bullets_weapon2;
int bullets_weapon3;
.
.
.
}
Coordinates
Cross Hair
Weapons