/************************************************************************/ /* ________ ___________ __ */ /* / _____/_____ _____ ____ / _____/ | ____ __ ____ | | __ */ /* / \ ___\__ \ / \_/ __ \ \_____ \| |/ / | \/ \| |/ / */ /* \ \_\ \/ __ \| Y Y \ ___/ / \ <| | / | \ < */ /* \______ (____ /__|_| /\___ >_______ /__|_ \____/|___| /__|_ \ */ /* \/ \/ \/ \/ \/ \/ \/ \/ */ /* _____ .___ */ /* / _ \ __| _/__ _______ ____ ____ ____ */ /* / /_\ \ / __ |\ \/ /\__ \ / \_/ ___\/ __ \ */ /* / | \/ /_/ | \ / / __ \| | \ \__\ ___/ */ /* \____|__ /\____ | \_/ (____ /___| /\___ >___ > */ /* \/ \/ \/ \/ \/ \/ */ /************************************************************************/ #ifndef GUARD_73FF49EF137A66E6AAD3A8A1BCF2F2DE #define GUARD_73FF49EF137A66E6AAD3A8A1BCF2F2DE #include "gsa_input.h" #include "gsa_map.h" #include "gsa_text.h" #include "image8.h" #include "msvc.h" #include "skunkworks.h" #include "vec2i.h" #include "window.h" #define MAX_SPRITES 256 #define GSA_PALETTE_SIZE 256 struct gsa_sprite { u16 tile; i32 x, y; }; extern struct gsa_sprite sprites[MAX_SPRITES]; extern sw_color32 palette[GSA_PALETTE_SIZE]; int gsa_main(int argc, char *argv[]); void gsa_copy_palette_to(sw_color32 *dst); void gsa_copy_palette_from(sw_color32 *src); void gsa_run_loop(bool (*loopfun)()); /* to be implemented in game */ void init(); void tick(); #ifndef GSA_NOMAIN int main(int argc, char *argv[]) { gsa_main(argc, argv); return 0; } #endif #endif /* GUARD_73FF49EF137A66E6AAD3A8A1BCF2F2DE */