the maps are designed like so :
which is a real function in my game, could i read from a data file, and convert it into code?
or, does readline go to the next line every time it's called, so I could to do
and have each "brick" in the level file be written like so:
and so on? (there are multiple kinds of bricks, they would be written in a specific order, normal, metal, etc.)
CreateBrick(427, 588, 2, 255, 0, 0) CreateBrick(183, 588, 2, 255, 0, 0) CreateBrick(549, 588, 2, 255, 0, 0) CreateBrick(793, 588, 2, 255, 0, 0) CreateBrick(732, 588, 2, 255, 0, 0) ;....etc.
which is a real function in my game, could i read from a data file, and convert it into code?
or, does readline go to the next line every time it's called, so I could to do
repeat CreateBrick(int readline(level), int readline(level), float readline(level), int readline(level), int readline(level), int readline(level)) until readline$(level) = "METALBRICKS"
and have each "brick" in the level file be written like so:
732 588 2 255 0 0
and so on? (there are multiple kinds of bricks, they would be written in a specific order, normal, metal, etc.)