Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


bigtimebuddy last won the day on August 26 2019

bigtimebuddy had the most liked content!

About bigtimebuddy

  • Rank

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Location

Recent Profile Visitors

1021 profile views
  1. I think this is a bug with Rounded Rect. Probably it has to do with the corner radius being greater than or equal to the smallest height. Will file an issue. https://jsfiddle.net/bigtimebuddy/kphz6o8e/
  2. Pixi-animate is a project with two parts: pixi-animate and pixi-animate-extension. The extension is a free download here: https://exchange.adobe.com/creativecloud.details.14345.pixianimate.html. It’s a pretty user-friendly tool for publishing and previewing directly from Animate. The library pixi-animate (not the extension) is the runtime that’s works with PixiJS. Hope that helps.
  3. You can get the types from an npm CDN (unpkg, jsdelivr, etc). For example: https://unpkg.com/pixi.js@5.3.0/pixi.js.d.ts https://cdn.jsdelivr.net/npm/pixi.js@5.3.0/pixi.js.d.ts
  4. I see the confusion. Sound.from isn't exactly analogous to Texture.from. Sound.from API only handles remote URLs. If you want to play a sound that's already been loaded to this: pixiSound.default.play('explosionSound') Here's the documentation: https://pixijs.io/pixi-sound/docs/PIXI.sound.html Keep in mind that pixiSound.default is the same as PIXI.sound in the docs.
  5. Two requests: 1. Could you please post all code errors to https://github.com/pixijs/pixi.js that more helpful to track and resolve issues than forums. 2. We need a reproduction of your error (code that we can run, preferably jsfiddle, codepen, etc). We have examples and test cases that cover basic loading of spite sheets so without some code to run, this is difficult to diagnose. -Matt
  6. Please see this related issue: https://github.com/pixijs/pixi.js/issues/6016 We are in the process of generating typings for all packages. Until then, that issue contains a workaround for hooking up sub-package typings.
  7. 1. It's pretty common to use Apache Cordova (https://cordova.apache.org/) to bundle JavaScript into an app-like experience. There are some quirks with supporting old version of Android, but otherwise, there are lots of plugins available for interacting with native APIs (accelerometer, haptics, etc). 2. PixiJS uses WebGL which is very fast, especially on mobile devices. There are some performance tips on the GitHub wiki and I'm sure lots of advice here. You will probably be able to achieve 30+fps, if not higher, on mobile. Although, it's also easy to abuse performance, so make sure you und
  8. Yes, there is! Here's an example of Shockwave that you could include w/ a `<script>` element. https://cdn.jsdelivr.net/npm/@pixi/filter-shockwave@3.0.1/dist/filter-shockwave.js All filters are published to NPM with bundler file versions ("lib" folder) and a browser version ("dist" folder). You can use jsdelivr or other CDN that allows you to include files from published NPM versions.
  9. The canvas and renderer are bound so you can’t just reassign canvas. You can use two renderers, however, if you want to cross fade or alternatively export the canvas to an image that you fade as a dom element on top. Sorry, no easy option here.
  10. In this case, for SPAs it’s better to not destroy your renderer. You can destroy the display objects (sprites, textures, etc), but keep the reference to your canvas and renderer (make sure you pause the ticker). There’s a limit to how many webgl canvases you can create simultaneously. Better to not continually create and destroy. Maybe there’s some GC trick for Safari, but this has been my standard practice working with virtual dom frameworks.
  11. Please make sure you preload your sound first or else `sound.play` will return a Promise instead of the instance.
  12. Try using jsdelivr: https://cdn.jsdelivr.net/npm/pixi-filters@2.6.1/dist/pixi-filters.js or download the latest from GitHub releases: (it seems I forgot to add 2.6.0 and 2.6.1 dist files to release, but will add soon) https://github.com/pixijs/pixi-filters/releases
  13. @magig thanks for reporting this. I was able to track this down and file a bug with jsdoc: https://github.com/jsdoc3/jsdoc/issues/1425 I'll be submitting a PR to PixiJS which pins to v3.4.3 of jsdoc until the issue is fixed.
  14. Also, I recently added this Getting Started page.
  15. @mrwut4 great start man. We are definitely thinking along the same page. The last 8 months I've been working on building a native exporter for Animate. This uses the C++ SDK so that you create Pixi FLA documents and preview functionality. This also exports vectors. Maybe you'd be interested in collaborating? If you wanna know more I'm happy to share. If so, message me.
  • Create New...