sdlBasic

{{More citations needed|date=January 2017}}

SdlBasic is a multiplatform interpreter for BASIC, using the SDL libraries.{{cite web|url=https://notimetoplay.org/engines/game-api-guide/sdlbasic.html|website=No Time To Play|title=Making simple games in sdlBasic|date=2017-09-14|access-date=2024-02-25}} Its interpreter core is based on wxBasic.{{cite web|url=http://nitrofurano.altervista.org/wxbasic/|title=Some ideas for wxBasic|first=Paulo|last=Silva|website=nitrofurano|access-date=2024-02-25}} The interpreter can be very useful for people who are familiar with ANSI-BASIC interpreters and are curious or needing SDL library features on their coding development. Using the IDE it is possible to create an executable.{{cite web|url=https://funprojects.blog/2017/03/10/psp-apps-with-sdlbasic/|title=PSP Apps with sdlBasic|website=Fun Tech Projects|date=2017-03-10|access-date=2024-02-25}} This implementation helped inspire the RCBasic development environment released under the zlib license,{{cite web|url=https://github.com/n00b87/RC-BASIC|title=RCBasic|website=GitHub|first=Rodney|last=Cunningham|access-date=2024-02-26|quote=Special Thanks to the sdlBasic community and the retrogamecoding and BP community.}} with an attempt also made at producing an AllegroBASIC for the similar Allegro library.{{cite web|url=http://allegrobasic.pulsar2d.org/|archive-url=https://web.archive.org/web/20181115113443/http://allegrobasic.pulsar2d.org/|title=AllegroBASIC Homepage|website=AllegroBASIC|access-date=2023-10-07|archive-date=2018-11-15}}

History

SdlBasic development started at December 2002, when its author, Vroby (Roberto Viola), got an idea on using SDL libraries on wxBasic core, instead of wxWidgets libraries.

There were major releases in 2004, 2005, 2007 and 2012.{{cite web|url=https://stephen.shawweb.co.uk/sdlbasic.html|first=Stephen|last=Shaw|title=Stephen's sdlBasic programs|access-date=2024-02-25}} Prior to 2005 any text editor was used to write program code. In 2005 an IDE was added. In 2012 the package was split into the IDE and the interpreter, although the IDE could be used to run code. Main download site is SourceForge.

The support site (online documentation and forum) has moved and has changed maintainer. Now to be found at the link added below, on altervista.org. The original author still contributes to the forum.

PSP Port

On May 22, 2008, SDLBasic was ported to the Sony PlayStation Portable.{{cite web |url=http://www.psp-hacks.com/2008/05/22/sdlbasic-v05-for-the-psp |title=sdlBasic v0.5 for the PSP |accessdate=2008-05-24 |url-status=dead|archiveurl=https://web.archive.org/web/20080525203212/http://www.psp-hacks.com/2008/05/22/sdlbasic-v05-for-the-psp/ |archivedate=2008-05-25 }} It allows you to play games and use applications coded in SDLBasic. Recently{{vague|date=January 2018}} someone{{vague|date=January 2018}} on the qj forums released an update version 0.7 which included video output on the slim.

Licence

SdlBasic is open source and is freely available under the terms of the GNU General Public Licence.

Code example

Function swap( a, b )

tmp = a

a = b

b = tmp

End Function

v1=10

v2=20

print v1, v2

swap( v1, v2 )

print v1, v2

References

{{Reflist}}