Skip to content

Commit

Permalink
upgraded dependencies for pixi.js v5
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Feb 23, 2019
1 parent aec3d65 commit 742042d
Show file tree
Hide file tree
Showing 11 changed files with 60,293 additions and 58,957 deletions.
1,910 changes: 965 additions & 945 deletions bundle/scrollbox.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/code.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const PIXI = require('pixi.js')
window.PIXI = require('pixi.js')
const FPS = require('yy-fps')
const Random = require('yy-random')

Expand Down Expand Up @@ -91,7 +91,8 @@ window.onload = function ()
nodrag.dragScroll = false
window.addEventListener('resize', resize)

PIXI.ticker.shared.add(() =>
const ticker = PIXI.ticker ? PIXI.ticker : PIXI.Ticker
ticker.shared.add(() =>
{
_fps.frame()
})
Expand Down
Loading

0 comments on commit 742042d

Please sign in to comment.