I added portal elements to this guy's platformer engine change the map and stuff to make new levels, the elevator location can be moved through code between levels or clicking and dragging, I did not do this for simplicity's sake
survivorfan made the code for the map and character, I did the rest here. use q and e to shoot portals and w, a, and d to move