Privacy Policy Cookie Policy Terms and Conditions Blitz BASIC - Wikipedia, the free encyclopedia

Blitz BASIC

From Wikipedia, the free encyclopedia

Blitz BASIC is a compiler for the BASIC programming language. Originally developed on the Amiga, Blitz BASIC compilers are now available on several platforms. The Blitz products are mainly designed for programming games. The term Blitz BASIC is often used to refer to the general syntax used in the entire range of Blitz languages, as well as the original product that started them.

Contents

[edit] History

The first compiler, originally designed by Acid Software from New Zealand, was Blitz BASIC for the Amiga. It competed with Europress Software's AMOS. Both AMOS and Blitz were distinguished from other BASIC implementations by their built-in support for writing computer games.

It was shortly after this time that Acid Software became known as Blitz Research Limited and concentrated solely on the development and promoting of Blitz languages and tools.

[edit] Blitz Basic

Blitz Basic was released in October 2000 for Microsoft Windows which allowed only 2D graphics. It was Blitz Research's first product and was published by Idigicon. It is now discontinued from its developers, but is still available from Idigicon.

Recognition of Blitz Basic increased when a limited range of "free" versions were distributed on popular UK computer magazines such as PC Format.

[edit] Blitz3D

Blitz3D was then released later in September 2001 and was also for Microsoft Windows. It was distributed at first by Idigicon. Blitz3D is Blitz Basic with a built in 3D engine and command list allowing the creation of 3D games for the first time in the Blitz range of languages. It kept all of Blitz BASIC's older commands and incorporated an entirely new set for the movement and rendering of three-dimensional objects. It used DirectX7 to create 3D, and competes with other similar PC game-development languages such as Dark Basic.

Blitz Research Limited later signed a deal with Idigicon giving them full rights to distribute Blitz Basic and to clear their stock of copies of Blitz 3D, and allowing Blitz Research Limited to now distribute Blitz3D themselves.

[edit] BlitzPlus

In February 2003 Blitz Research Limited released BlitzPlus, also for Microsoft Windows. It does not have the 3D engine of Blitz3D, but does bring new features to the 2D side of the language by allowing some control over Microsoft Windows forms and widgets, as well as implementing compatibility of the 2D engine as far back as DirectX 1.

[edit] BlitzMAX

The latest release of the Blitz suite of languages is BlitzMAX, which unlike previous Blitz products is designed to run for multiple operating systems. It was released for Mac OS first in December 2004 and then for Microsoft Windows and Linux in May 2005. BlitzMAX brought the largest change of language structure to the modern range of Blitz products by adding object-orientation concepts and switching the graphics layer to favour OpenGL.

BlitzMAX is also the first modular version of the language, allowing plugins to be written for the language itself. This opened up new possibilities for programmers to configure the language, as well as to purchase improved components from Blitz Research Limited. The official BlitzMax cross-platform GUI module was recently released by Blitz Research Limited, allowing developers to write GUI interfaces for their applications on Linux, Mac, and Windows.

[edit] Sample code

The following code creates a windowed application under Windows that shows the current time in binary and decimal format. This code is written in Blitz Basic, but will compile and run in both Blitz 3d and Blitz Plus but not Blitz Max.

AppTitle "Binary Clock"
Graphics 150,80,16,3
 ;Copy, modify and redistribute this source as much as you like

 
 ;#####################################################
 ;                      MAIN LOOP
 ;#####################################################
  
 ;create a timer that means the main loop will be executed twice a second
secondtimer=CreateTimer(2)
Repeat

        Hour = Left(CurrentTime$(),2)
        Minute = Mid(CurrentTime$(),4,2)
        Second = Right(CurrentTime$(),2)
        
        If Hour >= 12 Then PM =1
        If Hour > 12 Then Hour = Hour - 12
        If Hour = 0 Then Hour = 12
                
        ;should do this otherwise your PM dot would be left up once the clock rolled past midnight!
        Cls 
        
        Color(0,255,0) ;make the text green for the PM part
        If PM  = 1 Then Text 5,5,"PM"
        Color(255,255,255) ;set the text colour back to white for the rest
        
        For bit=0 To 5
                xpos=20*(6-bit)
                
                binaryMask=2^bit
                
                ;do hours
                If (bit<4)
                        If (hour And binaryMask)
                                Text xpos,5,"1"
                        Else
                                Text xpos,5,"0"
                        EndIf
                EndIf
                
                ;do the minutes
                If (minute And binaryMask)
                        Text xpos,25,"1"
                Else
                        Text xpos,25,"0"
                EndIf
                
                ;do the seconds
                If (second And binaryMask)
                        Text xpos,45,"1"
                Else
                        Text xpos,45,"0"
                EndIf
        Next
        
        Color(255,0,0) ;make the text red for the decimal time
        Text 5,65,"Decimal: " + CurrentTime$()
        Color(255,255,255) ;set the text back to white for the rest

        ;will wait half a second
        WaitTimer(secondTimer)
Forever

[edit] Games written using Blitz Basic

[edit] See also

[edit] External links

[edit] Books on Blitz Basic

  • Game Programming for Teens by Maneesh Sethi, (2003), ISBN 1592000681
  • Games Programming for the Absolute Beginner with Blitzmax by Sloan Kelly, ISBN 0955377102
THIS WEB:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Static Wikipedia 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2007:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Static Wikipedia 2006:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu