Click the flag to reset/start. E to toggle portal type (orange/blue) WASD or arrow keys to move. Click to shoot the portal gun.
Yes, I know there are many things wrong with this. This is just a test project to give me an idea of what a Portal engine would look like.