Home Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Arcade Chat
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > Other
Reload this Page Small Basic
Other Discussion of programming languages that don't fall into the other categories belongs here.

Small Basic

Reply
 
LinkBack Thread Tools Display Modes
Small Basic
Old
  (#1)
Greenday is Offline
New Member
Greenday is an unknown quantity at this point
 
Posts: 18
Join Date: Aug 2007
Location: Scotland, United Kingdom
Rep Power: 0
   
Default Small Basic - Tuesday, January 13th, 2009

Just wondering:
Does anybody here use Microsoft Small Basic? It's a relatively young programming; only on version 0.2
It's based around .NET Framework.
It's basicly similar to Visual Basic (In terms of the code).
There's no visual, you have to run the program.
I suppose, you probably can create forms, but it's more based around Graphics Windows and TextWindows.
It's a sample code (from a simple Paddle Sqaush project I'm working on) but heres an example, so you can compare it to VB.
Code:
                                                                                                                                      GraphicsWindow.BackgroundColor = "#ADD8E6"
paddle = GraphicsWindow.AddRectangle(120, 12)
ball = GraphicsWindow.AddEllipse(16, 16)
GraphicsWindow.MouseMove = OnMouseMove
GraphicsWindow.Title = "My Paddle Game"
GraphicsWindow.CanResize = "False"

Start:

x = 0
y = 0
deltaX = 1
deltaY = 1

RunLoop:
x = x + deltaX
y = y + deltaY
gw = GraphicsWindow.Width
gh = GraphicsWindow.Height
If (x >= gw - 16 Or x <= 0) Then
  deltaX = -deltaX
EndIf
If (y <= 0) Then
  deltaY = -deltaY
EndIf

If (y>=(gh-12) And x<=(PaddleX+60) And x>=(PaddleX-60)) Then
    deltaY = -deltaY
EndIf

GraphicsWindow.MoveShape(ball, x, y)
Program.Delay(5)

If (y < gh) Then
  Goto RunLoop
EndIf


GraphicsWindow.ShowMessage("Sorry, you lose. Try again?", "Paddle Squash")

Goto Start

Sub OnMouseMove
  paddleX = GraphicsWindow.MouseX
  GraphicsWindow.MoveShape(paddle, paddleX - 60, GraphicsWindow.Height - 12)
  EndSub
Discuss


I have left CPHQ.
I will occasionally check back.

So long, and thanks for all the fish,
Green
  
Reply With Quote
Re: Small Basic
Old
  (#2)
Bollivierke is Offline
Über Member
Bollivierke is on a distinguished road
 
Bollivierke's Avatar
 
Posts: 4,036
Join Date: Jul 2007
Location: Belgium
Age: 15
Rep Power: 35
  Send a message via AIM to Bollivierke Send a message via MSN to Bollivierke  
Default Re: Small Basic - Tuesday, January 13th, 2009

Where do I get it?

EDIT: I found it, and the game you show here is in the basic guide :lol:




Bored.
Send me a PM for a Lockerz.com invite!
  
Reply With Quote
Re: Small Basic
Old
  (#3)
Greenday is Offline
New Member
Greenday is an unknown quantity at this point
 
Posts: 18
Join Date: Aug 2007
Location: Scotland, United Kingdom
Rep Power: 0
   
Default Re: Small Basic - Tuesday, January 13th, 2009

I know, but I added the hit test, added the fixed window, added the loop etc, and I'm working on a scoring system.
It's pretty cool


I have left CPHQ.
I will occasionally check back.

So long, and thanks for all the fish,
Green
  
Reply With Quote
Re: Small Basic
Old
  (#4)
Ihavenoidea is Offline
New Member
Ihavenoidea is an unknown quantity at this point
 
Posts: 8
Join Date: Nov 2008
Rep Power: 0
   
Default Re: Small Basic - Wednesday, January 14th, 2009

Quote:
Originally Posted by Bollivierke
Where do I get it?

EDIT: I found it, and the game you show here is in the basic guide :lol:
Is the program any good?
  
Reply With Quote
Re: Small Basic
Old
  (#5)
Bollivierke is Offline
Über Member
Bollivierke is on a distinguished road
 
Bollivierke's Avatar
 
Posts: 4,036
Join Date: Jul 2007
Location: Belgium
Age: 15
Rep Power: 35
  Send a message via AIM to Bollivierke Send a message via MSN to Bollivierke  
Default Re: Small Basic - Thursday, January 15th, 2009

Quote:
Originally Posted by Ihavenoidea
Quote:
Originally Posted by Bollivierke
Where do I get it?

EDIT: I found it, and the game you show here is in the basic guide :lol:
Is the program any good?
No, Visual Basic is much better.




Bored.
Send me a PM for a Lockerz.com invite!
  
Reply With Quote
Re: Small Basic
Old
  (#6)
Greenday is Offline
New Member
Greenday is an unknown quantity at this point
 
Posts: 18
Join Date: Aug 2007
Location: Scotland, United Kingdom
Rep Power: 0
   
Default Re: Small Basic - Thursday, January 15th, 2009

Bollivierke is right.
Visual basic is by far a better Programming Lanaguage, but for begginners it's far better.

Though, I'm not so fond of Visual Basic's click and drag idea - though I'm aware it saves a fair bit of time.


I have left CPHQ.
I will occasionally check back.

So long, and thanks for all the fish,
Green
  
Reply With Quote
Old
  (#7)
Billybob1234 is Offline
Super Moderator
Billybob1234 is a glorious beacon of light
 
Billybob1234's Avatar
 
Posts: 2,651
Join Date: Jan 2008
Location: Wisconsin
Age: 19
Rep Power: 25
  Send a message via AIM to Billybob1234 Send a message via MSN to Billybob1234 Send a message via Yahoo to Billybob1234 Send a message via Skype™ to Billybob1234 
Default Thursday, February 5th, 2009

No, I have never heard of this program. Well, sounds interesting, but I don't want to waste the space.
  
Reply With Quote
Old
  (#8)
Ny Homie is Offline
Senior Member
Ny Homie is on a distinguished road
 
Posts: 886
Join Date: Jul 2007
Location: 4e 65 77 20 59 6f 72 6b
Rep Power: 14
  Send a message via AIM to Ny Homie Send a message via MSN to Ny Homie  
Default Thursday, February 5th, 2009

Quote:
Originally Posted by Billybob1234 View Post
No, I have never heard of this program. Well, sounds interesting, but I don't want to waste the space.
It is a waste of space, but in time it will not be.
  
Reply With Quote
Reply

Lower Navigation
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > Other

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com
Copyright ©2006 - 2009, RancidKraut Industries