<commit_before>/* global goog, lime, obacht, log */

goog.provide('obacht.PlayerController');

// Closure Library Requirements
goog.require('goog.pubsub.PubSub');



/**
 * Its a Player Controller
 *
 * @constructor
 */
obacht.PlayerController = function() {
    "use strict";
    var self = this;

    /** Indicates if the player is currently jumping */
    this.isJumping = false;

    /** Indicates if the player is currently crouching */
    this.isCrouching = false;

    /** Tap area for jump events */
    this.tapAreaTop = new lime.Node()
        .setSize(obacht.options.graphics.VIEWPORT_WIDTH / 4, obacht.options.graphics.VIEWPORT_HEIGHT / 2)
        .setPosition(0, 0)
        .setAnchorPoint(0, 0);

    /** Tap area for crouch events */
    this.tapAreaBottom = new lime.Node()
        .setSize(obacht.options.graphics.VIEWPORT_WIDTH / 4, obacht.options.graphics.VIEWPORT_HEIGHT / 2)
        .setPosition(0, obacht.options.graphics.VIEWPORT_HEIGHT / 2)
        .setAnchorPoint(0, 0);

    /** Sets up a bigger area for touchend events, so when the user swipes his finger while crouching the end of the action can be caught. */
    this.tapAreaPuffer = new lime.Node()
        .setSize(obacht.options.graphics.VIEWPORT_WIDTH / 2, obacht.options.graphics.VIEWPORT_HEIGHT)<commit_msg>fixed stand up animation vs catch bonus issue<commit_after>/* global goog, lime, obacht, log */

goog.provide('obacht.PlayerController');

// Closure Library Requirements
goog.require('goog.pubsub.PubSub');



/**
 * Its a Player Controller
 *
 * @constructor
 */
obacht.PlayerController = function() {
    "use strict";
    var self = this;

    /** Indicates if the player is currently jumping */
    this.isJumping = false;

    /** Indicates if the player is currently crouching */
    this.isCrouching = false;

    /** Tap area for jump events */
    this.tapAreaTop = new lime.Node()
        .setSize(obacht.options.graphics.VIEWPORT_WIDTH / 4, obacht.options.graphics.VIEWPORT_HEIGHT / 2)
        .setPosition(0, 0)
        .setAnchorPoint(0, 0);

    /** Tap area for crouch events */
    this.tapAreaBottom = new lime.Node()
        .setSize(obacht.options.graphics.VIEWPORT_WIDTH / 4, obacht.options.graphics.VIEWPORT_HEIGHT / 2)
        .setPosition(0, obacht.options.graphics.VIEWPORT_HEIGHT / 2)
        .setAnchorPoint(0, 0);

    /** Sets up a bigger area for touchend events, so when the user swipes his finger while crouching the end of the action can be caught. */
    this.tapAreaPuffer = new lime.Node()
        .setSize(obacht.options.graphics.VIEWPORT_WIDTH / 3, obacht.options.graphics.VIEWPORT_HEIGHT)
{'fraction_non_alphanumeric': 0.11526717557251909, 'fraction_numerical': 0.009923664122137405, 'mean_word_length': 3.0698757763975157, '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': '4648170', 'n_tokens_mistral': 858, 'n_tokens_neox': 790, 'n_words': 216}