1. What the easiest way to include graphics and sound files in my AOZ programs? (Step-by-step with code samples please.) I understand that there are easy ways to use standard Amiga file formats, but I was wondering about more modern formats. 2. What graphic & audio file formats are supported by AOZ? For example: Audio: .wav, .mp3, .ogg, .au, .aiff, .flac, .mid, .iff (8SVX,SAMP,AIFF,SMUS,TRAK), other? Graphic: .jpg, .gif, .png, .tif, .raw, .iff (ILBM,ACBM,DEEP,PICS,RGBN,RGB8), other?
Search
Hi,
If you want to use graphics as sprites. Copy your sprites images in the resources/images/ folder. Name your file 1.png , 2.png etc. They will be loaded and ready to use when running your game. (Like an Amos Sprite bank)
>>> draw your image at x,y
>>> b is the bob ID
>>> imageNumber is your sprite image number ( in resources/images/ folder )
Assuming you have a sprite image in resources/images/ folder named 1.png
This program should display 11 sprites using your image 1
Add more images in your folder, to make animation.
Thanks doumdoum. It was the first part that I needed... where to put the files, and how the newer formats are supported. I am, however, particularly interested in loading something like a background image. i.e. Load IFF... but of course, that's just for IFF. I suppose I could do this using a BOB, but that's kind of non-intuitive. Any ideas about that? Even if I did use a BOB, how would I do the Screen Open, since I'm looking for a much higher color palette than is normally possible? Will a BOB support a 16M color palette? Oh, BTW, I have since found in the documentation, at least a partial list of supported file formats, but I was hoping that there was a comprehensive list.
Thanks for explaining doumdoum (love your nickname! :) )
Merci Doumdoum! It is true that a good documentation is missing... but really first I need to iron out the problems, and then only I will make the doc. thank you for your patience.
basically the system is very simple. Just drop the files in the folders and name them with the number in the bank. You can also have both named AND numbered items in a bank, if you name them like: NUMBER.name.ext For example, an image bank could be:
1.ball.png 2.bat.png ... and in your application you will be able to do: Bob 1, 100, 100, "ball" Much more clear for the programmer. YET! please do not test it in this version, it certainly will not work...
What if I want to load an entire screen vs. a Bob? I know I can use Load IFF, but what if I want to Load JPG or GIF or PNG?