Wee Basic 0.3 - dual screen and stylus support

Discussion in 'GBAtemp & Scene News' started by Urza, Nov 25, 2007.

  1. Urza
    OP

    Urza hi

    Member
    6,493
    89
    Jul 18, 2007
    United States
    [​IMG]Wee Basic 0.3 - dual screen and stylus support
    BASIC interpreter by marovada




    marovada has released a new version of his BASIC interpreter for DS, Wee Basic 0.3. The main additions in this version are support for both the DS' screens, and stylus input. Full changelog and download below.

    [title:Changelog] version 0.3

    fixed:

    - editor: return key swallowing a character
    - editor: hopefully fixed remaining save bugs

    added/changed:

    - basic programs now have access to both DS screens and stylus input
    - hide or show keyboard with commands ‘keyhide’ and ‘keyshow’
    - you must hide the keyboard before printing to, or using graphics on, the bottom screen
    - cls, print, plot and line can now be used on both DS screens. You must specify a screen number. Syntax is now (s= screen number 0 or 1):

    print s [at x,y]
    plot s x,y,colour
    line s x1,y1,x2,y2,colour
    cls s

    (s = screen number 0 or 1)

    - stylus coordinates can be obtained using stx() and sty()

    eg, let sx=stx() let sxy=sty()

    - check whether bottom screen has been touched with stt()

    eg, let touched=stt()
    stt() returns 1 for touched and 0 for not touched

    - new example showing the above features
    [​IMG] Download (Change extension to ZIP)
    [​IMG] Homepage
    [​IMG] Wee Basic development forum
     
  2. robi

    robi GBAtemp Regular

    Member
    264
    0
    Nov 29, 2006
    France
    Houston, TX
    Hmm, maybe I should port the old Microsoft QBasic Nibbles and Gorilla game. [​IMG]
     
  3. imgod22222

    imgod22222 GBAtemp's Original No-faced Member

    Member
    1,555
    0
    Jul 5, 2006
    United States
    So how is this different than, let's say... visual basic? (Besides visual basic being compiled for Windows)

    I do know a bit of VB, how can i apply what i know to Wee Basic?
     
  4. eonwe217

    eonwe217 Member

    Newcomer
    38
    0
    Apr 7, 2007
    Colombia
    gorilla would totally rock like it it did many years ago