Wee Basic 0.3 - dual screen and stylus support

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

Nov 25, 2007
  1. Urza
    OP

    Member Urza hi

    Joined:
    Jul 18, 2007
    Messages:
    6,493
    Country:
    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

    Member robi GBAtemp Regular

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

    Member imgod22222 GBAtemp's Original No-faced Member

    Joined:
    Jul 5, 2006
    Messages:
    1,555
    Country:
    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

    Newcomer eonwe217 Member

    Joined:
    Apr 7, 2007
    Messages:
    38
    Country:
    Colombia
    gorilla would totally rock like it it did many years ago
     

Share This Page