Beginning Programming Series - Part 5

Section 1 : Introduction


© 2003, Brad Moore

author website:

LB Connection

Home

Password Textbox API

Character Replacement

LB Isam Library

Beginning Games 2

Rubber Band Objects

WMLiberty Primer

LB Browser

Beginning Programming 5

INPUTTO Demo

Chase Button

Questionaire Wizard

MIDI Output Thoughts

MIDI-Tunes

Play MIDI DLL

Directory Search Function

Newsletter help

Index

Introduction

If you are still with me, then I am hoping you are finding this exciting, or at least interesting enough to hang on. The journey has just barely begun, and what you will be able to do with Liberty Basic you can not even imagine. This time in we will be finishing the starquest game we offered as a challenge. This will be our last largely non-windows based program to develop. I am looking forward to introducing the topic of windows and graphics next session, so I hope you will stick with me here. We will be continuing the Glossary (words in the glossary will be formatted as such: glossary term and will be hot linked to the glossary entry) and we will be building on the foundations laid in earlier editions of this series. As you can tell from the title, this is the fifth in a series of articles on the subject of beginning programming. If you are just joining us and you are a beginner, I encourage you to go back and read through the previous issues. Here are links to the online archive of each:

Likewise, I have been encouraging the readers to practice programming both by following along with the lessons and by trying the challenges. I really have yet to heard back from anyone who is using this series and doing the challenges, but I would be interested in know whether the material is too easy, too hard or just the right level of challenge. You can email me direct at bjaz.moore@copiasystems.com.

Thanks.

Challenged Again -

We left of last time, as we usually do, with a challenge. This time we were to build a starmap which we are going to use in a game we are developing. Lets take a look at the specifics of the challenge:

Using a two dimensional array as we have discussed and demonstrated, populate the array with periods. This will be our starmap for the game we will develop next time. It is called Stargate. Each period will represent a star map coordinate. Your ship will be represented by an at sign "@". The stargate will be three asterisk in the lower right of our starmap. After populating the starmap with period, place the items described and then print the starmap to the screen with a set of horizontal and vertical coordinate makers as shown below. We will develop this further next time.

        01 02 03 04 05 06 07 08 09 10 11 12
      1  @  .  .  .  .  .  .  .  .  .  .  .
      2  .  .  .  .  .  .  .  .  .  .  .  .
      3  .  .  .  .  .  .  .  .  .  .  .  .
      4  .  .  .  .  .  .  .  .  .  .  .  .
      5  .  .  .  .  .  .  .  .  .  .  .  .
      6  .  .  .  .  .  .  .  .  .  .  .  .
      7  .  .  .  .  .  .  .  .  .  .  *  *
      8  .  .  .  .  .  .  .  .  .  .  *


Home

Password Textbox API

Character Replacement

LB Isam Library

Beginning Games 2

Rubber Band Objects

WMLiberty Primer

LB Browser

Beginning Programming 5

INPUTTO Demo

Chase Button

Questionaire Wizard

MIDI Output Thoughts

MIDI-Tunes

Play MIDI DLL

Directory Search Function

Newsletter help

Index