Skip to content

Config definitions

Marsha edited this page Nov 30, 2018 · 2 revisions

default - information for when there is no game state

  • player: what the player is doing
  • score: the information about the score
  • debug: the information in a debug state

loader - holds the information during the loading screen

  • x: horizontal axis
  • y: vertical axis
  • text: the words on the loading screen
  • font: the style of the words used
  • fill: color for the loading screen
  • logo: file extension of the asset
  • background: color behind everything
  • playerImage: the picture of the player
    • src: file extension for this asset
    • key: nickname
  • mapImage: the picture of the floor of the game
    • src: file extension for this asset
    • key: nickname
  • placeholder: the asset used to hold a spot for something when there isn't one
    • src: file extension for this asset
    • key: nickname
  • bgm: background music
    • mp3: file extension of the bgm
    • ogg: file extension of the bgm
    • label: the nickname of the bgm
  • screenImg: screen image
  • loadValue:
  • loadScreen: shows the information and details for the screen while loading
    • src: file extension for this asset
    • spriteLabel: label for the loadScreen
    • xPosition: horizontal axis
    • yPosition: vertical axis
  • loadText: shows the information for the text on the screen while loading
    • src: file extension for this asset
    • spriteLabel: label for this asset
    • xPosition: horizontal axis
    • yPosition: vertical axis
    • cursors:
    • velocity: speed

init - details of the screen as the game starts

  • screenWidth: screen width
  • screenHeight: screen height
  • phoneWidth: phone screen width
  • phoneHeight: phone screen height

boot - the information on the screen while the game is starting up

  • bootString : words seen during boot
  • menuState - the game when the menu is showing
    • background - the background of the menu
      • xRegion: horizontal axis
      • yRegion: vertical axis
      • key: nickname
      • src: file extension for this asset
  • title - the information about the title
    • xRegion: horizontal axis
    • yRegion: vertical axis
    • key: nickname
    • src: file extension for this asset
  • startButton - the information about the start button
    • xRegion: horizontal axis
    • yRegion: vertical axis
    • key: nickname
    • src: file extension for this asset
    • opacityCycleDurationInSeconds:
    • tweenToTransparentProperties:
    • tweenToOpaqueProperties:
    • tweenToTransparentEasing:
    • tweenToOpaqueEasing:
  • startButtonDots - the dots on either side of the start button
    • xRegion: horizontal axis
    • yRegion: vertical axis
    • key: nickname
    • src: file extension for this asset

gameLoop - the loop of the game

  • xStartRegion: horizontal axis start point

  • yStartRegion: vertical axis start point

  • blocks - the individual tiles on the game map

    • full:
    • half:
    • quarter:
  • neutralMap -

    • velocity: speed
    • mapsCount:
    • imgKey: nickname
    • imgSrc: file extension for this asset

gameOverState - information when the game is over

  • gameOverLabel: the area where the game over information is explained
    • xRegion: horizontal axis
    • yRegion: vertical axis
    • text: words for when the game is over
    • style: the design of the words
    • font: which type of letters used
    • fill: the color used
  • finalScoreLabel: the area where the final score is shown
    • xRegion: horizontal axis
    • yRegion: vertical axis
    • text: words for the final score
    • style: the design of the words
    • font: which type of letters used
    • fill: the color used
  • finalScoreText: information about the final score
    • xRegion: horizontal axis
    • yRegion: vertical axis
    • style: the design of the words
    • font: which type of letters used
    • fill: the color used
  • restartButton: restart button xRegion: horizontal axis yRegion: vertical axis key: nickname src: file extension for this asset

config.default.player - information about the player in default mode speed: how fast the player goes in default key: nickname src: file extension for this asset

config.default.blocks - information about the blocks in the default state. score: the points earned in the game full: half: quarter:

config.default.score - information about the score in the default state style : the design of the score font: the type of letters used color: what hue is used interface: amount: bonus1: text: words used x: horizontal axis y: vertical axis

config.default.debug - testing mode or a method of finding bugs in default mode isOn: if debug is on or not controls: information about the options of debug

config.default.neutralMap - information about the neutral map in the default state velocity: speed mapsCount: how many there are key: nickname src: file extension for this asset

config.default.gameMap - info about game map in default mode normalSpeed: how fast in normal mode hardSpeed: how fast in hard mode

config.default.controls - info about controls in default mode mouse: is the mouse used? keyboard: are the keys used?

config.default.gameInformation - any info for the game in default title: name of the game

Clone this wiki locally