Théo Sabattié

Members
  • Content count

    39
  • Joined

  • Last visited

About Théo Sabattié

  • Rank
    Advanced Member
  • Birthday 09/11/1994

Contact Methods

  • Twitter
    theoSabattie

Profile Information

  • Gender
    Male
  1. put a prototype outside a state

    game is the parameter of the function create. You can add game as parameter of the mechant constructor. Or define a global variable game and assign its value on create function (ugly)
  2. Velocity is undefined

    heroname = localx[i].load.name; // ... heroname.body.velocity.x = -250; body is undefined. so body property does not exist on heroname. localx.load.name; Does that return a complexe objet? That name looks like returning a string
  3. Bullets and Math.Random()

    var sens = Math.random() * 360; (?) Is there an error in the console? Can you share more code?
  4. Whats going on with PIXI blog?

    blog? I know only http://www.pixijs.com/. What is the url?
  5. That is more easy to manage sprite positions by grouping them in a container. Invoke Destroy on a container don't destroy children by default : http://pixijs.download/dev/docs/PIXI.Container.html#destroy If you are making a car you won't move the wheels and the car's body distinctly. You shouldn't move all pieces of a gameObject, that is more easier to move only one object.
  6. I retried, that is ok' now. I checked console, I didn't find something in the logs. Good job !
  7. That looks nice but when I click on Start button, nothing happen :/
  8. Spherical voxels

    http://svenfrankson.github.io/PlanetBuilderWeb/index.html Nice !
  9. Furniture designer

    That is pretty cool! Congratulation for your creation !
  10. Polishing games

  11. Creating lists of blocks/entities

    I am not sure to understand... Do you want the list reference in each object in it? like var list = [ { id: 'base', prop: 'base_something', myList: // == list }, { id: 'somethingelse', prop: 'anotherprop', myList: // == list }, { id: 'somethingelse42', prop: 'anotherprop42', myList: // == list }, ] ? If it is that, you can do: var list = []; function ListElement(parameters){ // replace name making sens this.list = parameters.list || []; this.list.push(this); this.prop = parameters.prop || "defaultProp"; this.id = parameters.id || "defaultId"; // your own properties instantiation } new ListElement({ list : list, prop : "hello", id : "world" }); Or do you want that the last object of your list have the same property of the first element? Do you want that the last object has alway the same property of first? (if first remove, take new property of new first. If last remove, set property of first on new last ?)
  12. error states

    remove ',' at the end
  13. Do Container objects have their own coordinate system?

    Position is always based on parent.
  14. Hi'' You have to cast your htmlElement: this._canvas = <HTMLCanvasElement> yourHtmlElement; this._canvas = yourHtmlElement as HTMLCanvasElement;
  15. Help with touch events!

    Don't be worry, that is not mine too. I am not sure to understand Why don't you update directly the position ? I don't understand where the conflict come from.