Web Driver and Game Engine

The Web Driver makes it easy to create games for your C2 or freely customize existing ones.

Quick Start

  1. Open the C2 Web Driver in Google Chrome
  2. Click Save to save the script to the cloud
  3. Enter Make me a Snake game in the dialog, then click the send button in the bottom-right corner of the input box
  4. Wait a moment
  5. The new game will appear in the simulator on the right, where you can try it in your browser
  6. Connect the device to your computer with a USB-C cable, then turn the device on
  7. Click Run on Device in the top-right corner of the Web Driver, then select TooBeFun C2 in the device picker
  8. Wait a moment for the new game to appear on the device. You can then disconnect the cable

Tips for Building C2 Games

  1. The game engine supports the following resource formats:
Resource FormatDescriptionImport Formats
RGB5Static image in RGB565 format.png, .jpg, .bmp, .webp
RGB5AAnimated image in RGB565 format.gif
WAVAudio in WAV format.wav
WORLDA file saved by the Engine World Editor. AI can use nodes with specified IDs as game assets.world
CURVESVector graphics in a Lottie-compatible format.curves
SYNTHSynthesized sound effects. Create them under My Resources and freely adjust the synthesizer parameters.synth
  1. The C2 screen has a 320 × 142 rendering area, with the corners masked into a rounded capsule shape. Tell the Web Driver to keep important content inside the safe area
  2. The C2 has limited display refresh bandwidth, so avoid moving too many elements at once
  3. The C2 screen is not designed for rich color reproduction, so a black game background is recommended
  4. C2 includes a simple physics engine. Tell the Web Driver to use the built-in physics engine to implement ...
  5. Avoid game controls that require pressing and holding the joystick button, because doing so opens the C2 menu
  6. C2 games are written in ES5 JavaScript
  7. The game engine includes camera movement, but only along the X axis
  8. The C2 accent color can change dynamically. Tell the Web Driver to use the accent color for the game character when creating vector content
  9. The C2 has only about 6 MB of allocatable memory. Tell the Web Driver to reuse objects with an object pool to avoid excessive memory allocation