phaser/v3/src/gameobjects/graphics/Graphics.js

28 lines
522 B
JavaScript
Raw Normal View History

2017-02-28 14:49:39 +00:00
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;