An easy to use BASIC language
and IDE for education.

Pushed 0.9.6n to svn. It fixed a couple of memory leaks, parsing of whitespace before a label, and added ... drum-roll please ... sprites. Real sprite support allows now for basic pong game to look something like:

# ball bounce program
# 2010-06-14 j.m.reneau

print "use mouse to bounce ball on paddle."

color black
rect 0,0,300,300

dx = 1
dy = 1

spritedim 2
spriteload 0, "ball.png"
spriteplace 0,10,10
spriteshow 0
spriteload 1, "paddle"
spriteplace 1,150,270
spriteshow 1

while spritey(0) < 295
   spriteplace 1, mousex, 270
   if spritex(0) < 5 or spritex(0) > 295 then dx = dx * -1
   if spritey(0) < 5 then dy = dy * -1
   spritemove 0, dx, dy
   if spritecollide(0,1) then
      dx = (dx + (spritex(1)-spritex(0)) * .05) * -1
      dy = (dy + (spritey(1)-spritey(0)) * .05) * -1
   end if
end while

print "you missed."

Isn't that cool. Check out the other examples and the updated EN documentation.

Jim

Find us on Facebook.    So You Want to Learn to Program?

GPL
BASIC-256 is licensed under the GNU General Public License.
Last modified: 2010-06-14, 08:31

© 2010 Contributors to the BASIC-256 Project

powered by phpSQLiteCMS

Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/4039117/html/basic256/templates/b256.tpl:2) in /home/content/17/4039117/html/basic256/cms/includes/exception.inc.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/4039117/html/basic256/templates/b256.tpl:2) in /home/content/17/4039117/html/basic256/cms/includes/exception.inc.php on line 13

Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/4039117/html/basic256/templates/b256.tpl:2) in /home/content/17/4039117/html/basic256/cms/includes/exception.inc.php on line 14
BASIC-256 - Error

BASIC-256

Error

An error occurred while processing this directive.

Message: SQLSTATE[HY000]: General error: 11 database disk image is malformed
Code: HY000
File: /home/content/17/4039117/html/basic256/templates/renejm_accesslog.inc.php
Line: 20