Edgar, I tryed that floor thing u said, it made my player flicker like that.So I am assuming that problem is definitly in that function,the problem is I dont understand why.
Feel free to post a 7z or zip of your src. I might take a gander at it.
There it is , I uploaded the whole project.
Some quick info so you can understand it quicker:
-All objects are based on gameobject class.
-ResourceManager deals with getting and loading the textures.
-S-key = snow
-Space-key = Big "island"
-Down-key = smaller configurable boxes
-You cant spawn more then 150 cubes and not have lagg, probably because of "objects" vector I am itterating trough is not capable of holding soo much data, if anyone has suggestion of how to solve this problem let me know.
You can also see what coordinates are being drawn on as you can use al_transform_coordinates to see the result of the selected transformation.
I know about it, but I don't see a way that would help or how would I keep track of 50 or more coordinates.