I have a text file from which i want to extract values and create a rectangle from each x and y value the values in the file look like this
.io_tile 0 1 .io_tile 0 2 .io_tile 0 3 .io_tile 0 4 .io_tile 0 5 .io_tile 0 6 .io_tile 0 7 .io_tile 0 8 .io_tile 0 9 .io_tile 0 10 .io_tile 0 11 .io_tile 0 12 .io_tile 0 13 .io_tile 0 14 .io_tile 0 15 .io_tile 0 16 .io_tile 1 0 .io_tile 1 17 .io_tile 2 0 .io_tile 2 17 .io_tile 3 0
I have to ignore the .io_tile part for each value and only get the integer values. I know how to create a rect in pygame, but I have no clue how to get values from the file.