Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

Exercise: Making a Game with Script Editor

Script Editor Configuration

  1. Create seven Tags. The first tag will be named “Color”, and it will be a STRING tag. Set the default value to #ff0000. Another tag named “Game ON” This will be a BOOL, with a default value of false. Another tag named Points. This will be an INT (INT16) tag. Another named “sleepTime” and “level”. These both will be INT(INT16) tags. The tag sleepTime will be a default of 500. The tag level will be defaulted at one. Another BOOL named clicked. The last tag will be “difficulty”, this will be an INT(INT16).

  1. Select the Page, and rename it to “Main Menu”. Under Appearances, select the Background Color to be Black.

  2. Create three Text Boxes. The first one will say “Main Menu”. Under appearances select a Black Fill, and White Font Color. The final change will be the Font Size set to 30. The second one will say “Start Game!”. Under appearances select a Black Fill, and White Font Color. The final one will say “Exit Program”. Under appearances select a Black Fill, and White Font Color. Set these on the screen evenly spaced apart in the middle, going down the screen.

  1. Create two new pages. One will be named “Gameplay”. The second will be named “Selection”. Both of these screens will have Black Background Colors.

  2. On the Gameplay Page, Create one Text Box and one Rectangle. Drag the Text Box into the top-center of the page, and move the Rectangle onto the center of the screen. Drag and Drop the “Color” Tag onto the Fill section under the Appearance tab of the Rectangle. Drag the “Points” Tag onto the Text Box.

  • No labels