English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 09 March 2011, 13:21   #1
r0ber7
it's all in your head
r0ber7's Avatar
 
Join Date: Feb 2011
Location: The Netherlands
Posts: 174
Post Programming for Amiga: C/C++ or AMOS?

Hi.

Once upon a time, I started programming in AMOS. It was easy enough for my 10 year old brain, and I made some fun stuff with it.

Now, as I have returned to my A1200 and e-uae, I feel like programming something new for the Amiga. But since those early Amiga days I've switched to several Linux flavours, and right now I'm far more skilled in C/C++ than I ever was in AMOS. C/C++ has my preference, not only because it'd be easier, but also because of possible compatibility with Linux.

This lead me to some questions, which I hope someone here can answer:

Is it possible to develop in C/C++ for the Amiga? If so, are there any graphical API's? Or would it be easier to dust off my AMOS knowledge?

Either way, I'd love to develop some more entertainment for the Amiga community.

Last edited by r0ber7; 09 March 2011 at 13:47.
r0ber7 is offline  
Old 09 March 2011, 13:51   #2
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,265
There's GCC 2.95 and 3.3 I think, which you can use for the Amiga, and another portable compiler called VBCC which supports C99 but not C++. I assume you will be doing cross development, but in case you're looking for a C compiler to run directly on the Amiga there's also SAS/C.

There's a port of SDL for the classic Amigas, and of course you have the Amiga OS native graphics APIs, but if you want the performance you remember from most classic games and demos then you'll have to program the hardware directly.
Leffmann is offline  
Old 09 March 2011, 13:54   #3
Steve
I Identify as an Ewok
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 42
Posts: 2,320
wasn't Storm C a C++ compiler for the Amiga?
Steve is offline  
Old 09 March 2011, 13:59   #4
TCD
Registered User

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 43
Posts: 24,024
NovaCoder codes in C/C++ on the Miggy and has ported ScummVM for example. You could ask him in a PM what setup he uses
TCD is offline  
Old 09 March 2011, 14:45   #5
r0ber7
it's all in your head
r0ber7's Avatar
 
Join Date: Feb 2011
Location: The Netherlands
Posts: 174
Thank you all for replying so quickly. I've looked around for SDL and found some good info on that. Right now I think that's the way to go, cause it will (ideally) provide me with a way to code for both Amiga and other systems with little modification to the code. So, plans for the near future:

- set up gcc & sdl on amiga environment (e-uae or my a1200)
- set up sdl on ubuntu
- write simple program that displays a png & plays a sound

After that, I'm ready to go and create.

I suspect this forum has saved me countless hours of web searching by now.

r0ber7 is offline  
Old 10 March 2011, 01:07   #6
Vairn
The Grim-Button

Vairn's Avatar
 
Join Date: Jan 2008
Location: Melbourne Australia
Age: 39
Posts: 408
Just so you know, SDL is Hella slow on a normal amiga. Even on my PPC back in the day it was slugish.
But since you want Cross platform, hmm.
Vairn is offline  
Old 10 March 2011, 02:26   #7
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 45
Posts: 9,184
moved to coders heaven
BippyM is offline  
Old 10 March 2011, 03:42   #8
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,994
Quote:
Originally Posted by r0ber7 View Post
Thank you all for replying so quickly. I've looked around for SDL and found some good info on that. Right now I think that's the way to go, cause it will (ideally) provide me with a way to code for both Amiga and other systems with little modification to the code. So, plans for the near future:

- set up gcc & sdl on amiga environment (e-uae or my a1200)
If you've got a Windose box, setting up GCC & SDL will take you about 5 mins with AmiDevCpp

A real 1200 is too slow to compile large GCC (or SDL) projects.

I'm currently using AmiDevcpp for fast code proofing and then doing release builds under WinUAE with CubicIDE

Last edited by NovaCoder; 10 March 2011 at 03:51.
NovaCoder is offline  
Old 10 March 2011, 09:54   #9
r0ber7
it's all in your head
r0ber7's Avatar
 
Join Date: Feb 2011
Location: The Netherlands
Posts: 174
Quote:
Originally Posted by bippym View Post
moved to coders heaven
Tnx, didn't know it existed. Sometimes I lose myself in the Forest of Subforums.

Based on NovaCoder's and Vairn's comments, I've changed my mind. I'm dropping cross-platform stuff and going back to AMOS, what the hell. I can always run my stuff in e-uae anyway.

It'll be a lot easier to rediscover the AMOS syntax, and more fun too.
r0ber7 is offline  
Old 10 March 2011, 10:06   #10
TCD
Registered User

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 43
Posts: 24,024
You should visit AMOS Factory then
TCD is offline  
Old 10 March 2011, 10:20   #11
r0ber7
it's all in your head
r0ber7's Avatar
 
Join Date: Feb 2011
Location: The Netherlands
Posts: 174
Quote:
Originally Posted by TheCyberDruid View Post
You should visit AMOS Factory then
Perfect!
r0ber7 is offline  
Old 10 March 2011, 19:24   #12
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 44
Posts: 3,205
Quote:
Originally Posted by r0ber7 View Post
going back to AMOS
When you're used to the power of c/c++, this will probably not be a fun experience
Thorham is offline  
Old 11 March 2011, 01:28   #13
Vairn
The Grim-Button

Vairn's Avatar
 
Join Date: Jan 2008
Location: Melbourne Australia
Age: 39
Posts: 408
You could try blitzbasic, It doesn't feel so bad after c/c++
Vairn is offline  
Old 11 March 2011, 13:49   #14
r0ber7
it's all in your head
r0ber7's Avatar
 
Join Date: Feb 2011
Location: The Netherlands
Posts: 174
Quote:
Originally Posted by Thorham View Post
When you're used to the power of c/c++, this will probably not be a fun experience
Point taken, but I'm not looking for much depth on this anyway. Just feel like making a game of some sort. Considering the application, I'd say ease > power.

Quote:
You could try blitzbasic, It doesn't feel so bad after c/c++
Hmm, does it have similar syntax?
r0ber7 is offline  
Old 11 March 2011, 20:59   #15
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,938
C. Or assembler, if you can manage it.
Photon is offline  
Old 17 March 2011, 19:57   #16
r0ber7
it's all in your head
r0ber7's Avatar
 
Join Date: Feb 2011
Location: The Netherlands
Posts: 174
I've settled on Blitz Basic 2 now. I've found a copy, and the manual through this forum.

While the manual is useful, I'm wondering if there happens to be a game development tutorial out there somewhere. Ideal topics would include: collision detection, animation, playing .mods, registering keyboard/ mouse input.

I know this is all in the manual, but a tutorial would save me some time.
r0ber7 is offline  
Old 17 March 2011, 20:44   #17
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 45
Posts: 9,184
With BB2 find some of the blitz mailing list posts (aminet has some) and also find all the decent libraries etc as the standard ones have been improved.

I have quite a comprehensice blitz install with LOTS of libs.. I can up it if you want to take a peek!
BippyM is offline  
Old 17 March 2011, 20:57   #18
r0ber7
it's all in your head
r0ber7's Avatar
 
Join Date: Feb 2011
Location: The Netherlands
Posts: 174
I would really like that!

So far I've been going along with the examples from the manual, I like the fact that I can influence the timing of the program a whole lot better than in AMOS. I want to sync music to graphics.

I'll go check aminet now.
r0ber7 is offline  
Old 17 March 2011, 22:17   #19
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,938
I prefer coding in ANDY!
Photon is offline  
Old 17 March 2011, 23:28   #20
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 45
Posts: 9,184
Uploading a 20mb compressed archive to the zone.

There is quite a bit of stuff included, and if it crashes there is a directory with other versions of Blitz2 and TED. Simply replace the existing ones.

There is a few of the blitzlist bits along with a breakdown of ALL the commands included within the DOCS dir.. I have loads more stuff too if you want any let me know.

If anything doesn't load it is probably a powerpacked file (I have unpacked most of it)
BippyM 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
Amos Pro programming on WinUAE CaptainNow Retrogaming General Discussion 26 07 April 2015 15:04
AMOS Sprite Programming Question ricky500 support.Apps 1 26 June 2012 17:10
f/s Amiga Amos Programming books / Disks / Easy Amos & other Books *mega collection!* fitzsteve MarketPlace 4 23 May 2012 05:35
Programming Amiga? Amiga Forever Coders. General 14 03 April 2011 19:33
Where's the amos.library on the 3-disk AMOS set? andreas support.Apps 0 15 November 2001 17:04

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 10:52.


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