<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-423348972455698310</id><updated>2011-11-28T09:35:59.960+10:00</updated><title type='text'>Everything Basic4GL</title><subtitle type='html'>This blog is about the Basic4GL programming lanuage. Basic4GL is designed for easy game creation.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://basic4gl.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://basic4gl.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>wayne_312</name><uri>http://www.blogger.com/profile/06606118619811972517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_afajhC8uaBc/TJnJGGbOtrI/AAAAAAAAAA4/cRApCk1jTRI/S220/Photo0013.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-423348972455698310.post-6685141314044571410</id><published>2010-09-26T17:09:00.000+10:00</published><updated>2010-09-26T17:09:03.188+10:00</updated><title type='text'>Space Invaders Tutorial: Part 1 Setup</title><content type='html'>Welcome to the start of a great tutorial series on the great classic game Space Invaders. This part will be the setting up part of the tutorial. Please read this carefully as we will create a folder for the game with certain subdirectories.&lt;br /&gt;&lt;br /&gt;Creating the main folder for this project we will need to create a new folder on the desktop.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7dvipwk8I/AAAAAAAAABY/klALSzbVbBY/s1600/ScreenHunter_01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7dvipwk8I/AAAAAAAAABY/klALSzbVbBY/s1600/ScreenHunter_01.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rename the folder to Space Invaders Tutorial.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7eUjXhErI/AAAAAAAAABc/Tq6Dj2WFV1g/s1600/ScreenHunter_04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7eUjXhErI/AAAAAAAAABc/Tq6Dj2WFV1g/s1600/ScreenHunter_04.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Once you&amp;nbsp; have done that open the folder and add 1 subdirectory named Resources like so&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7tPYEZg-I/AAAAAAAAABo/2l2j3QDEHGw/s1600/ScreenHunter_07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7tPYEZg-I/AAAAAAAAABo/2l2j3QDEHGw/s1600/ScreenHunter_07.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_afajhC8uaBc/TJ7s_hMPvEI/AAAAAAAAABk/KeJbAmL6Aw0/s1600/ScreenHunter_06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Now we have to add 2 subdirectories for the resources folder. One named Graphics and the other named sounds.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_afajhC8uaBc/TJ7t7bQFswI/AAAAAAAAABs/AGIwCp7gxjc/s1600/ScreenHunter_08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_afajhC8uaBc/TJ7t7bQFswI/AAAAAAAAABs/AGIwCp7gxjc/s1600/ScreenHunter_08.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt; &lt;/div&gt;&lt;br /&gt;Well done. Now we have the folder framework for our game. Now we have to add some code as this tutorial is for a game called space invaders. We need to have a framework so that the code can be read easier if you need help if there is something wrong and the other reason is so that you know what you are doing. Open up Basic4GL and type in the following to the program.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7v3oDPpzI/AAAAAAAAABw/eRPYHs2FPRw/s1600/ScreenHunter_09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_afajhC8uaBc/TJ7v3oDPpzI/AAAAAAAAABw/eRPYHs2FPRw/s1600/ScreenHunter_09.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Well done now save it in the Space Invaders Tutorial folder that we created on the desktop and name it Space Invaders Tutorial.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_afajhC8uaBc/TJ7wanXkblI/AAAAAAAAAB0/uCyaJTJAT4A/s1600/ScreenHunter_10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_afajhC8uaBc/TJ7wanXkblI/AAAAAAAAAB0/uCyaJTJAT4A/s1600/ScreenHunter_10.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Well done. You have successfuly completed the first part of the Space Invaders Tutorial on the Everything Basic4GL blog. I hope you have enjoyed this part of tutorial and you look forward to the next parts of the tutorial.&lt;br /&gt;&lt;i&gt;Please note: This tutorial series will be done by screenshots and text like this part was. The code will always be in the screen shot and sometimes will be under the image if it is hard to read or is longer than the screen. This will be done with text like&lt;/i&gt; &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;this&lt;/span&gt; &lt;i&gt;&lt;span style="font-family: inherit;"&gt;and will be coloured with the respected colour in the basic4GL IDE.&lt;/span&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/423348972455698310-6685141314044571410?l=basic4gl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic4gl.blogspot.com/feeds/6685141314044571410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://basic4gl.blogspot.com/2010/09/space-invaders-tutorial-part-1-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/6685141314044571410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/6685141314044571410'/><link rel='alternate' type='text/html' href='http://basic4gl.blogspot.com/2010/09/space-invaders-tutorial-part-1-setup.html' title='Space Invaders Tutorial: Part 1 Setup'/><author><name>wayne_312</name><uri>http://www.blogger.com/profile/06606118619811972517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_afajhC8uaBc/TJnJGGbOtrI/AAAAAAAAAA4/cRApCk1jTRI/S220/Photo0013.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_afajhC8uaBc/TJ7dvipwk8I/AAAAAAAAABY/klALSzbVbBY/s72-c/ScreenHunter_01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-423348972455698310.post-1075298932737684786</id><published>2010-09-25T20:06:00.000+10:00</published><updated>2010-09-25T20:06:59.680+10:00</updated><title type='text'>Space Invaders Tutorial: Introduction</title><content type='html'>Welcome to the Everything Basic4GL blog. This tutorial is to use the four parts of the tutorial series on this blog called the Basic4GL Basics Tutorial. Space Invaders a very well known classic arcade game. There has been many clones, references to the game designed and created by Tomohiro Nishikado.&lt;br /&gt;&lt;br /&gt;This tutorial series goal is to create a complete clone of the Space Invaders game. The concepts we will use for this game is Text for the scores and lives, images for the spaceship and enemies and sound for extra effects.&lt;br /&gt;&lt;br /&gt;The images you will need will be at the top of the tutorial part that it will be used in. The sound will also be in the post that it will be used in.&lt;br /&gt;&lt;br /&gt;The tutorial series will not go into depth of the Basics as you should of leared them in the tutorial series The Basic4GL Basics tutorial. Links to the parts are &lt;a href="http://basic4gl.blogspot.com/p/tutorial-list.html"&gt;here&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;I hope you enjoy the space invaders tutorial series.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/423348972455698310-1075298932737684786?l=basic4gl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic4gl.blogspot.com/feeds/1075298932737684786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://basic4gl.blogspot.com/2010/09/space-invaders-tutorial-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/1075298932737684786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/1075298932737684786'/><link rel='alternate' type='text/html' href='http://basic4gl.blogspot.com/2010/09/space-invaders-tutorial-introduction.html' title='Space Invaders Tutorial: Introduction'/><author><name>wayne_312</name><uri>http://www.blogger.com/profile/06606118619811972517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_afajhC8uaBc/TJnJGGbOtrI/AAAAAAAAAA4/cRApCk1jTRI/S220/Photo0013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-423348972455698310.post-2039072269135837264</id><published>2010-09-21T22:11:00.000+10:00</published><updated>2010-09-21T22:11:46.679+10:00</updated><title type='text'>Basic4GL Basics Tutorial 4 - Playing a .wav sound</title><content type='html'>&lt;span style="font-size: small;"&gt;Ok so basically it has been a while. I haven't really done much lately on programming especially with basic4GL, but I'm back with a new tutorial that will get you on your way with programming more applications. This tutorial will go into detail about loading and playing a .wav file.&lt;/span&gt; This part will conclude with the basic4GL basics tutorial.&lt;br /&gt;&lt;br /&gt;This is a very simple program as the sound we will be using for this example will be the gong.wav file. It is found inside the C:\Program Files\Basic4GL\Programs\Sounds directory. So if you run save this program in the default programs directory you will be able to play the sound. So lets get to the code of this program.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: blue;"&gt;dim&lt;/span&gt; sound&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sound = &lt;span style="color: red;"&gt;LoadSound&lt;/span&gt;(&lt;span style="color: #274e13;"&gt;"sounds/gong.wav"&lt;/span&gt;)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;PlaySound&lt;/span&gt;(sound) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: inherit;"&gt;lets explain the code. we have to dim the variable which will store the sound file in this program. We then use the LoadSound function which was made for the use of games or other media applications to make it easier for people to have audio in their programs. Part of the LoadSound function we have to include a path to file. Then we use the PlaySound functions which we use the variable that holds our sound. save your program in the programs &lt;/span&gt;directory that was installed with the basic4gl installer. on my system it is C:\Program Files\Basic4GL\Programs\. Play the program and you should hear the sound of a gong. &lt;br /&gt;&lt;br /&gt;I hope this tutorial helps you in the future.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/423348972455698310-2039072269135837264?l=basic4gl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic4gl.blogspot.com/feeds/2039072269135837264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://basic4gl.blogspot.com/2010/09/basic4gl-basics-tutorial-4-playing-wav.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/2039072269135837264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/2039072269135837264'/><link rel='alternate' type='text/html' href='http://basic4gl.blogspot.com/2010/09/basic4gl-basics-tutorial-4-playing-wav.html' title='Basic4GL Basics Tutorial 4 - Playing a .wav sound'/><author><name>wayne_312</name><uri>http://www.blogger.com/profile/06606118619811972517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_afajhC8uaBc/TJnJGGbOtrI/AAAAAAAAAA4/cRApCk1jTRI/S220/Photo0013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-423348972455698310.post-6176387498216722099</id><published>2010-05-27T03:15:00.002+10:00</published><updated>2010-05-27T03:15:22.920+10:00</updated><title type='text'>Basic4GL Basics Tutorial 3 - Load a Image to the Screen</title><content type='html'>This tutorial teaches you how to load a image to the screen. Make  sure you have gone &lt;a href="http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-1-displaying.html"&gt;here&lt;/a&gt;  and &lt;a href="http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-2-variables.html"&gt;here&lt;/a&gt;  before learning how to load a image and place it on the screen.&lt;br /&gt;&lt;br /&gt;Ok  so loading a image in Basic4GL is actually a lot easier than most of  other programming languages. This so because of the way the sprite  library is made to make sprite games. Also did you know you can create  complete games using the sprite library and without knowing a single  peice of OpenGL code. So lets continue with this tutorial by saving a  image from below.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_afajhC8uaBc/S_1Ra556O_I/AAAAAAAAAAg/p5b-TV5a1M8/s1600/block.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_afajhC8uaBc/S_1Ra556O_I/AAAAAAAAAAg/p5b-TV5a1M8/s320/block.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now save it as a  .png as thats the file format I like personally. Make sure Basic4GL is  open and place the following code into it. Preferably typing it in and  not copying and pasting it.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color: #073763;"&gt;dim&lt;/span&gt; block&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;block &lt;span style="color: #073763;"&gt;=&lt;/span&gt; &lt;span style="color: red;"&gt;NewSprite&lt;/span&gt;(&lt;span style="color: red;"&gt;LoadTex&lt;/span&gt;(&lt;span style="color: #274e13;"&gt;"block.png"&lt;/span&gt;))&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;SprSetPos&lt;/span&gt;(&lt;span style="color: #073763;"&gt;200&lt;/span&gt;, &lt;span style="color: #073763;"&gt;200&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;BindSprite&lt;/span&gt;(block)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: inherit;"&gt;ok so lets explain this code for you.&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;firstly you declared a variable and  told Basic4GL you wanted it to make a NewSprite. Then you toald it load a  image called block using the LoadTex function. You then selected the  point in the screen where you wanted to place the loaded image.  BindSprite doesn't need to be called but if you wanted multiple images  on the screen at once it has to be used. So it's just good practise.&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;Now  if you save this program to the desktop in a folder called test. Pleae  place the block image in here and save your basic4GL file with whatever  name you like. If you followed the tutorial correctly your program  should look like below.&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_afajhC8uaBc/S_1VbHa2lOI/AAAAAAAAAAo/H-fAVIndLQg/s1600/ScreenHunter_03+May.+27+03.06.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_afajhC8uaBc/S_1VbHa2lOI/AAAAAAAAAAo/H-fAVIndLQg/s320/ScreenHunter_03+May.+27+03.06.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;So now this part of the tutorial is  finnished. You can now place your images you make onto the screen. There  is quite a lot of image formats that Basic4GL can load such as .png,  .jpg, .bmp, .gif and several others that I have forgotten about.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/423348972455698310-6176387498216722099?l=basic4gl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic4gl.blogspot.com/feeds/6176387498216722099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-3-load-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/6176387498216722099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/6176387498216722099'/><link rel='alternate' type='text/html' href='http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-3-load-image.html' title='Basic4GL Basics Tutorial 3 - Load a Image to the Screen'/><author><name>wayne_312</name><uri>http://www.blogger.com/profile/06606118619811972517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_afajhC8uaBc/TJnJGGbOtrI/AAAAAAAAAA4/cRApCk1jTRI/S220/Photo0013.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_afajhC8uaBc/S_1Ra556O_I/AAAAAAAAAAg/p5b-TV5a1M8/s72-c/block.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-423348972455698310.post-4740058739864330171</id><published>2010-05-27T02:30:00.002+10:00</published><updated>2010-06-16T10:52:01.897+10:00</updated><title type='text'>Basic4GL Basics Tutorial 2 - Variables and Constants</title><content type='html'>This is the secobd part to the Basic4GL Basics Tutorial set. If you want to learn how to display text to the screen then go &lt;a href="http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-1-displaying.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Variables are not just very useful but they are essentially needed in every program. Basic4GL's variables have to be declared with dim no matter what type of variable you are using. The different variables types are as such:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;integer e.g dim x = 1&lt;/li&gt;&lt;li&gt;float e.g dim x# = 1.01&lt;/li&gt;&lt;li&gt;string e.g dim string$ = "Hello World&lt;/li&gt;&lt;/ul&gt;ok so those are the three variable types used in Basic4GL. Constants are the same as variables except is just declared like so const x = 10. constants cannot be altered later on in the program where as the other three variable types can.&lt;br /&gt;&lt;br /&gt;So lets use some variables and print them to the screen.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: blue;"&gt;dim&lt;/span&gt; a = 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: blue;"&gt;dim&lt;/span&gt; b# = 1.014&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: blue;"&gt;dim&lt;/span&gt; &lt;span style="color: black;"&gt;c$ = "Hello Mate"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;printr&lt;/span&gt; a&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;printr&lt;/span&gt; b#&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;printr&lt;/span&gt; c$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/span&gt;ok so thats the basic part of using variables. lest use maths with variables aye. This is a bit of fun.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: blue;"&gt;dim&lt;/span&gt; a = 1+7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: blue;"&gt;dim&lt;/span&gt; b = 9&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: blue;"&gt;dim&lt;/span&gt; c = a + b&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;print&lt;/span&gt; c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;Well thats the addition used. You can experiment on what you have learned in this tutorial as you have completed it.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;Tell me what other tutorials for Basic4GL you would like me to make for you by emailing me at &lt;a href="mailto:wayne_312@live.com"&gt;wayne_312@live.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/423348972455698310-4740058739864330171?l=basic4gl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic4gl.blogspot.com/feeds/4740058739864330171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-2-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/4740058739864330171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/4740058739864330171'/><link rel='alternate' type='text/html' href='http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-2-variables.html' title='Basic4GL Basics Tutorial 2 - Variables and Constants'/><author><name>wayne_312</name><uri>http://www.blogger.com/profile/06606118619811972517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_afajhC8uaBc/TJnJGGbOtrI/AAAAAAAAAA4/cRApCk1jTRI/S220/Photo0013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-423348972455698310.post-1839726124031194775</id><published>2010-05-27T01:38:00.001+10:00</published><updated>2010-05-27T01:43:51.073+10:00</updated><title type='text'>Basic4GL Basics Tutorial 1 - Displaying Text to the Screen</title><content type='html'>This tutorial assumes you have downloaded Basic4GL from &lt;a href="http://basic4gl.wikispaces.com/"&gt;here&lt;/a&gt; and installed it.&lt;br /&gt;&lt;br /&gt;Basic4GL is a easy to learn easy to use programming language. It isn't designed to be the best programming language in fact it was a hobby project by a guy named Tom Mulgrew. However he has just recently had a child and well all his spare time is taken with work and his family.&lt;br /&gt;&lt;br /&gt;This tutorial is one of a few that teaches you the basics of Basic4GL programming. Also note there are the guides that tells you about Basic4GL. However this tutorial set only covers key aspects of Basic4GL so you may have to read the guides to help you learn other aspects of Basic4GL. If you have problems learning parts of Basic4GL email me your problems at &lt;a href="mailto:wayne_312@live.com"&gt;wayne_312@live.com&lt;/a&gt; or go and ask for help at the Basic4GL forum located &lt;a href="http://basic4gl.proboards.com/index.cgi"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Ok open up the Basic4GL IDE which looks like the image below&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_afajhC8uaBc/S_075q-AlfI/AAAAAAAAAAY/qFpvdvun97c/s1600/ScreenHunter_01+May.+27+01.17.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_afajhC8uaBc/S_075q-AlfI/AAAAAAAAAAY/qFpvdvun97c/s320/ScreenHunter_01+May.+27+01.17.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Well done. Ok now we should learn how to display text on the screen. There are two main ways in Basic4GL. There is the &lt;span style="color: red;"&gt;printr&lt;/span&gt; function which returns the cursor to the next line. The &lt;span style="color: red;"&gt;print&lt;/span&gt; function leaves the cursor after the last character of the string. Now lets have a go.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;printr&lt;/span&gt; &lt;span style="color: #274e13;"&gt;"Hello World!"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;did you see the go button located in the middle of the top bar. Click on it I dare you to. Also if you like use the shortcut which is F9.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;Now lets go complex.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;print&lt;/span&gt; &lt;span style="color: #274e13;"&gt;"Health "&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;printr&lt;/span&gt; &lt;span style="color: #274e13;"&gt;"= 100"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;print&lt;/span&gt; &lt;span style="color: #274e13;"&gt;"Score"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="color: red;"&gt;printr&lt;/span&gt; &lt;span style="color: #274e13;"&gt;"= 0"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;Run that and you will see some text in the screen.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: inherit;"&gt;Well this concludes the first tutorial on displaying text to the screen. The next tutorial should be out soon.&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/423348972455698310-1839726124031194775?l=basic4gl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basic4gl.blogspot.com/feeds/1839726124031194775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-1-displaying.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/1839726124031194775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/423348972455698310/posts/default/1839726124031194775'/><link rel='alternate' type='text/html' href='http://basic4gl.blogspot.com/2010/05/basic4gl-basics-tutorial-1-displaying.html' title='Basic4GL Basics Tutorial 1 - Displaying Text to the Screen'/><author><name>wayne_312</name><uri>http://www.blogger.com/profile/06606118619811972517</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_afajhC8uaBc/TJnJGGbOtrI/AAAAAAAAAA4/cRApCk1jTRI/S220/Photo0013.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_afajhC8uaBc/S_075q-AlfI/AAAAAAAAAAY/qFpvdvun97c/s72-c/ScreenHunter_01+May.+27+01.17.gif' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
