Oxygen Basic

Programming => Example Code => Topic started by: Peter on July 16, 2011, 08:07:50 AM

Title: c project
Post by: Peter on July 16, 2011, 08:07:50 AM
Deleted
Title: Re: c project
Post by: Charles Pegge on July 16, 2011, 08:59:59 AM

Thanks Peter,

I like this game very much.

But I did not realise you were so old!

Events of 1877  ;D
http://www.historyorb.com/events/date/1877

What were the computers like then?

Charles
Title: Re: c project
Post by: kryton9 on July 16, 2011, 12:17:12 PM
Ahh, Peter is either a vampire or an immortal who has to cut off heads of other immortals. This explains his gaming passion, but the coding I haven' figured out. That is something new to the genre :)
Title: Re: c project
Post by: Charles Pegge on July 17, 2011, 04:38:36 AM
Peter,

I had a look at the code this morning and at first site, very little would need to be altered to work in Oxygen apart from supplying the right headers.

Without making any commitments now, I would like to see how close we can get to perfect compatibility with your original Pelles C code.

Charles
Title: Re: c project
Post by: jcfuller on July 17, 2011, 07:12:06 AM
Charles,
  If you do plan on cross platform it might make more sense to make it compatible with gcc rather than pelles ??

James
Title: Re: c project
Post by: Charles Pegge on July 17, 2011, 01:37:42 PM
Hi James,

I think the differences would be in the libraries but the core C syntax should be the same. That is really what I am aiming for.

Charles
Title: Re: c project
Post by: kryton9 on July 17, 2011, 01:55:29 PM
That is a fun challenging game Peter.
Title: Re: c project
Post by: efgee on July 17, 2011, 02:05:09 PM
Hi James,

I think the differences would be in the libraries but the core C syntax should be the same. That is really what I am aiming for.

Charles

Then "Oxygen Basic" would be misleading; maybe plain "Oxygen" would be more appropriate...

 ;)
Title: Re: c project
Post by: Charles Pegge on July 17, 2011, 03:08:37 PM
Hi efgee,

Unfortunately there are too many oxygens on the web. So it has to be Oxygen something.. :)

Oxygen takes on board as much C syntax as is necessary. The power and brevity of the C notation is evident in the number of languages that use it, like Java for instance. So it make sense to follow the herd and gain the benefit of easier code porting. But much can be done to produce more readable and better looking code.

Charles