Skip to content

Commit

Permalink
agregé los archivos que faltaban
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed Mar 30, 2016
1 parent 11b223d commit a2f63a9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
27 changes: 27 additions & 0 deletions index2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Phaser!</title>
<!--script src="js/phaser.js"></script-->
<script src="js/phaser.2.2.2.box2d_restored.js"></script>
<!--script src="js/phaser.2.2.2.box2d.min.js"></script-->
<script src="js/jquery.js"></script>
<!--script src="js/treequery.js"></script-->
<script src="plugins/CameraShake.js"></script>
<script src="plugins/DOM_Wrapper.js"></script>
<script src="DOM_plugin_example/hanging_video.js"></script>
<!--script src="engine.js"></script-->
</head>
<style>
body, html { margin: 0px; }
#phaser-example {
display: inline-block;
height: 600px;
width: 800px;
}
</style>
<body>
<div id="phaser-example"></div>
</body>
</html>
26 changes: 26 additions & 0 deletions plugins/MyPlugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Phaser.Plugin.MyPlugin = function(game, parent) {
Phaser.Plugin.call(this, game, parent);

//settings by default
this._default = {};
this._settings = this._default;
/**
* some function.
*/
this._func = function () {


};
};

Phaser.Plugin.MyPlugin.prototype = Object.create(Phaser.Plugin.prototype);
Phaser.Plugin.MyPlugin.prototype.constructor = Phaser.Plugin.MyPlugin;



Phaser.Plugin.MyPlugin.prototype.setup = function (obj) {
this._settings = Phaser.Utils.extend(false, {}, this._default, obj);
};
Phaser.Plugin.MyPlugin.prototype.func = function(){
this._func();
};

0 comments on commit a2f63a9

Please sign in to comment.