0 Members and 1 Guest are viewing this topic.
animated graphics in maps
Yes, this has been suggested before a few times. There is a lot of wrong things being said about GIFs and BMPs... I've spent some time as a programmer and know a few things about GIFs and BMPs.Both a GIF and a BMP are pure data files. They contain no "code" or commands that are intended to be run, just graphical data. Both have a specific format, basically, a set of rules (not included in the actual image files) that different programs use to convert the data in the file to something it can use on screen and converting something on screen to data it can store in the file type correctly.BMP's format has very little in the way of "rules"; it stores only the pixel width, pixel height, and each pixel in the image, based on a starting pixel (I believe it is top left, but I'm not sure) and then continuing pixels based on the width/height. It also has some info about bit settings for valid colors, but that gets really complicated and doesn't help this explanation.GIF's format has a lot more in it in terms of "rules"; it stores info such as the number of frames, the width and height, repeat length, and bit information. It also supports transparency. GIF is useful for image animations and also in the fact that images can be "compressed" in GIFs; patterns of pixels can be recorded and repeated throughout the image to save space.The major difference between the two is that, while BMPs generally have a larger size due to lack of some form of compression in the format, they are the fastest to render because they can be pulled directly from the file and put onto the screen with little effort of the processor. GIFs, while usually smaller, allow for animations; but they require a lot more processor power to draw, especially with multiple frames or large image dimensions.That said, both need the program that is drawing them to have a sort of "reader" in the code; and MM doesn't really want to program in a GIF reader, because a BMP reader is much easier to code and makes the game run faster; plus, image size doesn't really matter for a 640x480 game.