UNPKG

hobgoblin

Version:

A framework for writing roguelike games in JavaScript, implementing ROT.js

9 lines 367 B
Game.Item = function(properties) { properties = properties || {}; // Call the glyph's constructor with our set of properties Game.DynamicGlyph.call(this, properties); // Instantiate any properties from the passed object this._name = properties['name'] || ''; }; // Make items inherit all the functionality from glyphs Game.Item.extend(Game.DynamicGlyph);