PageSourceSearch

https://natejenkins.ch/xkcd-mario/lib/fireball.js

js natejenkins.ch collected 2026-09-25 22:30:55 UTC 1,395 bytes, 43 lines download raw bytes

1// Generated by CoffeeScript 1.9.3
2(function() {
3  var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
4    hasProp = {}.hasOwnProperty;
5
6  this.Fireball = (function(superClass) {
7    extend(Fireball, superClass);
8
9    function Fireball(position) {
10      this.position = position;
11      this.name = 'fireball';
12      this.img_src = "./stick_figures/fireball.png";
13      Fireball.__super__.constructor.call(this, this.name, this.position, this.img_src, this.num_frames);
14      this.num_animations = 1;
15      this.num_frames = 4;
16      this.is_squashed = false;
17      this.always_animate = true;
18      this.creature_changes_direction = false;
19      this.gravity_factor = 1;
20      this.player_speed = 3;
21      this.can_bounce = true;
22      this.fall_speed = 10;
23      this.has_collided = false;
24      this.play_sound(this.throw_sound);
25    }
26
27    Fireball.prototype.burn_sound = new Howl({
28      src: ['sounds/burn.mp3'],
29      volume: 0.5,
30      html5: true
31    });
32
33    Fireball.prototype.throw_sound = new Howl({
34      src: ['sounds/throw_fireball.mp3'],
35      volume: 0.5,
36      html5: true
37    });
38
39    return Fireball;
40
41  })(this.Creature);
42
43}).call(this);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.