Technical documentation

This page contains a number of separate topics that are important to the game programmer.

Photon Fit tech support

Tip: run the Tester game of the Photon Fit and click on the question mark button (on the left of the screen) to see which hardware keys are triggered by the sensors.

Using this Tester game you can also test how your setup reacts to various moves like squats, punches, jumps and moving your arms to try to fly as a bird.

Source files for Arduino, schematic diagrams and more can be found on Github.

Control dancemat

To control a dance mat from software (eg from Construct) you capture buttons from a game controller, as shown in the adjacent diagram of a dance mat.

You can test your own dance mat via the dancemat test site by standing on each square one at a time (standing on two squares at the same time will not be detected by this test).

Make Atari 2600 games

To recreate Atari 2600 games, you can first run the games yourself on your own PC and view the gameplay and possibly rip graphics and sound from it.

Use Stella to run Atari games on your Linux or Windows PC. For Linux it can simply be installed from Synaptic.

BBCode's

List of BBCodes you can use with Scirra Construct text objects (from version 3):

  • [b]bold text[/b]
  • [i]italic text[/i]
  • [u]underline text[/u]
  • [s]strikethrough text[/s]
  • [size=20]change font size (in pt)[/size]
  • [font=Arial]change font face[/font] - you can also use any web font imported to the project.
  • [color=#ff0000]change text color[/color] - the color can be specified in the same way CSS colors are specified, e.g. hexadecimal, using rgb(), etc.
  • [opacity=50]change text opacity[/opacity]
  • [hide]invisible text[/hide] - this is useful for flashing effects, since the text still takes up the same width while invisible
  • [background=#ff0000]change background color[/background]
  • [offsetx=10]offset X[/offsetx] and [offsety=10]offset Y[/offsety] - move text by a number of pixels on each axis, useful for animated effects
  • [stroke]stroke text[/stroke], drawing an outline rather than a solid fill
  • [outline=#ff0000]outlined text[/outline], which adds an outline with a different color (as opposed to stroke, which removes the fill)
  • [lineThickness=2]change line thickness[/lineThickness], affecting the line thickness used for stroke, outline, strikethrough and underline
  • [insert]inserted text[/insert] does not change the text style, but inserts the given text separately to the rest of the string. This is useful when inserting right-to-left (RTL) text in to left-to-right (LTR) strings: normally RTL text inside an LTR string may change the direction of other text in the string, but if you put the RTL text inside these tags, it will ensure it does not change the direction of any text outside of the tags. It will also prevent other text merging features, such as kerning and ligatures, across the tag boundary.
Fullscreen games

Playing games works best when the browser window opens in full screen mode. You can do this by pressing F11. Or for Firefox by installing an add-on.

Add-on to open Photon Fit games full screen: Firefox add-on.

Add-on that always opens Firefox in fullscreen mode on startup:
Fullscreen
For questions/help about this add-on, please contact the developer of that add-on.