Heathercat123

This entire topic will be sent to the trash can! Wahoo!!!

Heathercat123

Wii U I look just like buddy holly!
Gameboy and you look like Mary Tyler Moore!

Heathercat123

I'm posting garbage!

Micheather Shinocat wrote:


It starts with one

One ban, I don't know why
It doesn't even matter how hard I try
Keep that in mind, I designed this rhyme
To explain in due time, all I know
Accounts are a valuable thing
Watch them fly by as the ban hammer swings
Watch them get deleted at the end of the day
All my projects flew away, it's so unreal
Didn't look out below
Watch my work go right out the window
Tryin' to hold on, d-didn't even know
I wasted it all just to watch it go

Heathercat123

CTRL-C CTRL-Ving random files goes brrrrrrr

struct CatGameSprite *create_sprite(float x, float y, int atlas, char img[]) {
    if (sprite_count >= SPRITE_LIMIT) {
        LOG(("Couldn't create sprite %s: Limit reached.\n", img));
        return NULL;
    }

    char folder[32];
    switch (atlas) {
        case ATLAS_HUD:
            strcpy(folder, "hud_texture");
            break;
        case ATLAS_SPRITES:
            strcpy(folder, "entites");
            break;
        case ATLAS_GROUP1:
            strcpy(folder, "group_1");
            break;
        case ATLAS_INTRO:
            strcpy(folder, "intro_texture");
            break;
        case ATLAS_INTRO2:
            strcpy(folder, "intro_texture_2");
            break;
    }

    char img_path[128] = "";
#ifndef USE_BMP
    sprintf(img_path, "../assets/gfx/unpacked/%s/%s.png", folder, img);
#else
    sprintf(img_path, "../assets/gfx/unpacked/%s/%s.bmp", folder, img);
#endif

    // Find first unused sprite slot (alive = 0)
    int i = 0;
    for (i = 0; sprites<span class="bb-italic">.alive; i++);

    struct CatGameSprite *spr = &amp;sprites<span class="bb-italic">;


    spr-&gt;alive = 1;
    spr-&gt;x = x;
    spr-&gt;y = y;
    spr-&gt;scale_x = spr-&gt;scale_y = 1;
    strcpy(spr-&gt;img, img_path);

    get_image_size(img_path, &amp;spr-&gt;width, &amp;spr-&gt;height);
    // LOG((&quot;Sprite size: %d; %d\n&quot;, spr-&gt;width, spr-&gt;height));

    sprite_count++;

    LOG((&quot;Created sprite with image \&quot;%s\&quot;. &quot;, img_path));
    if (sprite_count == 1) {
        LOG((&quot;There is now 1 sprite.\n&quot;));
    } else {
        LOG((&quot;There are now %d sprites.\n&quot;, sprite_count));
    }
    return spr;
}
</span></span>