Skip to content

Instantly share code, notes, and snippets.

View pokatomnik's full-sized avatar
💡
A man of idea

Danilian Akhmedzianov pokatomnik

💡
A man of idea
View GitHub Profile
@pokatomnik
pokatomnik / perforated-polygons.js
Last active April 18, 2016 05:50
phaserjs perforated polygons
var polygons = [ // A
[ // B
[ // C
[200, 100], // D
[350, 100],
[375, 200],
[150, 200],
],
[
/* [210, 110], */ //[250, 110],
@pokatomnik
pokatomnik / circle.js
Last active April 12, 2016 10:43
PhaserJS drawing circle example
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { create: create });
function create() {
var graphics = game.add.graphics(100, 100);
// draw a circle
graphics.lineStyle(2, 0x0000FF, 1);
graphics.beginFill(0xFFFF0B, 0.5);
graphics.drawCircle(470, 200, 200);