GithubHelp home page GithubHelp logo

guides's Issues

What is the unit of `delta` in Ticker

In the example code given by the documentation:

  app.ticker.add((delta) => {
    // Add the time to our total elapsed time
    elapsed += delta;
    // Update the sprite's X position based on the cosine of our elapsed time.  We divide
    // by 50 to slow the animation down a bit...
    sprite.x = 100.0 + Math.cos(elapsed/50.0) * 100.0;
  });

I tried this code out, but it seems that the unit of delta in the code is neither seconds nor miliseconds. I measuerd the actual time between two ticks and the delta given by the function and their value seems to be 1 to 16 in ratio.

I think the documentation should clarify what unit the delta value is in, rather than using the vague term "time" to refer to the value.

Outdated information in Interaction guide

I noticed a couple of issues on https://pixijs.io/guides/basics/interaction.html I may be able to submit a PR to improve this at some point, but wanted to at least make a note:

  • Code examples still use Interaction, not EventSystem
  • The section on pointer events suggests using non-pointer events "to support different modes of operation based on input type or to support multi-touch interaction". Pointer events should allow for both use cases, via pointerType and pointerId, respectively.
  • The caveats about not supporting bubbling and capturing are no longer accurate (thanks to EventSystem)

Two sites with "Pixi.js guides"

It seems that there are 2 sites with "Pixi.js guides" :

  1. First site: Link from index of Pixi.js github project ( https://github.com/pixijs/pixijs) :
  2. Second site: https://api.pixijs.io/tutorials/index.html
    • im not sure where i got this link
    • this site has 2 additional sections compared to first site: ADVANCED and PRODUCTION.
      • especially the PRODUCTION section seems to have some useful information.

Questions:

  • Why there are two sites and not one? Can they be merged into one to avoid confusion.
  • Why on the "official" site (first one) the ADVANCED and PRODUCTION sections are hidden?

Bug: 404 when clicking a link on the website [how to work with PixiJS and packers]

Current Behavior

image

Expected Behavior

be able to link to the correct place

Steps to Reproduce

  1. Open link: https://pixijs.io/guides/basics/getting-started.html#:~:text=how%20to%20work%20with%20PixiJS%20and%20packers
  2. Click [how to work with PixiJS and packers] on the page
  3. redirected to 404

Environment

  • pixi.js version: e.g. 7.1.0
  • Browser & Version: e.g. Chrome 108
  • OS & Version: e.g. Ubuntu 22.04
  • Running Example: e.g. https://pixiplayground.com/

Possible Solution

No response

Additional Information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.