Quantcast
Channel: Small Basic
Viewing all 669 articles
Browse latest View live

Tankinator - Small Basic Featured Game

$
0
0

Today we're featuring Tankinator, from Zock77.

Here's a screenshot:

Download Version 0.02: http://gallery.technet.microsoft.com/Tankinator-Small-Basic-Game-55a77a3f

Features added:

1) Added pause Feature ("P" to activate) - Thanks to litdev for source code

2) Added a Feature to enable setting the aim of the turret - As suggested by Ed Price

3) Added different turret wreck shapes for different turrets

4) fixed countless bugs

Give feedback here: http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/90825e1b-de5a-49e8-8fbe-ced2a5d9ccc9

My favorite strategy is building an arrow to the right. You have a defensive line that you might need to replenish, and any tanks that are too low or too high get a barrage as they drive past it. My arrow is typically high on the screen. Here's what it looks like (click to see it bigger)...

 As you can see, I sometimes drop a few "satellite" turrets in the front for the tanks to get pelted as they drive past. I expect those to eventually get sacrificed.

What's your top score? Mine is 50.8 million... 50,844,521.

What do you think of the game? Have you played it? Leave a comment below!

Thanks!

   - Ninja Ed


Queens Chess Challenge - Small Basic

$
0
0

Make sure you check out LitDev's January challenges.

Here's more info about Amir CPS's Challenge: 8-Queens!

The 8-Queens problem in chess is to place 8 queens on a chess board such that none of the queens is threatening any of the others.  The problem is to input the 8 columns of the queens on the rows of a chess board, with 1 being the first column and 8 being the last, e.g. 1 2 3 4 5 6 7 8 means the queens are along the diagonal, which would not be a valid solution.

More Info about this problem

Write a program to test a user input guess.

Examples:

  • Enter board configuration: 2 4 6 8 3 1 7 5 - This is a valid configuration (as above).
  • Enter board configuration: 1 8 2 5 3 7 4 6 - This is NOT a valid configuration.
   
Nonki took a crack at solving this challenge:

QDX521

Black queens means valid and red queens means NOT valid.

A sample screen shot of a 8-Queens configuration NOT valid

   

What do you think? Have you tried it?

And be sure to check out the forum thread: http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/1be6e691-9942-4b5f-a1a5-47bd3fa14862 

Thanks!

   - Ninja Ed

Alien Barrage - Small Basic Featured Game

$
0
0

Check here to see the discussion about LitDev's Alien Barrage!

As you can see in the forum thread, LitDev picked "Alien Barrage" from my random flow of alternate names. It was originally named Space Invaders, and this is too original to be thought of as a Space Invaders clone.

Check out the game here:

http://smallbasic.com/smallbasic.com/program/?GFR568

 

This version also has a web-based high score, but you need the LitDev extension: http://smallbasic.com/smallbasic.com/program/?HKM280

Thanks to LitDev for this intense and fun game!

I love how you lose a point each time you fire, all the crazy power ups, and how levels start in intense ways. I got to Level 5, high score 755.

 

Here are the high scores from the forum thread...

LitDev - 2830

BigDaddyO - 2774

Timo - 1862 (Level 8)

Ed - 755 (Level 5)

   

Leave a comment with your top score! Have you played it? What do you think?

 

   - Ninja Ed

Light Beam Physics Challenge - Small Basic

$
0
0

Make sure you check out LitDev's January challenges.

Here's more info about his Physics Challenge: Light Beam!

Physics Challenge

Write a program to reflect a light beam off a rotated surface.

Further challenge - make a game where the user must rotate the surfaces to get the beam to bounce off several surfaces and hit a target.

 

Zock took a crack at solving it: http://smallbasic.com/smallbasic.com/program/?LMB722

Use the up/down arrows to change the angle on the reflector.

 

Math Man also made this version: http://smallbasic.com/smallbasic.com/program/?XKS442 

 

What do you think? Have you tried it?

And be sure to check out the forum thread: http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/1be6e691-9942-4b5f-a1a5-47bd3fa14862

Thanks!

   - Ninja Ed

Small Music Player - Small Basic Featured Program

$
0
0

Today we're featuring Music Player (info) - by Amir CPS, NaochanON, and Absolu 

What started as this...

Quickly evolved (thanks to Amir and Absolu)...

  

Above Version - Update : FXJ606

  

Above Version - Import Code : BGV706 

   Import: TKQ922-3

  Import TKQ922-5

   Import: QTD813

 

So there you go! Check out the evolution on this forum thread!

The latest version (import code) can be found here: http://smallbasic.com/smallbasic.com/program/?QTD813

Thanks to Amir and team!

   - Ninja Ed 

Soda Pop Showdown - Small Basic Featured Game

$
0
0

Today's featured game was nominated by CodingLikeCrazy. In CLC's words...

========

Soda Pop Showdown is the name of the game I would like to nominate. it is made by JKrueg.

 

Click here to play Soda Pop Showdown! The code is SND683.

 

http://social.msdn.microsoft.com/profile/jkrueg/?ws=usercard-mini that is the link to the creators page!

I think this game is very fun and addictive to play that is why I am nominating it.


===========

Thanks go to JKrueg for the great game and to CLC for the nomination!

Honestly, my mouse aim is pretty bad, so this isn't all that fun for me.

How about you? What do you think of it?

   - Ninja Ed

Decimal to Binary Converter - Small Basic Featured Program

$
0
0

Ever want to convert a decimal number to binary? A binary number to decimal?

No?

Well now you can anyway!!! =^)

http://smallbasic.com/smallbasic.com/program/?THJ835

Amir CPS created this sweet converter for us. Amir created it in VB first and then in Small Basic.

To start, just enter 1 to convert binary and 2 to convert decimal.

Have you used it yet? Leave a comment!

Thanks!

   - Ninja Ed

 

Small Basic: The Improved I/O Extension

$
0
0

From Gungan37 in this Forums thread...

======================

I have spent the last few months writing the IO Extension in C#. It provides hundreds of methods to do all kinds of different things. It includes support for:

  • Network server / client communications
  • Use of over 20 Windows Forms controls
  • Use of game controllers
  • Use of the Google Maps APIs
  • Use of Microsoft Office style ribbon controls (like this)
  • Use of as many timers as you want
  • Advanced file I/O and FileSystemWatcher events
  • Use of many algorithms such as Pi calculations and sorting routines
  • Sending emails
  • Advanced speech synthesis
  • Printing
  • And much more!

 

  

Download link: http://www.mediafire.com/?b5rqidsjv4jduqe

Note: this version was designed for Windows 8/7/Vista butworks on XP. A special XP version without Aero libraries, etc. is in the works!

  

Please provide comments, suggestions, and bug reports here:

http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/8a206925-8c0b-4d3c-939d-31cea582ff9e

======================

 

Have you tried it out? What do you think?

   - Ninja Ed


Vigenère Cipher - Small Basic Featured Program

$
0
0

From Wikipedia: "The Vigenère cipher is a method of encrypting alphabetic text by using a series of different Caesar ciphers based on the letters of a keyword... The first well documented description of a polyalphabetic cipher was formulated by Leon Battista Alberti around 1467 and used a metal cipher disc to switch between cipher alphabets."

Wikipedia speaks of the Caesar Cipher: "In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a shift of 3, A would be replaced by D, B would become E, and so on. The method is named after Julius Caesar, who used it in his private correspondence."

Import Code: WCD295

You can grab the code here (but it won't run online):

http://smallbasic.com/smallbasic.com/program/?WCD295

This program comes from Amir CPS.

  

Have you used it? Encoded any secret messages? Leave a comment?

Enjoy!

   - Ninja Ed

Text to Binary Converter - Small Basic Featured Program

$
0
0

Ha! I saw an episode of "Big Bang Theory" where they were arguing over the binary translation of English (how many zeros and ones there should be).

Amir had made a Decimal to Binary converter that I featured, and I mentioned that a text to binary converter would be pretty sweet.

 

Well now (through the magic of Small Basic) Amir CPS has made it possible to have a conversation with zeros and ones that you have encoded in binary:

Try it out here!

   

Get your geek on! Go translate this into English! You can double click this one line, and then copy all the text at once:

010000110110111101101101011011010110010101101110011101000010000001101111011011100010000001110100011010000110010100100000011000100110110001101111011001110010000001111001011011110111010101110010001000000110011001100001011101100110111101110010011010010111010001100101001000000110001101101111011011000110111101110010

Or you can paste in the four lines, one at a time, no spaces:

01000011011011110110110101101101011001010110111001110100001000000110111101101110001

0000001110100011010000110010100100000011000100110110001101111011001110010000001111

0010110111101110101011100100010000001100110011000010111011001101111011100100110100

10111010001100101001000000110001101101111011011000110111101110010

 

It's a text to binary and binary to text converter!

Import : FTK803

Small change in codes to handle "NewLine" character

Import : BTN178

And here's the code...


1.GraphicsWindow.Width = 400
2.GraphicsWindow.Height = 300
3.GraphicsWindow.Title = "Text to Binary :
Binary to Text"
4.
5.TextBox =
Controls.AddMultiLineTextBox(10,10)
6.Controls.SetSize(TextBox,380,250)
7.ButtonTB =
Controls.AddButton("Convert to
Binary"
,10,265)
8.ButtonBT =
Controls.AddButton("Convert to
Text"
,140,265)
9.Controls.ButtonClicked =
onClick
10.
11.Sub onClick
12.  LastButton =
Controls.LastClickedButton
13.  If LastButton =
"Button1" Then
14.    ConvertToBinary()
15.  Else
16.    ConvertToText()
17.  EndIf
18.EndSub
19.Sub ConvertToBinary
20.  String = Controls.GetTextBoxText(TextBox)
21.  For i = 1 To Text.GetLength(String)
22.    CharCode =
Text.GetCharacterCode(Text.GetSubText(String,i,1))
23.    'convert ascii codes into
binary
24.    bit = ""
25.    binval = ""
26.    Count = 0
27.    While CharCode >
0
28.      bit[Count] = Math.Remainder(CharCode,2)
29.      CharCode =
Math.Floor(CharCode
/ 2)
30.      Count = Count + 1
31.    EndWhile
32.    For j = Array.GetItemCount(bit) To 0 Step -1
33.      binval = Text.Append(binval,bit[j])
34.    EndFor
35.    'add leading zero to make binary
value even
36.    For b = 0 To 8 - Text.GetLength(binval)
37.      binval = Text.Append(0,binval)
38.    EndFor
39.    longbin =
Text.Append(longbin,binval)
40.  EndFor
41.  Controls.SetTextBoxText(TextBox,longbin)
42.  longbin =
""
43.EndSub
44.Sub ConvertToText
45.  Binary = Controls.GetTextBoxText(TextBox)
46.  If Math.Remainder(Text.GetLength(Binary),8) <> 0 Then
47.    GraphicsWindow.ShowMessage("Binary is un
even"
,"Error")
48.  Else
49.    For g = 1 To Text.GetLength(Binary) Step 8
50.      Binarychar =
Text.GetSubText(Binary,g,8)
51.      'Convert binary to
decimal
52.      For bit_Count =
1 To Text.GetLength(Binarychar)
53.        binaryNum =
binaryNum + Text.GetSubText(Binarychar,Text.GetLength(Binarychar)-bit_Count+1,1)*Math.Power(2,bit_Count-1)
54.      EndFor
55.      'get char from ascci
code
56.      Char = Text.GetCharacter(binaryNum)
57.      binaryNum =
""
58.      'append char
59.      LongString =
Text.Append(LongString,Char)
60.    EndFor
61.    Controls.SetTextBoxText(TextBox,LongString)
62.    LongString =
""
63.  EndIf
64.EndSub

 

 

What do you think?

Do you need a Klingon to Binary converter? =^)

Enjoy!

   - Ninja Ed

How to convert text into Binary

$
0
0

This fantastic chart comes from today's guest blogger, Liam McSherry:

If anyone wants to know how to convert text into a series of binary digits, I quickly made this little graphic.

 

Note that this sort of system applies to all radices as a way of converting to them, with the divisor "2" changed to the value of the radix.
 
This is on the topic of the blog article, Text to Binary Converter - Small Basic Featured Program.
 
Thanks to Liam for this cool diagram!
 
Enjoy!
 
   - Ninja Ed

Drawing Butterflies and Hearts... USING ONLY CODE - Small Basic Featured Programs

$
0
0

Check out our February Small Basic Coding Challenges from LitDev! Community challenges are from Math Man and Amir CPS.

 

Today we're going to look at two challenges and two programs from each challenge...

     

Small Challenge 2

Draw a picture of a butterfly.

  

The first Butterfly is from Math Man:

NDG956


 

 

Our second Butterfly comes from NaochanON:

LVF292

  

Community Challenge 2 - By Amir CPS

(b) Draw a heart shape and calculate it's area.

 

This first Heart is from Nonki Takahashi:

SWQ275

Screen shot of a program Herart 0.1

 

Our second heart comes from NaochanON:

(  area...... r=r+dr,   dS= r*r*dθ/2   θ= 0 -2pi  )

CFQ822 

 

 

Thanks to everyone for the great contributions! What do you think? How hard is it to draw like this in Small Basic?

Leave a comment!

   - Ninja Ed

Create a Visually Fun Clock - Small Basic Challenge

Small Basic Extension - Extended Small Basic Library (ESL) 0.4.0a

$
0
0

Today's featured Small Basic extension comes from Liam McSherry. Here is information about the extension in his words...

Extended Small Basic Library, or ESL, is a small but powerful extension for Microsoft Small Basic. Although it didn't get off to a great start, and I was unable to work on it after the initial release on the 6th of October 2012, it is back, and with a new thread.

ESL is comprised of 12 classes, each of which either expand and improve on the Small Basic standard library, or bring new features of their own into the mix. These include advanced features such as cryptography, tetration, and include useful features such as being able to use C# arrays as storage, which
are significantly faster than Small Basic arrays.

ESL is an open source project, and a link to the source code will be at the end of this post. ESL is currently in an "Alpha" state of development, and may be buggy. All bug reports are welcome, but please try not to continuously report the same bug.

ESL on GitHub: https://github.com/McSherry/ESL
ESL Download: https://munycdn.com/a/McSherry/ESL_0.4.0a.zip
ESL on Ohloh: https://www.ohloh.net/p/ESL
HTML ReadMe: http://mcsherry.github.com/ESL/

A basic "Getting Started" document for ESL is now available. It describes the classes within ESL, as well as providing a few code examples, and any relevant legal information.

Read "Getting Started with ESL": https://munycdn.com/a/McSherry/Getting Started with ESL.pdf

 

Please feel free to provide suggestions in this forum thread. Thanks for your time, and I hope this extension is useful for you.

If you'd like to contribute to ESL, please fork the GitHub repository, and then file a merge request with your changes. It would also be helpful if you used the Issue Tracker provided by GitHub.

Licencing and legal information is available in the README, as well as a list of credits for various components that make up parts of ESL.

Added features in the 0.3.0a update:

  • GZip Compression (untested)
  • RC2 Encryption
  • DES Encryption
  • AES Encryption
  • Fibonacci Number Generation (up to n=138)
  • The mathematical constant e
  • The mathematical constant Phi (a.k.a. the Golden Ratio)
  • Number concatenation (32-bit and 64-bit)
  • HMAC (Hash-based Message Authentication Code) variants of SHA hashes
  • CRC-32 (ANSI X3.66) and CRC-64 (ECMA-182) checksum generation
  • Hyperexponentation (tetration)
  • Further text manipulation (ToUpper, ToLower, Reverse, etc)
  • RIPEMD160 Hash function
  • More file-format definitions
  • Primality checking (whether a number is prime)
  • A new HTML Read-Me

Added features in the 0.4.0a update:

  • Encryption methods have been patched to fix "Bad Data." exceptions; output from encryption is Base64-only now.
  • ESLWeb has been renamed to ESLNetworking.
  • Added an internal IP Address check to ESLNetworking.
  • Added an external IP Address check to ESLNetworking, as well as a check for an Internet connection.
  • OctalFromInteger and OctalToInteger added to ESLMaths
  • ExtractRange and Remove added to ESLText
  • ESLCrypto renamed to ESLSecurity
  • Added a password crack-time estimator to ESLSecurity (crashes incurred from large crack times)
  • ESLStorage now allows for 64 arrays rather than 16.
  • File definitions for ESLFile.Identify() now use the external file ESLFormats.xml.
  • ESLCompute class added
  • ThreadedCall() method added to ESLCompute to allow multithreaded Small Basic programs.
  • The time of compilation has been added to the ESL class.
  • Support for XTEA encryption via an XTEA engine.

==============

 

Thanks to Liam and the community for all your hard work on this great extension!

Have you used it? What do you think?

   - Ninja Ed

Small Basic Program Gallery - Listed By Category

$
0
0

In this gallery, the programs are divided by category, subcategory, and then alphabetically. To see the programs listed only alphabetically, go here. That list focuses on fun interactive programs (so that it doesn't get lost in too many drawings, text, math, and physics programs). But this list includes more of a variety of different types of programs.

NOTE: This is a work in progress. Leave a comment with programs to add to get me moving faster. Thanks!

   

Games

Action

Brick Wall (info) - by Stendec

Click the Button - by Timo Sö

Stay Away from the Blue Ball - by Todd

Super Pong - by Litdev

Mazes

Smiley Maze - by Nik Coughlin

SnakeBite - by Davey Wavey

Star Catcher - by NaochanON

Turtle Maze - by (info) - by Nonki Takahashi

Shooters

1942 - by Laurent20

Alien Barrage (info) - by LitDev

Asteroids V2 - by Jason Jacques + Community

Invader Game - by NaochanON (play locally for proper framerate)

Invaders - by JKrueg

Soda Pop Showdown - by JKrueg

Space Invaders - by Davey Wavey

Strategy/Puzzle

Color Memory Game - by Martmen

Gorillas - by Rushworks

SokoCUTE - by kts99

TanCraft - by Behnam Azizi

Tankinator - by Zock77& Cobra355

Tetris - by Kenneth Kasajian

Tic Tac Toe (with menu) - by Nonki Takahashi

Tic Tac Toe (with tough AI) - by NaochanON

Tower of Hanoi - by Alex 2000

 

Graphical

Animated

Blimp - by  Coding Cat

Random Drawing - by Math Man& Coding Cat

Star Field Simulator - by JKrueg 

Clocks

Analogue Clock (with wood texture) - by Math Man

Analogue Clock (no background) - by Nicolas_br 

Pendulum Clock - by Nonki Takahashi

Pi Clock - by Math Man

Triangle Clock - by Nonki Takahashi

Water Clock - by NaochanON

Drawings

Butterfly with Blue Wings - by NaochanON

Butterfly with Yellow Wings - by Math Man

Heart - Plump - by NaochanON

Heart - Regular - by Nonki Takahashi

Heart - Skinny - by Nonki Takahashi

Monarch Butterfly - by Nonki Takahashi

Drawings with Input

Heart Generator - by Math Man

Text Writer - by Todd

Messages

Blimp - by  Coding Cat

Interactive Visualizations

Atom - by Dudeson (follows mouse cursor)

Eyeballs - by Math Man 

 

Math

Animated Algorithms

Sorting Algorithm Demo - by Zeven

Converters

Decimal to Binary Converter - by Amir CPS 

Number to Text - by Math Man

Text to Binary Converter - by Amir CPS

 

Physics

-

 

Productivity Apps

Art/Drawing

Blackboard - by Vijaye 

Color Picker - by Suduadib

Computer Apps

Code Block Generator v1.3 (info) - by Nonki Takahashi

Installer (info) - by Timo Sö

Math Apps

Calculator - by  Alex 2000

Ruler - by Nonki Takahashi

Music/Sound

Music Player (info) - by Amir CPS,NaochanON, and Absolu

 

Sciences (Other)

 -

 

Sound

 -

 

Text

 -

 

This idea was inspired by Rene Miner in these comments.

Leave a comment with more programs to add. We'll need a name for the program, a category/subcategory it belongs in, a link to download/view it, and the name and profile link of the developer.

Thanks!

   - Ninja Ed


Tankinator ver 0.03 - Small Basic Featured Program

$
0
0

Zock77 completed the latest version of Tankinator! It's super addicting! Check it out!

You can get it here:

http://www.mediafire.com/?t8tvn4b3eyyty3g

 

Features added:

1) Sound was added

2) Random projectiles coming out of turrets bug fixed

3) Added more turrets (There are 10 now)

4) Changed the background picture

5) Added a different type of tank

6) Boosted the game performance

 

Please give feedback in this forum thread.

 

I found it far more challenging than version 0.02.

Here's my high score: 5,048,367 points and 424 kills. (Not the 50.8 million points I got in version 0.02, but I think this version is harder.)

 

UPDATE...

I tried my strategy with a higher tip of the arrow. Essentially it's a diagonal line (click the image to see it bigger):

  

But eventually the tanks broke through and the game ended (click the image to see it bigger):

My new high score is 9,529,304 points and 528 kills:

 

Have you played it? Leave a comment!

   - Ninja Ed

 

Silly Story Writer - Featured Small Basic Program

$
0
0

I'm not sure if this is a game or a program...

Silly Story Writer - KKK028

   

You have to run it locally, but it's hilarious.

This comes from Talgon96.

In Talgon's words, "It's not graphically pleasing but it will make you laugh."

Indeed!

 

Well this blog post is way too short. And no pictures. So I'll just write a bunch of random statements that you'll understand if you try out the program...

Don't stand close to that llama.

What's your favorite candy?

That's a sweet llama.

 

Essentially this is a strange type of mad lib.

   - Ninja Ed

 

Sierpenski Triangles - Small Basic Featured Programs

Small Basic Abacus - Featured Program

$
0
0

Small Basic Abacus is from Harry Hardjono. Very cool. It even has a sound.

Check out the Abucus here:

CKX791

Here is what it looks like:

I think including the numbers is a nice touch.

What do you think? Would you change anything?

  

   - Ninja Ed

 

Create a Metronome in Small Basic - Community Challenge

$
0
0

For our March Challenge of the Month...

One of Nonki's Community Challenges was...

(d) Create a metronome.

 

And NaochanON created a great metronome!

Click here to play with it: LWQ467-0

 

For fun, crank the pitch up to 195, and enjoy! You'd think the arm would fall off when going at that speed!

The controls are pretty straight foward. Once you play with them it will make perfect sense.

Did you try it out? What do you think? Leave a comment!

Go here to give it a whirl:

LWQ467-0

And check out the rest of the March Monthly Challenges:

March Challenge of the Month

 

Have a great weekend!

   - Ninja Ed

Viewing all 669 articles
Browse latest View live