<commit_before>import {Images} from '../../assets'
import GameAdapter from '../../globals/GameAdapter'

export default class Intro extends Phaser.State {
  private bgBack: any
  private bgMid: any
  private textContent: string[]
  private textObject: any
  private gameAdapter: GameAdapter
  private countdownNumber: number = 3
  private startLevelCounter: any

  private line: string[] = [];
  private wordIndex: number = 0;
  private lineIndex: number = 0;
  readonly WORD_DELAY: number = 150;
  readonly LINE_DELAY: number = 600;

  constructor() {
    super()
    this.gameAdapter = new GameAdapter()

    this.textContent = [
      'Drop the coffee mugs! It looks like the Tea Tyrant Triad is attacking again!',
      'If they get here they will burn all our organic coffee powder from the Old World!',
      'We can\'t let them have a monopoly on warm drinks in this city!',
      'Take the X-51 Caffeine and shoot those soggy teabags into powders.',
      'Shoot with J and use the java-dodge mechanic with K! Now GO!'
    ]
  }

  public create(): void {
    const backImg = Images.ImagesCyberpunkFarEdit3.getName()
    const midImg = Images.ImagesCyberpunkMid.getName()

    this.bgBack = this.game.add.tileSprite(0,
      this.game.height - this.game.cache.getImage(backImg).height,
      this.game.width,
      this.game.cache.getImage(backImg).height,
      backImg
    )

    this.bgMid = this.game.add.tileSprite(0,
      this.game.height - this.game.cache.getImage(midImg).height,
      this.game.width,
      this.game.cache.getImage(midImg).height,
      midImg
    )

    this.game.add.button(this.game.world.width - 150, this.game.world.height - 85, Images.SpritesheetsSkip.getName(), this.goNext, this, 2, 1, 0)

    this.textObject = this.game.add.text(150, 32, '', { font: '13px Arial', fill: '#19de65' })
    this.nextLine()
  }

  private goNext(): void {<commit_msg>Implement press space to skip intro<commit_after>import {Images} from '../../assets'
import GameAdapter from '../../globals/GameAdapter'

export default class Intro extends Phaser.State {
  private bgBack: any
  private bgMid: any
  private textContent: string[]
  private textObject: any
  private gameAdapter: GameAdapter
  private countdownNumber: number = 3
  private startLevelCounter: any
  private skipKey: Phaser.Key

  private line: string[] = [];
  private wordIndex: number = 0;
  private lineIndex: number = 0;
  readonly WORD_DELAY: number = 150;
  readonly LINE_DELAY: number = 600;

  constructor() {
    super()
    this.gameAdapter = new GameAdapter()

    this.textContent = [
      'Drop the coffee mugs! It looks like the Tea Tyrant Triad is attacking again!',
      'If they get here they will burn all our organic coffee powder from the Old World!',
      'We can\'t let them have a monopoly on warm drinks in this city!',
      'Take the X-51 Caffeine and shoot those soggy teabags into powders.',
      'Shoot with J and use the java-dodge mechanic with K! Now GO!'
    ]
  }

  public create(): void {
    const backImg = Images.ImagesCyberpunkFarEdit3.getName()
    const midImg = Images.ImagesCyberpunkMid.getName()

    this.bgBack = this.game.add.tileSprite(0,
      this.game.height - this.game.cache.getImage(backImg).height,
      this.game.width,
      this.game.cache.getImage(backImg).height,
      backImg
    )

    this.bgMid = this.game.add.tileSprite(0,
      this.game.height - this.game.cache.getImage(midImg).height,
      this.game.width,
      this.game.cache.getImage(midImg).height,
      midImg
    )

    this.game.add.button(this.game.world.width - 150, this.game.world.height - 85, Images.SpritesheetsSkip.getName(), this.goNext, this, 2, 1, 0)
    this.skipKey = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR)

    this.textObject = this.game.add.text(150, 32, '', { font: '13px Arial', fill: '#19de65' })
    this.nextLine()
  }

  public update(): void {
    if (this.skipKey.isDown) {
      this.goNext()
    }
  }
  private goNext(): void {
{'fraction_non_alphanumeric': 0.11505752876438219, 'fraction_numerical': 0.016508254127063533, 'mean_word_length': 3.1526479750778815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1652997', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1250, 'n_words': 360}