0

In Lecture 2 when the LevelMaker class was updated,there was a code on line 87 which consisted of b = Brick(...) what is the Brick here? (I know Brick is a class but in the LevelMaker class we didnt made an object of that class)

'https://cdn.cs50.net/games/2019/x/assignments/2/assignment2.zip'

1 Answer 1

1

b = Brick(...) create new instance of Brick class. Then we add this instance to our table using table.insert(bricks, b)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .