View previous topic - View next topic |
Author |
Message |
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: Fri Aug 26, 2011 7:56 pm Post subject: |
[quote] |
|
BadMrBox wrote: | Quote: | BASIC had its purpose, however it does not have the strengths that other languages possess. | Freebasic just called to tell me it disagrees ;). |
Freebasic is not really BASIC - it takes some of the BASIC dialect, and adds on a lot more functionality, yes.
In my statements above, I am referring to the older dialects that can be found in the DOS 5+ days. _________________ Principal Software Architect
Rambling Indie Games, LLC
See my professional portfolio
|
|
Back to top |
|
|
Mattias Gustavsson Mage
Joined: 10 Nov 2007 Posts: 457 Location: Royal Leamington Spa, UK
|
|
Back to top |
|
|
tcaudilllg Dragonmaster
Joined: 20 Jun 2002 Posts: 1731 Location: Cedar Bluff, VA
|
Posted: Sat Aug 27, 2011 6:33 pm Post subject: |
[quote] |
|
Mattias Gustavsson wrote: | tcaudilllg wrote: | I think it depends on the language and the style. BASIC is always easier to read than C, for example. "for (i=0;i<cam_wdt_bs;i++){dt_wd=dt_sr_ht%rt%as_s%fu_ck_w_t);foo()}" is not very legible.
So yeah a lot depends on the character of the coder. |
Here's the BASIC equivalent to your code:
10 FORI=0TOCAM_WDT_BSSTEP1:DT_WD=DT_SR_HTMODRTMODAS_SMODFU_CK_W_T:GOSUB1250:NEXT
And I don't think that's any easier to read than the C++ version... |
Ah ah ah...: in BASIC, spacing is forced. But good point about gosub.
|
|
Back to top |
|
|
Mattias Gustavsson Mage
Joined: 10 Nov 2007 Posts: 457 Location: Royal Leamington Spa, UK
|
Posted: Sat Aug 27, 2011 6:38 pm Post subject: |
[quote] |
|
Depends. On the C64, spacing was not required.
From wikipedia
Quote: | Commodore BASIC lines did not need any spaces except where omitting one would be ambiguous, and many Commodore BASIC programs were written with no spaces, e.g., 100IFA=5THENPRINT"YES":GOTO160. Omitting spaces as such would lead to a more compact program, since the tokenizer never removes any space inserted between keywords: the presence of spaces results in extra 0x20 bytes in the tokenized program which are merely skipped during execution. |
_________________ www.mattiasgustavsson.com - My blog
www.rivtind.com - My Fantasy world and isometric RPG engine
www.pixieuniversity.com - Software 2D Game Engine
|
|
Back to top |
|
|
RampantCoyote Demon Hunter
Joined: 16 May 2006 Posts: 546 Location: Salt Lake City, Utah
|
Posted: Mon Aug 29, 2011 3:24 am Post subject: |
[quote] |
|
Heh - that was where I mastered basic: The ol' C-64. Whitespace not only chewed up memory, it actually slowed down execution (not much, but why take the hit?)
I've done a little bit in Visual Basic since then, but otherwise haven't touched the language or its derivatives. And VB really doesn't count as BASIC, any more than Java counts as C++. _________________ Tales of the Rampant Coyote - Old-School Game Developer talks Indie Games, RPGs, and the Games Biz
|
|
Back to top |
|
|
Tenshi Everyone's Peachy Lil' Bitch
Joined: 31 May 2002 Posts: 386 Location: Newport News
|
Posted: Tue Aug 30, 2011 3:56 am Post subject: |
[quote] |
|
Wow... that's amazing. _________________ - Jaeda
|
|
Back to top |
|
|
Kerry Lowly Slime
Joined: 22 Sep 2011 Posts: 1 Location: San Diego
|
Posted: Thu Sep 22, 2011 3:45 pm Post subject: Greetings |
[quote] |
|
Hello everybody I am a noob here. There are defitnetly a lot of projects going on here. I am always looking for new games and have always wanted to try to make my own with some ideas I have. I hope to gain some insight here on the procedures. Thanx
|
|
Back to top |
|
|
syn9 Wandering Minstrel
Joined: 31 Aug 2002 Posts: 120 Location: USA
|
|
Back to top |
|
|
tcaudilllg Dragonmaster
Joined: 20 Jun 2002 Posts: 1731 Location: Cedar Bluff, VA
|
Posted: Sat Nov 19, 2011 9:35 pm Post subject: |
[quote] |
|
I think it might be worth the effort to translate some of the classics to QB64, because library complexities make some of those games difficult to change.
|
|
Back to top |
|
|