"Cub Umblator" - Processing

ID Autor Duplicat din Ultima modificare
#5522 Drosu Ștefan (Stefanarctic) - Joi, 16 mar 2023, 20:29
x
 
1
let gameObjects = [];
2
3
function GameObject(x, y, w, h, c)
4
{
5
    this.position = new Vector2(x, y);
6
    this.size = new Vector2(w, h);
7
    this.color = c;
8
}
9
10
function Vector2(x, y)
11
{
12
    this.x = x;
13
    this.y = y;
14
}
15
16
17
function setup() {
18
    createCanvas(400, 400);
Du-te sus!