⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sample8.bas

📁 一个在WIN环境下的BASIC编译器
💻 BAS
字号:


rem
rem Demonstration of graphics mode and mouse usage.
rem


rem
rem Go into graphics mode and find out how big window is
rem

    screen 1000
    maxx=system(10)-1
    maxy=system(11)-1


rem
rem turn mouse on
rem

    a=mouseon
    if a=0 then
      print "This program requires a mouse."
      input z
      stop
    end if


rem
rem loop and look for buttons
rem
rem  If left button pressed, color pixel where we are.
rem  If right button pressed, set pixel where we are to background color
rem

100

     if inkey$<>"" then stop

     x=mousex
     y=mousey
     b=mouseb

     right=b and 1
     if right>0 then
         pset (x,y)
         goto 100
     end if

     left=b and 2
     if left>0 then
       preset (x,y)
       goto 100
     end if

     goto 100



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -