knows1 / repository

https://fragen.knows1.com/
2 stars 1 forks source link

repository//authors/ted #2

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

Ted

Ted has been eating fruit since he was baby.

https://knows1.github.io/repository//repository/authors/ted.html

knows1 commented 5 years ago

https://knows1.github.io/repository//authors/ted.html

knows1 commented 5 years ago

Ted has been eating fruit since he was baby.

knows1 commented 4 years ago

/ alien.x = Math.random() 800 - 400; alien.y = Math.random() * 600 - 300; alien.anchor.x = 0.5; alien.anchor.y = 0.5; aliens.push(alien); alienContainer.addChild(alien); } app.start(); }

// Combines both mouse click + touch tap app.stage.on('pointertap', onClick);

function onClick() { alienContainer.cacheAsBitmap = !alienContainer.cacheAsBitmap;

// feel free to play with what's below
// var sprite = new PIXI.Sprite(alienContainer.generateTexture());
// app.stage.addChild(sprite);
// sprite.x = Math.random() * 800;
// sprite.y = Math.random() * 600;

}

app.ticker.add(() => { // let's rotate the aliens a little bit for (let i = 0; i < 100; i++) { const alien = aliens[i]; alien.rotation += 0.1; }

count += 0.01;

alienContainer.scale.x = Math.sin(count);
alienContainer.scale.y = Math.sin(count);
alienContainer.rotation += 0.01;

});