|
Liberty BASIC Workshop Help     |
Game Bitmaps
Bitmaps for Sprites
Look at the section of the Game Workshop window that is devoted to Sprites. There is an area for loading bitmaps called "Load Bitmap List". This combobox contains a list of all sprite bitmaps that will be loaded by the program. You must choose bitmaps here before you can use them to create sprites. (The background bitmaps are handled separately.)
Click the "Add Bmp" button to add one or many sprite bitmaps to the game. You may choose multiple bitmap files in the file dialog, and all will be added to the bitmap list. The names of these bitmaps will be listed as the filenames of the bitmaps without the extensions. These names will be used to create "loadbmp" and "unloadbmp" lists in the game.
To remove a bitmap from the list, choose it in the combobox, then click the "Remove" button.
Bitmaps for Backgrounds
Game Workshop will generate code for a filled graphicbox to become the game background, unless at least one background bitmap is chosen for the game.
Background Bitmaps
To add background bitmaps to the game, click the + (add) button next to the Background Bitmap combobox. You will activate a file dialog, in which you can choose one or several bitmaps to be loaded by the game for use as background bitmaps. You can select multiple bitmap files in the file dialog, and all bitmaps will be added to the list. To remove a bitmap from the list, choose it from the combobox, then click the - (minus) button next to the list combobox.
Notice that the name given to the bitmaps in the list is the same as the filenames of the bitmaps, without the extensions. These names will be used by Game Workshop as the "loadbmp" names in the code when a game is created. Game Workshop will generate a "loadbmp" list and an "unloadbmp" list when you choose to create a game.
Game Workshop will automatically set the first background bitmap in the list to be the default background in the code generated for the game. It is the programmer's responsibility to issue "Background" commands to change the background bitmap during program execution.
Background Scrolling
Click the "Scroll Background" checkbox if you would like the background to scroll during the game. Once this box is checked, the comboboxes for X, and Y scroll amounts will be enabled. Choose the desired amounts to scroll each frame from these two comboboxes. The X direction will scroll either left or right and the Y direction will scroll either up or down. If scrolling is activated, Game Workshop will generate code for your game that scrolls the background with each frame by the amount you have chosen.
HTML export copyright (C) 1998 Windows Help
Designer