ID:2116253
 
Code:
obj
ball
name = "Ball"
icon = 'ball.png'


obj
ball
name = "Ball"
icon = 'ball.dmi'


Problem description: I want to make an object, a ball let's say. Its image is in a 32x32 ball.png file. What's the point of making an icon file (.dmi), copy the previous image and paste it there (2nd code) rather than just putting the ball.png file in the project and use the 1st code? As I tested, both ways work but are there any differences? Which one should I use? Same applies to all objects and turfs I will have to make...

There's no difference if the icon is a single frame.

The .dmi format lets you create an icon that contains multiple icon states, where each icon state can have multiple frames, and each frame can be set to play for a certain amount of time. Icons can also have 1, 4, or 8 directions that are shown depending on the atom's dir variable.