Problem with array of objects from a class

No it doesn’t because the initialisation of the snake pieces use the width and the height variables and these are ONLY set once the size() statement has been executed. Also the reference for size makes it quite clear that it should be the first line in setup

1 Like