Newer
Older
cneboy_games / rpg / ent.h
@Mark Bavis Mark Bavis on 19 Aug 2022 282 bytes Working dynamic code loading
#pragma once
#include <client_api.h>
#include <stdbool.h>

typedef struct
{
    // last frame coords
    float ox;
    float oy;

    // current coords
    float x;
    float y;

    pbm_t* graphic;
    pbm_t* outline;
    int off_x;
    int off_y;
    int outline_pixels;
} ent_t;