Added canvas sprite tiniting
Currently only works with browsers that support the new canvas blend modes still need to add tiniting to tilingsprite and graphics
This commit is contained in:
parent
f0c082a3cc
commit
41d6b01e96
6 changed files with 217 additions and 40 deletions
|
@ -36,7 +36,8 @@
|
|||
var stage = new PIXI.Stage(0xFFFFFF);
|
||||
|
||||
// create a renderer instance.
|
||||
renderer = PIXI.autoDetectRenderer(800, 600);
|
||||
//renderer = PIXI.autoDetectRenderer(800, 600);
|
||||
renderer = new PIXI.CanvasRenderer(800, 600);
|
||||
|
||||
// add the renderer view element to the DOM
|
||||
document.body.appendChild(renderer.view);
|
||||
|
@ -58,6 +59,7 @@
|
|||
|
||||
// create an alien using the frame name..
|
||||
var alien = PIXI.Sprite.fromFrame(frameName);
|
||||
///alien.tint = 0xFF0000;
|
||||
|
||||
/*
|
||||
* fun fact for the day :)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue