Creating a game - Adding pictures, animation and sound

GFA BASIC-related articles in here please

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

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

Postby WireLord55 » Thu Apr 26, 2018 11:09 am

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: 81
Joined: Thu Dec 05, 2013 4:15 pm

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

Postby joefish » Thu Apr 26, 2018 6:15 pm

I can do you .BMP to .NEO
viewtopic.php?f=14&t=29650

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

Postby Foxie » Thu Apr 26, 2018 7:27 pm

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

Postby WireLord55 » Thu Apr 26, 2018 10:26 pm

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

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

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

Postby mjvans » Sun Apr 29, 2018 11:12 am

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

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

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

Postby simonsunnyboy » Mon Apr 30, 2018 9:31 am

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

Postby WireLord55 » Tue May 01, 2018 12:32 am

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

Postby Foxie » Tue May 01, 2018 12:56 am

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
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

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

Postby rockyone » Tue May 01, 2018 9:07 am

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

Postby WireLord55 » Mon May 14, 2018 5:12 am

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


Social Media

     

Return to “GFA BASIC”

Who is online

Users browsing this forum: No registered users and 2 guests