Game coding

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

Game coding

Post by WireLord55 »

Any good game creation tutorialsin GFA?

WireLord55
"Do...or do not. There is no try" - Yoda, Episode V
User avatar
Eero Tamminen
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2189
Joined: Sun Jul 31, 2011 1:11 pm

Re: Game coding

Post by Eero Tamminen »

I think one of the ST Format magazines had one. You should be able to find the correct magazine by browsing ST Format cover images, I think GFA was shown prominently in the cover.
User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Game coding

Post by WireLord55 »

Where do i find the covers?

Thanks,

WireLord55
"Do...or do not. There is no try" - Yoda, Episode V
jury
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Sep 21, 2004 11:11 am
Location: Poland

Re: Game coding

Post by jury »

Hi again MrPixel :)
Anywhere, where there are scans of this magazine. Type "ST Format magazine" into any search engine ( can be for example http://www.google.com ) and check especially second and third resulted links.
If you are not much into GFA yet, and want to use Basic for games, maybe try to switch to STOS. Its Basic specifically for games creation.
I'm not saying GFA is 'bad', its not, its great Basic ( if not the best generally ) and there were many commercial and professional applications written in it back in the days, but if it goes for games I guess STOS is a little more straighforward in this direction. For example, here you would have the 300 page book regarding games creation in STOS:
http://www.atarimania.com/documents-ata ... s_1_S.html
User avatar
mjvans
Atari maniac
Atari maniac
Posts: 82
Joined: Thu Dec 31, 2015 2:08 pm
Location: Netherlands
Contact:

Re: Game coding

Post by mjvans »

Hey WireLord55 an advise from an old Atarian: try to set a simple goal for a project.
A complete game is in my opinion a bit too much to start with. You should learn the programming language first.
In the days before the internet we got all our info from magazines, books and ofcourse the local atari computer club. You had to buy books, the computer book market was enormous. There are many books about GFA Basic try to get some real or scanned and follow the examples.
Here are some of mine:
Image
Falcon030, Mega ST, 1040STfm, 800XL, Lynx, Jaguar
vido
Atari Super Hero
Atari Super Hero
Posts: 720
Joined: Mon Jan 31, 2011 7:39 pm

Re: Game coding

Post by vido »

jury wrote:If you are not much into GFA yet, and want to use Basic for games, maybe try to switch to STOS. Its Basic specifically for games creation.
I'm not saying GFA is 'bad', its not, its great Basic ( if not the best generally ) and there were many commercial and professional applications written in it back in the days, but if it goes for games I guess STOS is a little more straighforward in this direction. For example, here you would have the 300 page book regarding games creation in STOS:
http://www.atarimania.com/documents-ata ... s_1_S.html
Well ... as STOS is really developed for game coding I would still recomend you GFA Basic. STOS is only usabe to code for ST series of Ataris and I thing I heard now it should work also for Falcon computers. But for other Atari clones is useless.
GFA Basic is still actively supported and developed by Lonny and it runs on all Atari computers and clones. Commands are VDI and GEM enhanced and that meand games can be coded without directly accessing hardware. Also you can code GEM games which can run on all Atari computers in all resolutions.

GFA site: http://gfabasic.net/
User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2479
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece

Re: Game coding

Post by christos »

Also GFA doesnt have line numbers and should have better performance.
User avatar
mjvans
Atari maniac
Atari maniac
Posts: 82
Joined: Thu Dec 31, 2015 2:08 pm
Location: Netherlands
Contact:

Re: Game coding

Post by mjvans »

I found ST Format issue 35 had GFA Basic on the cover disk and in the magazine even an article about moving sprites.
Falcon030, Mega ST, 1040STfm, 800XL, Lynx, Jaguar
badshotbob
Atariator
Atariator
Posts: 20
Joined: Wed May 02, 2018 2:46 pm

Re: Game coding

Post by badshotbob »

I think I have that disk
User avatar
thomas3
Captain Atari
Captain Atari
Posts: 161
Joined: Tue Apr 11, 2017 8:57 pm
Location: the people's republic of south yorkshire, uk.

Re: Game coding

Post by thomas3 »

vido wrote:
jury wrote:If you are not much into GFA yet, and want to use Basic for games, maybe try to switch to STOS. Its Basic specifically for games creation.
I'm not saying GFA is 'bad', its not, its great Basic ( if not the best generally ) and there were many commercial and professional applications written in it back in the days, but if it goes for games I guess STOS is a little more straighforward in this direction. For example, here you would have the 300 page book regarding games creation in STOS:
http://www.atarimania.com/documents-ata ... s_1_S.html
Well ... as STOS is really developed for game coding I would still recomend you GFA Basic. STOS is only usabe to code for ST series of Ataris and I thing I heard now it should work also for Falcon computers. But for other Atari clones is useless.
GFA Basic is still actively supported and developed by Lonny and it runs on all Atari computers and clones. Commands are VDI and GEM enhanced and that meand games can be coded without directly accessing hardware. Also you can code GEM games which can run on all Atari computers in all resolutions.

GFA site: http://gfabasic.net/
if (WireLord55 != MrPixel)
{
I do get what you're saying here, but I'd actually still recommend STOS - and that's not just because I love it ;). Since this person seems very very new to coding and wants to go straight in on graphics/games, STOS will provide a bunch of commands that will let s/he draw sprites directly to the screen, learn about double buffering, etc. Yes, the performance is horrible, and yes, it has line numbers, but it's surely the fastest way to get something happening on screen. Plus - did I mention I love it???
}
else
{
:lol: :lol: :lol: :lol:
}
User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Game coding

Post by WireLord55 »

I'm not new to coding, I'm just new to old languages. Know what I mean? :)

And by the way who is MrPixel?
Beause I'm not MrPixel

I mean i ask questions.

Thanks,

WireLord55

P.S: How do i get started in STOS?
"Do...or do not. There is no try" - Yoda, Episode V
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12930
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Game coding

Post by wongck »

MrPixel was here asking questions about coding but was ridiculed by lots of Atari users instead.
The problem was he was asking non-Atari system coding questions.... in the chat and non-Atari system section of the forum.
Seems legitimate and OK to do so as there is such sections.... but seems not so by the users here. Well, go figure. :roll:
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Game coding

Post by WireLord55 »

Thanks wonkck, appreciate your honesty

WireLord55
"Do...or do not. There is no try" - Yoda, Episode V
User avatar
FedePede04
Atari God
Atari God
Posts: 1215
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: Game coding

Post by FedePede04 »

wongck wrote:MrPixel was here asking questions about coding but was ridiculed by lots of Atari users instead.
The problem was he was asking non-Atari system coding questions.... in the chat and non-Atari system section of the forum.
Seems legitimate and OK to do so as there is such sections.... but seems not so by the users here. Well, go figure. :roll:
You are %100 right wongck, and what is the idea with a forum, if we can't help each other.

but i think what trigger some, was it was not one system MR Pixel ask to, he kept asking about new systems..
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)
jury
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Sep 21, 2004 11:11 am
Location: Poland

Re: Game coding

Post by jury »

WireLord55 wrote: P.S: How do i get started in STOS?
Check the book "Stephen Hill_STOS_The Game Makers Manual" I linked earlier in this thread. It should get you started the fastest way. I do not know any better/faster way, so if there is any, let somebody share it.

And I do not know much about performance regarding STOS vs GFA, but maybe above comments are right that GFA is way better in this matter. But even thou, I do not know any "big" game made in GFA ( it doesnt mean that there are none, I just do not know any ) and one of the biggest and quite fun games written in STOS from "the era" was H.E.R.O. Also in 90ties there were rumours that Torvak the Warrior ( I really liked it ) was created in STOS. I quite do not belive it, but as it was slow ( or maybe much more than slow ;) ) than maybe it really was done in STOS.
Last edited by jury on Thu May 03, 2018 8:30 am, edited 3 times in total.
User avatar
FedePede04
Atari God
Atari God
Posts: 1215
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: Game coding

Post by FedePede04 »

WireLord55 take a look at this page, you will find many information about the ST.
also he have a big STOS sections

http://www.exxoshost.co.uk/atari/
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)
joefish
Atari maniac
Atari maniac
Posts: 85
Joined: Thu Dec 05, 2013 4:15 pm

Re: Game coding

Post by joefish »

wongck wrote:MrPixel was here asking questions about coding but was ridiculed by lots of Atari users instead.
The problem was he was asking non-Atari system coding questions.... in the chat and non-Atari system section of the forum.
Seems legitimate and OK to do so as there is such sections.... but seems not so by the users here. Well, go figure. :roll:
And he's now on a Spectrum forum asking about Beebs... :shrug:
User avatar
thomas3
Captain Atari
Captain Atari
Posts: 161
Joined: Tue Apr 11, 2017 8:57 pm
Location: the people's republic of south yorkshire, uk.

Re: Game coding

Post by thomas3 »

jury wrote:
WireLord55 wrote: P.S: How do i get started in STOS?
Check the book "Stephen Hill_STOS_The Game Makers Manual" I linked earlier in this thread. It should get you started the fastest way. I do not know any better/faster way, so if there is any, let somebody share it.

And I do not know much about performance regarding STOS vs GFA, but maybe above comments are right that GFA is way better in this matter. But even thou, I do not know any "big" game made in GFA ( it doesnt mean that there are none, I just do not know any ) and one of the biggest and quite fun games written in STOS from "the era" was H.E.R.O. Also in 90ties there were rumours that Torvak the Warrior ( I really liked it ) was created in STOS. I quite do not belive it, but as it was slow ( or maybe much more than slow ;) ) than maybe it really was done in STOS.
With filthy hacks and dirty cheats, STOS performs really well. It's just an awful way to learn any kind of structured programming I guess. But its advantage is that, as you get into it, it lets you learn really easily about organisation of screen memory etc - particularly if you use some of the extensions that allow management of graphics at a bitplane level.

I absolutely love it and am currently working on a game written (mainly) in it!
joska
Hardware Guru
Hardware Guru
Posts: 4730
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Game coding

Post by joska »

If you're familiar with modern programming languages you will get nothing done in STOS. I programmed a lot in STOS when it first came out, but after having used C and Pascal I found that I was unable to do anything remotely complex in STOS. When you start thinking "structured" you're f***ed in STOS - no way to structure data or code whatsoever.

Compiled STOS performs rather OK, and there are many excellent extensions for it that you can make some really awesome things with. However, the programming language itself will restrict you seriously. I think GFA Basic is a much better choice if you want to stick with BASIC.

http://paradize.final-memory.org/gfabasic.shtml
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Hardware Guru
Hardware Guru
Posts: 4730
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Game coding

Post by joska »

wongck wrote:MrPixel was here asking questions about coding but was ridiculed by lots of Atari users instead.
The problem was he was asking non-Atari system coding questions.... in the chat and non-Atari system section of the forum.
Seems legitimate and OK to do so as there is such sections.... but seems not so by the users here. Well, go figure. :roll:
People were very helpful with MrPixel until they realised that he did not care about their answers, but just repeatedly asked what was basically the same questions but for yet another (non-Atari) platform.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Game coding

Post by WireLord55 »

Thank you very much everyone :)

Here is my first GFA-BASIC code:

Code: Select all

DO
  KEYGET n
  PRINT "WireLord55"
LOOP UNTIL n=3735584
QUIT
Last edited by WireLord55 on Sun May 06, 2018 10:39 pm, edited 1 time in total.
"Do...or do not. There is no try" - Yoda, Episode V
User avatar
mjvans
Atari maniac
Atari maniac
Posts: 82
Joined: Thu Dec 31, 2015 2:08 pm
Location: Netherlands
Contact:

Re: Game coding

Post by mjvans »

You forgot the LOOP it has to be a "DO .. LOOP UNTIL"
Falcon030, Mega ST, 1040STfm, 800XL, Lynx, Jaguar
User avatar
thomas3
Captain Atari
Captain Atari
Posts: 161
Joined: Tue Apr 11, 2017 8:57 pm
Location: the people's republic of south yorkshire, uk.

Re: Game coding

Post by thomas3 »

Come on guys, seriously. You really think this kid is for real now? :)

Love the code btw wirelord!
User avatar
WireLord55
Atari freak
Atari freak
Posts: 52
Joined: Sun Apr 22, 2018 9:48 am

Re: Game coding

Post by WireLord55 »

Ha! Thanks thomas3 :)

Yeah...I forgot that! lol

WireLord55

P.S: What is Beebs?
Last edited by WireLord55 on Mon May 07, 2018 12:01 am, edited 1 time in total.
"Do...or do not. There is no try" - Yoda, Episode V
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12930
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Game coding

Post by wongck »

Although the .com domain name in this forum URL, it is in fact housed in UK.
So many here speaks the local British colloquial. The Beeb is one of them, it should mean the BBC Micro.
It may also mean VW Beetle but then they aren't EU. :wink:
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
Post Reply

Return to “GFA BASIC”