Code: Select all
struct actor_struct
{
Vector3 pos; // Position
Vector2 path; // Path of travel
float blend; // Blend strength (0-1) < only applies if not solid >
float angle; // Angle of rotation (0-360)
float rotation; // amount to rotate each frame
int mode; // 0 = solid. 1 = alpha
int state; // 0 = inactive. 1-12 = doing stuff
int effect; // 0 = none. 1 = zap-glow
int home; // Spawner that brought them into this hellish nightmare
int timer; // Internal timer for animation purposes.
int stamina; // Walking and being attacked drain stamina. When <= 0 the actor dies or fades out
int cel_x; // X cel within sprite sheet
int cel_y; // Y cel within sprite sheet
int thought; // emoji they have in their head
int locked_to; // Actor this player is locked to (thug is beating someone)
bool enabled; // TRUE if this actor is active
};
Here's a crazy idea. How about porting Cry Havoc to run inside the browser...
Sorry, I meant to come back to this post, and totally forgot. Getting old, I guess