reiske

 

GameProgramming

Page history last edited by brent reiske 1 yr ago

Friday January 18th

\

 

 

 

 

 

 

October 29th

You should be about finished with each of those little

assignments from last week.

Finally, read the section on COLORS which starts on page 125.

Run demo05-06.bb

Open Demo05-07.bb...it makes a bunch of colors appear on the screen

along with some advice you should follow. Try the advice.

 

October 6th

 

SUBSTITUTE DAY

Read pages 64, 65, and 66

The topic is multi-dimensional arrays

Consider the program below.

It stores a basic times table in a two dimensional array.

It is not neat, but you get the idea.

Your assignment is under the code below.

 

Dim table(10,10)

For rows = 1 To 10

For cols = 1 To 10

table (rows, cols) = rows*cols

Next

Next

t$ = "";

For rows = 1 To 10

For cols = 1 To 10

table (rows, cols)=rows * cols

Next

Next

 

For rows = 1 To 10

For cols = 1 To 10

Write table (rows, cols) +" "

Next

Print ""

Next

ASSIGNMENT:

Create and store a maze in a two dimensional array.

If you want you can change the characters to make it

look better.

email your solution to ahsweb@ausd.net by 10:00 pm tonight.

_______________________END
     |     |        |        |
     |__   |_____   |  ______|
     |        |        |     |
     |  ___   |_____   |     |
     |  |  |           |  |  |
     |  |  |  ___      |  |  |
     |  |        |  |  |  |  |
     |  |_____   |__|__|__|  |
     |  |                    |
Start|__|____________________|

 

<form> <input type=button value="please press me" onClick=alert("Hello!")> </form>
 

Comments (0)

You don't have permission to comment on this page.