USB Target

The USB target puts your game on a bootable USB stick. Plug it into a PC, start the PC from the stick, and your game runs full screen with no operating system to install. When the player quits, the PC powers off. Nothing on the PC's own drives is used or changed.

This target is new. So far it has only been run on one real PC (NVIDIA graphics, UEFI start-up), so try your stick on the PC it's meant for before relying on it.



What You Need

Building

Choose Target > USB (ISO), then:

These go on the stick from your program's folder: the Media folder, LICENSE.txt, game.ini and any userlib .so files beside the program. Other files don't, so keep what your game loads in Media. The debugger isn't available on this target, and a UseConsole program can't go on a stick, because there's no terminal for it.



Making Build and Run Faster

QEMU can run a game much faster with Windows Hypervisor Platform, a part of Windows that is usually switched off. Without it, the game can take a minute or more to appear and then runs slowly. This only affects testing on your PC: players booting from a stick don't need it.

  1. Open the Start menu, type Turn Windows features on or off and open it
  2. Tick Windows Hypervisor Platform and press OK
  3. Restart the PC when Windows asks

If it still isn't used, virtualisation may be switched off in the PC's BIOS settings, where it's usually called SVM or VT-x.

Sound in QEMU is unreliable: it can be out of sync, break up or not play at all. This only affects testing on your PC, not a game booted from a stick. QEMU is there for a quick look, so always test your game by booting it from a stick, and judge its sound that way.



Writing the Stick

This wipes everything on the stick. Use Rufus (free, from rufus.ie): pick the stick and your ISO, press Start, and when it asks how to write the image choose DD Image mode. Check you have picked the stick and not another drive. balenaEtcher works the same way, with no question to answer.



What's on the Stick

The system is about 500 MB, so a 1 GB stick has room for it and a small game. Each game is added to a ready-made system image, so the system isn't rebuilt for every game. The stick has no network drivers, so a game can't go online from it.



Starting From the Stick

Most PCs need telling once to start from USB, usually by pressing a key such as F12, F8 or Esc just after switching on. The key varies between makers. The BambooBasic logo shows while the system starts, then your game appears.



game.ini

This optional text file goes in your program's folder, with one setting on each line:

OnQuit=poweroff
Screen=SAMSUNG
SoundCard=1,3


Screens

Every connected screen is switched on, and the game runs full screen on one of them. The others stay black. Without a Screen setting, the game uses the connected screen with the highest connector number, which you can't easily predict. If it matters, name the screen. A game that calls sysSetMonitor overrides this, but the sound still follows the screen chosen here, so it's better to use Screen on this target.

On a PC with two screens, the first logos can appear on a different screen from the game. The PC chooses that screen itself while it starts up. On a PC with one screen, everything appears on that screen.



Sound

Sound goes to one output, chosen once as the game starts, in this order:

  1. The SoundCard setting, if there is one
  2. Speakers or headphones plugged into the PC
  3. The screen the game is on, if it has speakers (HDMI or DisplayPort)
  4. Another screen with an HDMI or DisplayPort connection
  5. Any other sound output

Plug in headphones before starting the PC, as they aren't noticed afterwards. A screen can report that it has sound and still have no speakers, so on a two-screen PC the game may be silent until you name the screen that does have them, using Screen. A PC with no sound output at all runs the game silently.



Differences From the Desktop

Shaders

The stick's graphics use GLSL shaders, not HLSL. You don't change your program: if it loads Media/Glow.hlsl, the stick loads Media/Glow.glsl, so put that file beside the HLSL one. The build stops and tells you if one is missing. The name has to be written out in the load call, and Shaders shows how the two languages differ.



If Windows Blocks the Tools

The tools are downloaded programs, and not all of them are signed. Smart App Control on Windows 11 can refuse to run them, and an antivirus can stop or slow them down. If a build says Windows wouldn't start the compiler, or QEMU, allow the usb folder in your antivirus. Smart App Control can only be turned off, in Windows Security under App & browser control, and Windows may not let you turn it back on without resetting the PC, so think before doing that. Defender Exclusions in the Tools > Configuration menu can add BambooBasic's folder for Windows Defender.



What Hasn't Been Tried Yet

BambooBasic © 2026 Michael Denathorn