<commit_before>'use strict';

var Tile = require('../../physics/tile');

var MAX_X_VEL = 400,
    MAX_Y_VEL = MAX_X_VEL;

module.exports = function(engine, entity, data, type) {
  var tilePhysics = new Tile(data.loc, data.hitbox, type);
  engine.physics.restrictCollisions('bullet', ['npc']);
  engine.physics.tiles.attach(entity, tilePhysics);

  tilePhysics.maxVelocity.y = MAX_Y_VEL;
  tilePhysics.maxVelocity.x = MAX_X_VEL;

  return tilePhysics;
};

exports.SHOOT_SPEED = MAX_X_VEL;<commit_msg>Bullets now collide with levels.<commit_after>'use strict';

var Tile = require('../../physics/tile');

var MAX_X_VEL = 400,
    MAX_Y_VEL = MAX_X_VEL;

module.exports = function(engine, entity, data, type) {
  var tilePhysics = new Tile(data.loc, data.hitbox, type);
  engine.physics.restrictCollisions('bullet', ['npc', 'level']);
  engine.physics.tiles.attach(entity, tilePhysics);

  tilePhysics.maxVelocity.y = MAX_Y_VEL;
  tilePhysics.maxVelocity.x = MAX_X_VEL;

  return tilePhysics;
};

exports.SHOOT_SPEED = MAX_X_VEL;
{'fraction_non_alphanumeric': 0.1442495126705653, 'fraction_numerical': 0.005847953216374269, 'mean_word_length': 4.868571428571428, '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': '4310395', 'n_tokens_mistral': 394, 'n_tokens_neox': 394, 'n_words': 70}