mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added background, still needs parallax style scrolling though! - fixes #89
This commit is contained in:
parent
a58beb58d1
commit
1a71fa38f9
8 changed files with 47 additions and 6 deletions
|
|
@ -40,7 +40,8 @@ function (Parent, Settings) {
|
|||
paths.push(texturePath);
|
||||
};
|
||||
|
||||
// FIXME: Get background image
|
||||
var background = this.getLayer(levelData, "background");
|
||||
paths.push(Settings.MAPS_PATH + background.image);
|
||||
|
||||
return paths;
|
||||
|
||||
|
|
|
|||
20
app/Game/Client/View/Mesh.js
Normal file
20
app/Game/Client/View/Mesh.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
define([
|
||||
'Game/Config/Settings',
|
||||
'Lib/Utilities/NotificationCenter',
|
||||
"Lib/Vendor/Stats",
|
||||
"Lib/Vendor/Screenfull"
|
||||
],
|
||||
|
||||
function (Settings, Nc, Stats, Screenfull) {
|
||||
|
||||
function Mesh() {
|
||||
|
||||
}
|
||||
|
||||
Mesh.prototype.render = function() {
|
||||
|
||||
};
|
||||
|
||||
return Mesh;
|
||||
|
||||
});
|
||||
|
|
@ -117,6 +117,7 @@ function (Parent, DomController, PIXI, ColorRangeReplaceFilter, Settings, Nc, Ex
|
|||
if (options.x) mesh.position.x = options.x;
|
||||
if (options.y) mesh.position.y = options.y;
|
||||
if (options.rotation) mesh.rotation = options.rotation;
|
||||
if (options.alpha) mesh.alpha = options.alpha;
|
||||
if (options.width) mesh.width = options.width;
|
||||
if (options.height) mesh.height = options.height;
|
||||
if (options.xScale) mesh.width = Math.abs(mesh.width) * options.xScale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue