Creating a game - Adding pictures, animation and sound

GFA BASIC-related articles in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Creating a game - Adding pictures, animation and sound

Post by WireLord55 »

As you know (or not), I have been discovering coding in GFA. I have some questions:

How do I add pictures, and animate them?

And

Are there any good .PNG file converters that convert to Degas Elite (.PI1)?
And/ or

Sound file converters? e.g .WAV or mp3 to .SND

Thanks

WireLord55
"Do...or do not. There is no try" - Yoda, Episode V

joefish
Atari maniac
Atari maniac
Posts: 85
Joined: Thu Dec 05, 2013 4:15 pm

Re: Creating a game - Adding pictures, animation and sound

Post by joefish »


User avatar
Foxie
Captain Atari
Captain Atari
Posts: 354
Joined: Wed Feb 03, 2016 7:12 pm

Re: Creating a game - Adding pictures, animation and sound

Post by Foxie »

WireLord55 wrote: How do I add pictures, and animate them?

And

Are there any good .PNG file converters that convert to Degas Elite (.PI1)?
And/ or

Sound file converters? e.g .WAV or mp3 to .SND

I never really got into using GFA BASIC for multimedia. The other option is STOS BASIC. It's really geared up for making games, it has a sprite editor included and can load PI1. There's also extensions available to play MODs and samples, but GFA probably has it too.

For converting images, Imagecopy is really good. I'm a registered user, but I think you can get pirate copies anywhere now. It won't load PNGs, but it will load BMP and GIF. You can just use Photoshop to write out a BMP file.

If you're converting a true colour picture into PI1 it's best to use Ximagic Quantizer for Photoshop. It does a much better job of reducing colours than Photoshop itself can.

User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Creating a game - Adding pictures, animation and sound

Post by WireLord55 »

Thanks
"Do...or do not. There is no try" - Yoda, Episode V

User avatar
mjvans
Atari freak
Atari freak
Posts: 55
Joined: Thu Dec 31, 2015 2:08 pm
Location: Netherlands
Contact:

Re: Creating a game - Adding pictures, animation and sound

Post by mjvans »

Freeware xnview on Windows can convert almost anything to PI1
and on the atari imagecopy is also my favourite picture converter

Here how to load a pi1 in GFA:

Code: Select all

degas("ATARI.PI1")
~INP(2)

PROCEDURE degas(fname$)
  scrn%=XBIOS(2)
  rez%=MALLOC(2)
  pal%=MALLOC(32)
  IF LEN(fname$)=0
    END
  ENDIF
  OPEN "R",#n,fname$
  BGET #n,rez%,2
  BGET #n,pal%,32
  ~XBIOS(6,L:pal%)
  BGET #n,scrn%,32000
  CLOSE #n
  a%=MFREE(rez%)
  a%=MFREE(pal%)
RETURN
Falcon030 in DeskTopper case with CosmosEx

simonsunnyboy
Moderator
Moderator
Posts: 5225
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Creating a game - Adding pictures, animation and sound

Post by simonsunnyboy »

Grafx2 is a great pixel paint program for the PC. It can import and export multiple Atari file formats.
Simon Sunnyboy/Paradize - http://paradize.atari.org/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Creating a game - Adding pictures, animation and sound

Post by WireLord55 »

I've tried it doesn't work .PNG to .PI1.
On that note, how do i open a .TTP file.
"Do...or do not. There is no try" - Yoda, Episode V

User avatar
Foxie
Captain Atari
Captain Atari
Posts: 354
Joined: Wed Feb 03, 2016 7:12 pm

Re: Creating a game - Adding pictures, animation and sound

Post by Foxie »

WireLord55 wrote: On that note, how do i open a .TTP file.
You just double-click it and press OK, but you may need to type something into the text box first (command line arguments). The program's documentation hopefully explains what arguments it takes.

Also if you have TOS 2.06, you can drag a file onto a .TTP program. The program will then open the file.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Creating a game - Adding pictures, animation and sound

Post by rockyone »

MI3 image converter, load BMP images of 16, 4 and 2 colors
Works with Steem and Hatari.
Not tested on a real ATARI machine
http://www.atari-forum.com/viewtopic.php?f=72&t=28191

User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Creating a game - Adding pictures, animation and sound

Post by WireLord55 »

Thanks
"Do...or do not. There is no try" - Yoda, Episode V

Post Reply

Return to “GFA BASIC”