<commit_before>Entity = require 'core/Entity'

class PlayerRacerController extends Entity
  constructor: (@racer) ->

  beforeTick: () =>
    @racer.leftEngine.throttle = -@game.io.getAxis(1)
    @racer.rightEngine.throttle = -@game.io.getAxis(3)


 module.exports = PlayerRacerController<commit_msg>Added basic keyboard controls<commit_after>Entity = require 'core/Entity'


LEFT_THROTTLE = 88
LEFT_FLAP = 90
RIGHT_THROTTLE = 190
RIGHT_FLAP = 191


class PlayerRacerController extends Entity
  constructor: (@racer) ->

  beforeTick: () =>
    @racer.leftEngine.throttle = -@game.io.getAxis(1) + @game.io.keys[LEFT_THROTTLE]
    @racer.rightEngine.throttle = -@game.io.getAxis(3) + @game.io.keys[RIGHT_THROTTLE]


 module.exports = PlayerRacerController
{'fraction_non_alphanumeric': 0.1273209549071618, 'fraction_numerical': 0.01856763925729443, 'mean_word_length': 4.763358778625954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '807986', 'n_tokens_mistral': 281, 'n_tokens_neox': 262, 'n_words': 44}