mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
working layers - still needs parallax support
This commit is contained in:
parent
222fd09f3f
commit
a70ca6d8fb
8 changed files with 77 additions and 32 deletions
|
|
@ -1,13 +1,23 @@
|
|||
define([
|
||||
"Game/Client/View/Abstract/Layer",
|
||||
"Lib/Vendor/Pixi",
|
||||
"Game/Client/View/Pixi/ColorRangeReplaceFilter",
|
||||
],
|
||||
|
||||
function (Parent, PIXI) {
|
||||
function (Parent, PIXI, ColorRangeReplaceFilter) {
|
||||
|
||||
var AVAILABLE_MESH_FILTERS = {
|
||||
"blur": PIXI.BlurFilter,
|
||||
"desaturate": PIXI.GrayFilter,
|
||||
"pixelate": PIXI.PixelateFilter,
|
||||
"colorRangeReplace": ColorRangeReplaceFilter,
|
||||
};
|
||||
|
||||
function Layer (name, parallaxSpeed) {
|
||||
Parent.call(this, name, parallaxSpeed);
|
||||
this.container = new PIXI.DisplayObjectContainer();
|
||||
this.container.x = 0;
|
||||
this.container.y = 0;
|
||||
}
|
||||
|
||||
Layer.prototype = Object.create(Parent.prototype);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue