Author Topic: Frogatto  (Read 3182 times)

0 Members and 1 Guest are viewing this topic.

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Quote from: Frogatto wiki

IMAGE FORMAT SPECIFIC INFO-

Images
for objects:
Frogatto only supports one image type: PNGs. JPEG support might be reasonable, and our libraries would support it with some additional work, but you'll need to come to us with a compelling use case before we add the feature (this isn't a show-stopper for you; it'll just eat up some additional data space).

We may have issues with PNG8 files, we encourage everyone to use PNG24 files.

We rarely use it ourselves, but we do have full support for PNG alpha channels. What we use instead, and which is more convenient for pixel-art, is a pair of "magic colors". Any pixel with the RGB values #f9303d or #6f6d51 will be made entirely transparent in the game. The biggest benefit of magic-colors is it allowing us to annotate directly in the images; primarily, we use this to draw the frame bounds images are sliced at, since visually figuring out where they are from the actual markup is time-consuming and error prone - as is lining up images in a spritesheet without these.

It's possible to reference an animation in which every frame is a separate image, but we have a slew of conveniences for what are called "spritesheets": series of animation frames arranged in rows and columns, all within as few images (often just one) as possible. You're encouraged to use spritesheets for all animations.

We have a few limitations on image size; first, all image files must be an even number of pixels in both dimensions (the files themselves, not the animations on them. Second, if you're going to repeat an image (in the manner used by ropes, or our parallax backgrounds), it needs to be a power-of-two along the dimension that repeats.

For memory usage, it's encouraged that you don't exceed "power-of-two" boundaries by a small amount, because the game will internally expand that texture to the full limit of the next po2 unit in that dimension; for example, if you have a texture that's 533 pixels wide, the game will pad it to a full 1024 pixels wide, internally. In memory, another 512x512 block of uncompressed 32bpp data is 2 megabytes in size, so this can really add up. Naturally, this is barely an issue with small powers-of-two like going from 32x32->32x64; you should only worry about this at sizes about 512x512px. Generally, if you're exceeding 512x512, you should just make another spritesheet for the additional animations.

We do have a system for compiling images into enormous texture atlases, so you shouldn't knock yourself out optimizing your spritesheets by hand. It's a waste of time, the script will do better than you can ever hope to. Optimize your spritesheets for human readability, and ease-of-editing, not size.

for backgrounds:
As mentioned above, backgrounds have a restriction that they have to be a power-of-two in the direction they repeat in. Backgrounds will always repeat horizontally, but whether they repeat vertically is optional (this can be set separately for up and down; a background can start at a certain height, and only repeat in one direction). Background images thus always have to be a power-of-two horizontally, but vertically is a matter of whether you need them to repeat. Backgrounds that don't need to repeat vertically can be stacked together in a single image.

Backgrounds are layered in the order they're drawn in; later things go on top. For optimization reasons, you're encouraged to put large blocks of stuff that need to be drawn as a batch, all in the same image (like our layers that comprise the ocean in frogatto). This way, they can all be drawn as one operation.

Additional background info---

Backgrounds:
Frogatto has special, hard-coded support for parallax backgrounds, and foregrounds, made up of large, repeating graphics. We can have as many layers as you want, our only limitation is that stuff has to be a power-of-two in size (unless it's a small, isolated thing like a cloud separated by empty, transparent space), and our horizontal backgrounds can't stop at a certain point (though this can be faked). Note that our tiles and our objects can also be given parallax, so using the special hardcoded backgrounds is not your only option! Backgrounds are covered in this tutorial TODO.

Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png