mirror of
https://github.com/photonstorm/phaser
synced 2025-01-25 19:35:15 +00:00
28 lines
522 B
JavaScript
28 lines
522 B
JavaScript
|
var Class = require('../../utils/Class');
|
||
|
var GameObject = require('../GameObject');
|
||
|
var Components = require('../../components');
|
||
|
var Render = require('./GraphicsRender');
|
||
|
|
||
|
var Graphics = new Class({
|
||
|
|
||
|
Mixins: [
|
||
|
Components.Alpha,
|
||
|
Components.BlendMode,
|
||
|
Components.Transform,
|
||
|
Components.Visible,
|
||
|
Render
|
||
|
],
|
||
|
|
||
|
initialize:
|
||
|
|
||
|
function Graphics (state, x, y)
|
||
|
{
|
||
|
GameObject.call(this, state);
|
||
|
|
||
|
this.setPosition(x, y);
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
module.exports = Graphics;
|