| 
View
 

10gbGameMaker

Page history last edited by PBworks 18 years, 5 months ago

GameMaker     

Tony Forster

 

The following is the pseudocode listing which represents the drag and drop graphical programming:

 

Draw Event:

set the font for drawing text to font0 and align left

set variable bottles to 10

repeat next action (block) 10 times

      at position (0,400-40*bottles) draw text: ""+string(bottles) +" green bottles hanging on the wall"

      at position (0,410-40*bottles) draw text: ""+string(bottles) +" green bottles hanging on the wall"

      at position (0,420-40*bottles) draw text: "and if one green bottle should accidentally fall"

      at position (0,430-40*bottles) draw text: "there would be "+string(bottles-1) +" green bottles hanging on the wall"

      set variable bottles relative to -1

 

 


Challenges:

 

Build up a text string and then display it all at once (textstring="10 "; textstring=textstring + "green ")

 

Use the alarm event to display one line at a time

 

Show the musical score

 

Display one word at a time in time with the music

 

Play the music

 

Comments (0)

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