English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 22 May 2016, 08:46   #1
naviward
Registered User
 
Join Date: Apr 2016
Location: London
Posts: 18
Blitz Basic vs E vs Something Else

Hi all, I'm thinking of trying out some Amiga programming, mostly just to play around with graphics stuff and maybe do a small game if I have time.

I did a bit of Blitz Basic and E (ehrm, the language) back in the day (nothing fancy, simple workbench stuff), so those were my first thoughts, but I'd be open to anything that was good (apart from full on ASM. My background is in OO languages. Don't mind learning a bit of ASM for optimisation though).

Which language would you suggest I try first?
naviward is offline  
Old 22 May 2016, 11:04   #2
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 862
Well I'm a Blitz person. It has assembler built in too not that I really use that (probably should though) and there is lots of example code out there. But it's whichever works for you.
Coagulus is offline  
Old 22 May 2016, 16:19   #3
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
Blitz for graphics stuff. You can easily assembly-optimise your Blitz code.
idrougge is offline  
Old 22 May 2016, 18:56   #4
naviward
Registered User
 
Join Date: Apr 2016
Location: London
Posts: 18
Blitz Basic was my first choice, so it's nice to know it's a good place to start.

Thanks for the advice.
naviward is offline  
Old 23 May 2016, 03:18   #5
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
Of course, E also has a built-in assembler, but it hasn't got the hardware-banging graphics commands of Blitz.
idrougge is offline  
Old 23 May 2016, 17:57   #6
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
E has OOP unlike Blitz BASIC so it really depends on the kind of game. Do you want to do chipset graphics or graphics card? Real-time or adventure?
Samurai_Crow is offline  
Old 23 May 2016, 18:17   #7
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
OOP for small to medium project I've read that it's not worth it. Even ID Software flipped to C++ very late and it was just a subset of it.
Kamelito
kamelito is offline  
Old 23 May 2016, 18:33   #8
Meshuggah
1200 gamer
 
Join Date: Dec 2015
Location: Paris, France
Age: 47
Posts: 34
For such memory/CPU constrained device, a mixture of high level structured language and asm is a sensible choice. So yeah, Blitz or C with in-line asm will do
Amiga E is another option as it provide in-line asm and generate quite compact code.
Meshuggah is offline  
Old 23 May 2016, 21:40   #9
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
Quote:
Originally Posted by kamelito View Post
OOP for small to medium project I've read that it's not worth it. Even ID Software flipped to C++ very late and it was just a subset of it.
Kamelito
That's why I asked if it would be real-time or an adventure. Adventure games can be huge and complex with puzzles that would be greatly simplified by reusable code. Real-time game design focuses more on micro-optimization in the main loop where OOP just gets in the way.
Samurai_Crow is offline  
Old 23 May 2016, 22:36   #10
naviward
Registered User
 
Join Date: Apr 2016
Location: London
Posts: 18
It'd be real time, although relatively simple to start with. I'm happy to start OOP then optimize while I learn/hit performance walls.
naviward is offline  
Old 27 May 2016, 10:30   #11
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
AmigaE will seem more natural than Blitz BASIC but keep in mind that inheritance has 3 times the calling overhead of a simple subroutine so OOP is not always worth it.
Samurai_Crow is offline  
Old 27 May 2016, 11:02   #12
Bastich
Registered User
 
Bastich's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 341
I used Amos / Pro / Compiled and Blitz Basic 2 back in the day and BB2 was considerably quicker than Amos. Even compiled Amos was way slower and didnt even always work. BB2 did AGA and gave you full control over most of the Intuition libraries unlike Amos. The basic syntax of the two may be similar at a logic and flow level but so are virtually all other similar level basic / compilers. To anyone that thinks you could do an exact command for command conversion you are simply just dreaming TBH. Screen setup, sprite / bob control etc etc etc totally different between the two languages. After all in Amos wheres the Slice, copperlist, individual bitplane controls, DPaint anim brush bobs etc etc commands. Same as the is no AMAL or Packed graphics / mods / sounds in BB2. Both good but very different languages once you get past the surface.

On the Amiga I would imagine C would be better than C++ due to the lack of compiler optimization and general lack of development. C++ on Windows (Visual Studio) used to compile slower code than the C equivalent until around v6. From around then C++ compiler optimization has been the main focus for many years and now days produces very good code.
Bastich is offline  
Old 28 May 2016, 00:16   #13
naviward
Registered User
 
Join Date: Apr 2016
Location: London
Posts: 18
Thanks, that's very helpful.

I've mostly been tinkering with struct style objects anyway, too simple a program for inheritance, but nice to know that I shouldn't be tempted by them.

Speaking of C, I'm not really familiar with the C compiler options on the Amiga. Which would you recommend?
naviward is offline  
Old 28 May 2016, 11:03   #14
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
It's usually SAS/C or VBCC nowadays.
idrougge is offline  
Old 28 May 2016, 21:38   #15
naviward
Registered User
 
Join Date: Apr 2016
Location: London
Posts: 18
Nice, SAS/C looks just my sort of thing.
naviward is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[blitz basic] How much amiga-blitz friendly is this? saimon69 Coders. Blitz Basic 105 21 April 2022 19:45
Blitz basic 2 Help Havie Coders. Blitz Basic 30 08 September 2013 09:15
blitz basic petza request.Apps 11 08 April 2007 01:49
Blitz Basic 2 anyone? jobro request.Apps 12 28 November 2005 18:15
Blitz Basic 2 LaundroMat Retrogaming General Discussion 5 24 July 2001 08:10

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:58.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08313 seconds with 13 queries