Discuss Scratch
- Discussion Forums
- » Dustbin
- » Testing the Dustbin!
- Heathercat123
-
Scratch Team
100+ posts
Testing the Dustbin!
This entire topic will be sent to the trash can! Wahoo!!!
Developer of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
- Heathercat123
-
Scratch Team
100+ posts
Testing the Dustbin!
Wii U I look just like buddy holly!
Gameboy and you look like Mary Tyler Moore!
Gameboy and you look like Mary Tyler Moore!
Developer of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
- Heathercat123
-
Scratch Team
100+ posts
Testing the Dustbin!
I'm posting garbage!
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
Developer of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
- Heathercat123
-
Scratch Team
100+ posts
Testing the Dustbin!
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 = &sprites<span class="bb-italic">; spr->alive = 1; spr->x = x; spr->y = y; spr->scale_x = spr->scale_y = 1; strcpy(spr->img, img_path); get_image_size(img_path, &spr->width, &spr->height); // LOG(("Sprite size: %d; %d\n", spr->width, spr->height)); sprite_count++; LOG(("Created sprite with image \"%s\". ", img_path)); if (sprite_count == 1) { LOG(("There is now 1 sprite.\n")); } else { LOG(("There are now %d sprites.\n", sprite_count)); } return spr; } </span></span>
Developer of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
- Discussion Forums
- » Dustbin
-
» Testing the Dustbin!