Der deutsche Education Blog

March, 2010

Blog - Title

March, 2010

  • Small Basic

    Optical Illusions

    • 0 Comments

    LitDev, a very active Small Basic Forum participant has started a thread with a bunch of Small Basic programs that illustrate fascinating optical illusions.  Here are some below – click on the link below the images and you can actually view them on your browser.

    image 
    http://smallbasic.com/program/?PVC930

    image
    http://smallbasic.com/program/?CDV606

    image
    http://smallbasic.com/program/?FMW356

    image
    http://smallbasic.com/program/?CNR593

    image
    http://smallbasic.com/program/?TTR706

    Go check out the forums for more updates.  You would need to download the latest version of Small Basic to be able to modify and create new illusions.

  • Small Basic

    Small Basic – Now with SilverLight

    • 4 Comments

    One Program, Two Platforms!

    Did you know that with Small Basic v0.8, you can write a program or a game and have it run identically on both your desktop and the browser?  This makes it super easy to share your games with your friends (even those that may be running a Mac).

    In fact it is so easy that you can have your program deployed, hosted and running on a browser with just one click of a button!  So easy that it might actually be the fastest and friction free authoring environment for Silverlight.

    Here’s an example.  Take this simple program I wrote, which animates a bunch of balls on screen.

    For i = 1 To 100
      balls[i] = Shapes.AddEllipse(10, 10)
    EndFor
    
    While "True"
      For i = 1 To 100
        ball = balls[i]
        
        x = Math.GetRandomNumber(640)
        y = Math.GetRandomNumber(480)
        Shapes.Animate(ball, x, y, 2000)
      EndFor 
      Program.Delay(1900)
    EndWhile

    When you run this program from Small Basic, you’ll see a window like this, running on your desktop:

    image

    When you are ready to share this program with the world, you simply hit the “Publish” button and voila the program is deployed to a Silverlight hosted website.  Check it out for yourself here: http://smallbasic.com/program/?HNV340

    Not only can you see your program run on this website, you can also host it on your own website or blog.  Here’s the HTML code to host this little program on your website:

    <object id='sbapp' data='data:application/x-silverlight-2,' type='application/x-silverlight-2' width='640' height='480'>
        <param name='source' value='http://smallbasic.com/program/ClientBin/SBWeb.xap'/>
        <param name='onError' value='onSilverlightError' />
        <param name='background' value='white' />
        <param name='minRuntimeVersion' value='3.0.40624.0' />
        <param name='autoUpgrade' value='true' />
        <param name='initParams' value='programId=HNV340' />
    </object>

    Have fun creating Silverlight apps and games from Small Basic.  And don’t forget to share it with your friends!

Page 1 of 1 (2 items)