Well you just need a 2-dimensional array, in your case
collision_map[800,600]
Then if you want you can create a small routine to read the png into the array.
In my "mutant turmites" post I use an array to check the background, it's easy to use and I'm quite sure it's faster and easier than this pixmax business.
collision_map[800,600]
Then if you want you can create a small routine to read the png into the array.
In my "mutant turmites" post I use an array to check the background, it's easy to use and I'm quite sure it's faster and easier than this pixmax business.