I think I don't quite get the idea you had making the player a triangle :(
And sometimes, you die because the enemy spawns directly at your position.
But I hope you learned something while making the game!