瀏覽代碼

single screen portrait resolution

Birk Weiberg 2 年之前
父節點
當前提交
b5bc05bd76
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sketch.js

+ 1 - 1
sketch.js

@ -1,7 +1,7 @@
1 1
let creatures = [];  
2 2
3 3
function setup() {
4
  createCanvas(windowWidth, windowHeight);
4
  createCanvas(1080, 1920);
5 5
    noStroke();
6 6
  for (let i=0; i<5; i++) {
7 7
    creatures.push(new Creature(createVector(random(100, width-100), random(100, height-100)), random(20, 80)));