瀏覽代碼

single screen portrait resolution

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

+ 1 - 1
sketch.js

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