Author Topic: GFA Anyone?  (Read 14923 times)

0 Members and 1 Guest are viewing this topic.

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #20 on: October 08, 2007 »
One reason;

http://dbfinteractive.com/index.php?topic=2410.0

For now, enjoy the learning process and make stuff for the friendship and the fun mate.
We will help you here as much as we can as long as you promise to show us what you make :)
Ah i see why, ill just stick to staying out of a demogroup i think for now
And thankyou for those kindwords, if i do make something worthwhile, this'll be the first place i post it  ;D

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: GFA Anyone?
« Reply #21 on: October 08, 2007 »
I remember GFA on the Amiga, but never got the chance to use it.  move.w #2700,sr would get the Amiga into supervisor mode.  Completely useless to you, I know :)

Have fun with the coding!

Jim
Challenge Trophies Won:

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #22 on: October 08, 2007 »
I remember GFA on the Amiga, but never got the chance to use it.  move.w #2700,sr would get the Amiga into supervisor mode.  Completely useless to you, I know :)

Have fun with the coding!

Jim

Well, i was planning on buying an amiga for the PAULA soundchip capabilities, so i may end up using that one day in the future, but for now, Atari ST is the way  :cheers:
And thanks!

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: GFA Anyone?
« Reply #23 on: October 08, 2007 »
I think ATARI ST got Better sound chip than Amiga...I think   correct me if I am wrong.

 :cheers:

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #24 on: October 08, 2007 »
I think ATARI ST got Better sound chip than Amiga...I think   correct me if I am wrong.

 :cheers:
Technically Amiga has the better soundchip, whereas the YM2149 (Atari) only has 3 channels, the Amiga PAULA has four, but at the end, its all down to personal preference, and mines the Atari ST!

PS: I had to keep asking questions, i think it makes me sound like im not doing anywork, but i am! p01, could you give me a little hand? The code you sent keeps crashing my atari :( (Two Bombs so i have to reset)

Offline p01

  • Atari ST
  • ***
  • Posts: 158
  • Karma: 51
    • View Profile
    • www.p01.org
Re: GFA Anyone?
« Reply #25 on: October 08, 2007 »
The Amiga and ST both have a 68000, therefore move.w #2700,sr works on both.

Hotshot :p the Paula is much more advanced than the YM2149 or the Atari STe's DMA. It can play sound 4 samples at any frequency, and IIRC it can even apply volume and effects to them. OTOH the DMA can only play samples at fixed freq ( 6.25, 12.5 ,25 and 50 Khz ) with NO effect. The YM2149 is 3 voices square wave and noise, with one envelope for all 3 channels. Quite limited, but by changing the freq, volume, env very quickly people managed to play soundtracks ... but it's CPU hungry. However the ST had a MIDI interface, which why professional musician prefered it.

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: GFA Anyone?
« Reply #26 on: October 08, 2007 »
Ahh I see.....well I remmy when mate of my mate who ATARI ST when I was younger and I was listen to their game music called god or shadow of the beast 2 I think....the music was amazing at time.

I had Amiga 500 plus in old days and Amos was fine programming language of it time!
Also the Amiga beat any today pc and for fact If I remmy correctly that Amiga beat PC in demo coding competion in 2006 !

There is Window version of GFA Basic on google you know.

enjoy your coding of GFA BASIC  :kewl:
 :cheers:

Offline p01

  • Atari ST
  • ***
  • Posts: 158
  • Karma: 51
    • View Profile
    • www.p01.org
Re: GFA Anyone?
« Reply #27 on: October 09, 2007 »
Architect_414:  ??? dunno, that might help if your posted your code. Also I never worked on a monochrome screen. Although you have an actual Atari, I recommend you to work on emulator. It's much more convenient, you can reboot the machine instantly, save/restore states, debug, load/save chunks of memory, ...

Hotshot: The fact that one demo won against some PC at the Assembly proves nothing but that there still is active people who know how to show their machine some love. Also the amiga used for Starstruck is not your regular A500 or A1200. It was an A1200 with a 68060 at 50Mhz. And still many parts where "simply" a(n animated) skybox with a textured model on top. What really made it was the top notch music and graphics.

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #28 on: October 09, 2007 »
Architect_414:  ??? dunno, that might help if your posted your code. Also I never worked on a monochrome screen. Although you have an actual Atari, I recommend you to work on emulator. It's much more convenient, you can reboot the machine instantly, save/restore states, debug, load/save chunks of memory, ...
Well p01, ill see if i can get your code running on my other atari with a colour monitor, if not, ill switch over to STeem.
Just incase im being rather thick (its not unusual you know ;)), i didnt have to add any of my own code to yours did i?

Thanks.

Offline slippy

  • Atari ST
  • ***
  • Posts: 172
  • Karma: 42
    • View Profile
Re: GFA Anyone?
« Reply #29 on: October 09, 2007 »
Hey,

perhaps it's useful for you to join that forum here as well ... a whole bunch of real Atari cracks outta there ;)

http://www.atari-forum.com/viewforum.php?f=16


Offline p01

  • Atari ST
  • ***
  • Posts: 158
  • Karma: 51
    • View Profile
    • www.p01.org
Re: GFA Anyone?
« Reply #30 on: October 09, 2007 »
Architect_414: hum, of course you had to add some code to the 6-7 lines of init/reset I pasted here. But these X lines should work on their own. They won't do much but they should not crash.

slippy:  ;)

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #31 on: October 09, 2007 »
Architect_414: hum, of course you had to add some code to the 6-7 lines of init/reset I pasted here. But these X lines should work on their own. They won't do much but they should not crash.
Ah, well now what im getting is "Array Not Dimensioned" so ill go about adding some other code, sorry for being a pain, but what kind of things shall i add? ???

Slippy:Ive been a part of that forum for quite a long time  ;)

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #32 on: October 11, 2007 »
Hmm, well thought not to post another topic since its still GFA language  ;)

But could someone kindly help me optimise a little bit of code?
I ported it across from Qbasic, its a simple scroller, but the problem is, as it leaves the right border and comes back in the left, it comes in a line lower, jams for about 2 seconds, then shoots back up onto the original line.  :'(
Code: [Select]
%a=0
Do
IF a% = 50 Then
a% = 0
ENDIF
CLS
Locate a%,10
PRINT Scrolly Text
a% = a% + 1
Loop Until INKEY$ = CHR$(27)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: GFA Anyone?
« Reply #33 on: October 11, 2007 »
I can't run this but I can see what is happening.

The word is wrapping around to the next line because you've gone off the edge of the display.

If you are going to make a scrolling text routine you'd be better off looking to see if you have a MID command so that you can chop a portion of a string out and draw that in the same location all the time. You'll also want a LEN command too to find the length of the string.

Pseudo code;

Code: [Select]
Text = "THIS IS A STRING AND IT CONTAINS THE SCROLL TEXT"
OFFSET=0

LOOP START
CLS
LOCATE 0,20
PRINT MID (TEXT , OFFSET , 10)
OFFSET=OFFSET+1
IF OFFSET > (LENGTH(TEXT))-10 THEN OFFSET=0
LOOP END

Would Output something like;

Code: [Select]









THIS IS A ST











Dunno if that helps, I hope so though.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #34 on: October 11, 2007 »
Hmm, i just tried that
It doesnt work  :'(
Thankyou alot for trying to help though shockwave, i appreciate it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: GFA Anyone?
« Reply #35 on: October 11, 2007 »
It's the right approach though, I've never used GFA basic, but check and see if it has a mid command and a len command and go from there :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #36 on: October 11, 2007 »
It has a MID command
And ill check about the LEN command  :)
Thanks!

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #37 on: October 12, 2007 »
Ah right shockwave! it does have a LEN and MID command.
Ill just show you what i want to get scrolling  ;D
Code: [Select]
FOR i%=0 TO 50
PRINT AT(14,10);CHR$(27)+"b"+CHR$(i%)+"Scroller"
NEXT i%

Any ideas anyone how to get that scrolling either using the MID/LEN command or any other?

Many Thanks Again
//Architect.