Use 2x4s to construct the frame where it will connect to the walls in the corner. Secure the frame ... There are many ideas ...
For small rooms, we're always looking to create extra storage space. But think twice before you try this IKEA bunk bed hack.