PET
Creating your own pet
So, you want to make your own desktop pet?
Good news! NotDeskling supports custom characters, and you don't need to know how to code to make one.
You can use the NotDeskling Creator on itch.io, which handles most of the tricky stuff for you.
Or, if you're like me and enjoy doing things the hard way, you can make a .pet file yourself!
This guide covers making one manually.
What's a .pet file anyway?
Nothing too fancy. A .pet file is just a ZIP archive with a different extension.
Inside, you'll find your character's sprites and a pet.json file that tells NotDeskling what to do with them.
That's it. No special software or complicated tools required.
One thing worth mentioning: .pet files aren't programs. You'll need NotDeskling to open them, and they won't work with other desktop pet applications.
Let's make a pet!
We'll start with something simple: a character with a single idle frame.
First, create a folder called MyFirstPet with the following structure:
MyFirstPet/
├── pet.json
└── sprites/
└── idle.png
For this example, idle.png is a transparent 32×32 PNG image.
Draw whatever you like. A frog, a cat, a suspicious looking potato. I'm not judging.
Now create a text file called pet.json and paste this inside:
{
"format": 1,
"name": "My First Pet",
"author": "Your Name",
"sprite": {
"width": 32,
"height": 32,
"scale": 3
},
"animations": {
"idle": {
"file": "sprites/idle.png",
"frames": 1,
"fps": 1
}
}
}
Change the name and author to whatever you like.
Congratulations, you've just described your first desktop pet!
It won't do anything particularly exciting yet, but we'll get to animations shortly.
Turning it into a .pet file
Now we need to package everything together.
- Open your
MyFirstPetfolder. - Select
pet.jsonand thespritesfolder. - Compress them into a ZIP archive.
- Rename the archive from
.zipto.pet.
For example:
MyFirstPet.zip → MyFirstPet.pet
Important: Make sure pet.json is directly inside the archive, not buried inside another folder.
If you open your .pet file with a ZIP tool, you should see pet.json and sprites/ straight away.
And that's your first .pet file ready to go!
What's all that JSON stuff?
The pet.json file tells NotDeskling what your pet is called, how big it is, and which images to use for its animations.
Here's what everything does.
Pet information
| Field | What it does |
|---|---|
format |
The .pet format version. Currently 1. |
name |
Your pet's name. |
author |
Your name, nickname, or whatever you'd like to be credited as. Optional. |
Sprite settings
| Field | What it does |
|---|---|
width |
Width of one animation frame in pixels. |
height |
Height of one animation frame in pixels. |
scale |
How much to enlarge your pet on screen. Defaults to 3. |
Sprite dimensions can range from 1 to 256 pixels, and scale can range from 1 to 8.
So a 32×32 sprite with a scale of 3 will normally appear around 96×96 pixels, before any display scaling.
You can experiment with these values to find what looks best.
Making your pet do things
A pet that just stands there is fine, but it's not much of an adventure.
NotDeskling supports several animations that your pet can use depending on what it's doing.
| Animation | When it's used |
|---|---|
idle |
When your pet is hanging around |
walk |
When it's wandering about |
sleep |
Nap time |
eat |
When you feed it |
happy |
Happy reactions |
look |
When it's watching something |
drag |
When you pick it up |
You only need the idle animation to make a working pet.
Everything else is optional. If an animation is missing, NotDeskling will fall back to idle.
So don't feel like you need to draw dozens of sprites before testing your creation.
Option 1: Sprite sheets
A sprite sheet is a single PNG containing multiple animation frames.
Let's say you've drawn four walking frames, each 32×32 pixels, arranged side by side.
Your finished sprite sheet would be 128×32 pixels.
Add this to your animations section:
"walk": {
"file": "sprites/walk.png",
"frames": 4,
"fps": 8
}
That tells NotDeskling to load four frames from walk.png and play them at eight frames per second.
Frames are read from left to right.
If your sprite sheet has multiple rows, you can specify which row to use:
"walk": {
"file": "sprites/animations.png",
"row": 1,
"frames": 4,
"fps": 8
}
Rows start at 0, so row: 1 means the second row.
Option 2: Separate images
Don't like sprite sheets? No problem!
You can also give NotDeskling a separate PNG for every animation frame.
"walk": {
"files": [
"sprites/walk1.png",
"sprites/walk2.png",
"sprites/walk3.png",
"sprites/walk4.png"
],
"frames": 4,
"fps": 8
}
NotDeskling will play the images in the order you've listed them.
Just make sure each image matches the width and height in your sprite settings.
Remember: Use file for sprite sheets or files for individual images. Don't use both in the same animation.
Testing your creation
Now for the fun part!
Open NotDeskling and use Import Pet to select your .pet file.
If everything is set up correctly, your new character should be added to your pet collection.
You can switch between your imported pets whenever you like.
Only one pet can be active at a time, though. We don't need an entire zoo running around the desktop. 😂
You can also open .pet files directly with NotDeskling where file associations are available.
A few rules to keep in mind
There are some limits to the .pet format, mostly to stop things getting out of hand.
- Up to 32 animations per pet.
- Between 1 and 128 frames per animation.
- Animation speeds from 0.1 to 60 FPS.
- PNG images only.
- Sprite dimensions between 1×1 and 256×256 pixels.
- Scale values between 1 and 8.
- Maximum archive entry size of 8 MiB.
- Maximum imported
.petfile size of 64 MiB.
File paths inside pet.json must be relative and use forward slashes (/).
The format currently supports sprites and animations, not custom sound effects or programmable pet behaviour.
Something not working?
My pet won't import!
First, check that pet.json is at the root of your .pet archive. Then make sure the JSON is valid and all the required fields are present.
My pet is invisible!
Check that your PNG files exist and the paths in pet.json match exactly. Also make sure you haven't accidentally drawn your entire pet transparent!
My animation looks completely wrong!
Double check your frame dimensions, frame count, and sprite sheet layout. If you're using multiple rows, make sure you've selected the correct one.
My pet just stands there instead of walking!
You probably haven't added a walk animation. Without one, NotDeskling uses idle instead.
My pet is enormous!
Check your scale value. Remember that display scaling can also affect the final size.
Need some sprites?
Not much of a pixel artist? Neither am I! 😂
For NotDeskling's development, I used the Brackeys' Platformer Bundle.
In fact, much of NotDeskling's original sprite and animation support was designed around this pack, so it's a great place to start.
The assets are available under a CC0 licence, meaning you can use and modify them in your own projects.
And yes, I actually paid for the pack! It's worth supporting fellow creators when you can.
If you're looking for some characters to experiment with, I highly recommend giving it a look.
Rather not do all this manually?
Fair enough! 😂
The NotDeskling Creator lets you draw characters, manage animations, import sprites, and export .pet files straight from your browser.
No accounts or uploads required.
You can find it on the NotDeskling itch.io page.
And if you make something cool, feel free to share it in the comments. I'd genuinely love to see what people create.