like this example how to do z axis for floor need paste texture https://www.mediafire.com/file/yqvnw7ovrovtmg3/doomengine.tar.gz/